MCPcopy
hub / github.com/jquery/esprima / parseAsyncArguments

Method parseAsyncArguments

src/parser.ts:1216–1236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1214 }
1215
1216 parseAsyncArguments(): Node.ArgumentListElement[] {
1217 this.expect('(');
1218 const args: Node.ArgumentListElement[] = [];
1219 if (!this.match(')')) {
1220 while (true) {
1221 const expr = this.match('...') ? this.parseSpreadElement() :
1222 this.isolateCoverGrammar(this.parseAsyncArgument);
1223 args.push(expr);
1224 if (this.match(')')) {
1225 break;
1226 }
1227 this.expectCommaSeparator();
1228 if (this.match(')')) {
1229 break;
1230 }
1231 }
1232 }
1233 this.expect(')');
1234
1235 return args;
1236 }
1237
1238 parseLeftHandSideExpressionAllowCall(): Node.Expression {
1239 const startToken = this.lookahead;

Calls 6

expectMethod · 0.95
matchMethod · 0.95
parseSpreadElementMethod · 0.95
isolateCoverGrammarMethod · 0.95
expectCommaSeparatorMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected