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

Function createIdentifierAt

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

Source from the content-addressed store, hash-verified

2854 }
2855
2856 createIdentifierAt(
2857 node: Undone<N.Identifier>,
2858 name: string,
2859 endLoc: Position,
2860 ): N.Identifier {
2861 node.name = name;
2862 if (this.optionFlags & OptionFlags.Locations) {
2863 node.loc!.identifierName = name;
2864 }
2865
2866 return this.finishNodeAt(node, "Identifier", endLoc);
2867 }
2868
2869 parseIdentifierName(liberal?: boolean): string {
2870 let name: string;

Callers

nothing calls this directly

Calls 1

finishNodeAtMethod · 0.45

Tested by

no test coverage detected