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

Function createIdentifier

packages/babel-parser/src/parser/expression.ts:2839–2846  ·  view source on GitHub ↗
(node: Undone<N.Identifier>, name: string)

Source from the content-addressed store, hash-verified

2837 }
2838
2839 createIdentifier(node: Undone<N.Identifier>, name: string): N.Identifier {
2840 node.name = name;
2841 if (this.optionFlags & OptionFlags.Locations) {
2842 node.loc!.identifierName = name;
2843 }
2844
2845 return this.finishNode(node, "Identifier");
2846 }
2847
2848 createIdentifierAt(
2849 node: Undone<N.Identifier>,

Callers

nothing calls this directly

Calls 1

finishNodeMethod · 0.80

Tested by

no test coverage detected