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

Function addTrailingCommaExtraToNode

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected