MCPcopy
hub / github.com/antlr/antlr4 / addContextToParseTree

Method addContextToParseTree

runtime/JavaScript/src/antlr4/Parser.js:369–374  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

367 }
368
369 addContextToParseTree() {
370 // add current context to parent if we have a parent
371 if (this._ctx.parentCtx !== null) {
372 this._ctx.parentCtx.addChild(this._ctx);
373 }
374 }
375
376 /**
377 * Always called by generated parsers upon entry to a rule. Access field

Callers 1

enterRuleMethod · 0.95

Calls 1

addChildMethod · 0.45

Tested by

no test coverage detected