Search in sources :

Example 1 with IdentifierName

use of com.github.anba.es6draft.ast.IdentifierName in project es6draft by anba.

the class EvalDeclarationInstantiationGenerator method checkUndeclaredPrivateNames.

private void checkUndeclaredPrivateNames(Script evalScript, Variable<ExecutionContext> context, InstructionVisitor mv) {
    List<IdentifierName> undeclaredPrivateNames = evalScript.getUndeclaredPrivateNames();
    for (IdentifierName privateName : undeclaredPrivateNames) {
        mv.load(context);
        mv.aconst(privateName.getName());
        mv.lineInfo(privateName);
        mv.invoke(Methods.DeclarationOperations_hasDeclaredPrivateNameOrThrow);
    }
}
Also used : IdentifierName(com.github.anba.es6draft.ast.IdentifierName)

Aggregations

IdentifierName (com.github.anba.es6draft.ast.IdentifierName)1