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

Method parseIdentifierName

src/parser.ts:1175–1182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1173 }
1174
1175 parseIdentifierName(): Node.Identifier {
1176 const node = this.createNode();
1177 const token = this.nextToken();
1178 if (!this.isIdentifierName(token)) {
1179 this.throwUnexpectedToken(token);
1180 }
1181 return this.finalize(node, new Node.Identifier(token.value));
1182 }
1183
1184 parseNewExpression(): Node.MetaProperty | Node.NewExpression {
1185 const node = this.createNode();

Calls 5

createNodeMethod · 0.95
nextTokenMethod · 0.95
isIdentifierNameMethod · 0.95
throwUnexpectedTokenMethod · 0.95
finalizeMethod · 0.95

Tested by

no test coverage detected