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);
}
}
Aggregations