MCPcopy Create free account
hub / github.com/babel/babel / parseIdentifier

Function parseIdentifier

packages/babel-parser/src/parser/expression.ts:2832–2837  ·  view source on GitHub ↗
(liberal?: boolean)

Source from the content-addressed store, hash-verified

2830 // are not identifiers and cannot contain escape sequences.
2831
2832 parseIdentifier(liberal?: boolean): N.Identifier {
2833 const node = this.startNode<N.Identifier>();
2834 const name = this.parseIdentifierName(liberal);
2835
2836 return this.createIdentifier(node, name);
2837 }
2838
2839 createIdentifier(node: Undone<N.Identifier>, name: string): N.Identifier {
2840 node.name = name;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected