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

Function createPosition

packages/babel-parser/src/parser/node.ts:48–50  ·  view source on GitHub ↗
(loc: Position)

Source from the content-addressed store, hash-verified

46export abstract class NodeUtils extends UtilParser {
47 // Used for estree plugin
48 createPosition(loc: Position): Position {
49 return loc;
50 }
51
52 startNode<T extends NodeType = never>(): Undone<T> {
53 return this.startNodeAt<T>(this.state.startLoc);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected