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

Method parsePropertyMethodFunction

src/parser.ts:762–773  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

760 }
761
762 parsePropertyMethodFunction(): Node.FunctionExpression {
763 const isGenerator = false;
764 const node = this.createNode();
765
766 const previousAllowYield = this.context.allowYield;
767 this.context.allowYield = true;
768 const params = this.parseFormalParameters();
769 const method = this.parsePropertyMethod(params);
770 this.context.allowYield = previousAllowYield;
771
772 return this.finalize(node, new Node.FunctionExpression(null, params.params, method, isGenerator));
773 }
774
775 parsePropertyMethodAsyncFunction(): Node.FunctionExpression {
776 const node = this.createNode();

Callers 2

parseObjectPropertyMethod · 0.95
parseClassElementMethod · 0.95

Calls 4

createNodeMethod · 0.95
parseFormalParametersMethod · 0.95
parsePropertyMethodMethod · 0.95
finalizeMethod · 0.95

Tested by

no test coverage detected