public AsyncGeneratorDeclaration(
     long beginPosition,
     long endPosition,
     FunctionScope scope,
     BindingIdentifier identifier,
     FormalParameterList parameters,
     List<StatementListItem> statements,
     String functionName,
     String headerSource,
     String bodySource) {
   super(beginPosition, endPosition);
   this.scope = scope;
   this.identifier = identifier;
   this.name = identifier != null ? identifier.getName() : new Name(Name.DEFAULT_EXPORT);
   this.parameters = parameters;
   this.statements = statements;
   this.functionName = functionName;
   this.headerSource = headerSource;
   this.bodySource = bodySource;
 }
Exemple #2
0
 /**
  *
  *
  * <pre>
  * BindingIdentifier : Identifier
  * </pre>
  */
 @Override
 public List<Name> visit(BindingIdentifier node, List<Name> names) {
   names.add(node.getName());
   return names;
 }