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

Function parseIdentifier

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

Source from the content-addressed store, hash-verified

2838 // are not identifiers and cannot contain escape sequences.
2839
2840 parseIdentifier(liberal?: boolean): N.Identifier {
2841 const node = this.startNode<N.Identifier>();
2842 const name = this.parseIdentifierName(liberal);
2843
2844 return this.createIdentifier(node, name);
2845 }
2846
2847 createIdentifier(node: Undone<N.Identifier>, name: string): N.Identifier {
2848 node.name = name;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected