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

Function createIdentifier

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

Source from the content-addressed store, hash-verified

2845 }
2846
2847 createIdentifier(node: Undone<N.Identifier>, name: string): N.Identifier {
2848 node.name = name;
2849 if (this.optionFlags & OptionFlags.Locations) {
2850 node.loc!.identifierName = name;
2851 }
2852
2853 return this.finishNode(node, "Identifier");
2854 }
2855
2856 createIdentifierAt(
2857 node: Undone<N.Identifier>,

Callers

nothing calls this directly

Calls 1

finishNodeMethod · 0.80

Tested by

no test coverage detected