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

Function finishNode

packages/babel-parser/src/parser/node.ts:92–94  ·  view source on GitHub ↗
(node: Undone<T>, type: T["type"])

Source from the content-addressed store, hash-verified

90 // Finish an AST node, adding `type` and `end` properties.
91
92 finishNode<T extends NodeType>(node: Undone<T>, type: T["type"]): T {
93 return this.finishNodeAt(node, type, this.state.lastTokEndLoc!);
94 }
95
96 // Finish node at given position
97

Callers

nothing calls this directly

Calls 1

finishNodeAtMethod · 0.45

Tested by

no test coverage detected