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

Function addTrailingCommaExtraToNode

packages/babel-parser/src/parser/expression.ts:2130–2133  ·  view source on GitHub ↗
(node: Undone<N.Node>)

Source from the content-addressed store, hash-verified

2128 }
2129
2130 addTrailingCommaExtraToNode(node: Undone<N.Node>): void {
2131 this.addExtra(node, "trailingComma", this.state.lastTokStartLoc!.index);
2132 this.addExtra(node, "trailingCommaLoc", this.state.lastTokStartLoc, false);
2133 }
2134
2135 // Check grammar production:
2136 // IdentifierName *_opt PropertyName

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected