fix: no need to call RuleNode class as prototype chain is enough

This commit is contained in:
Camilo Roca 2020-02-16 19:13:14 +01:00
parent 5e42c49ced
commit 577a9b82bc
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ var INVALID_INTERVAL = require('./tree/Tree').INVALID_INTERVAL;
var INVALID_ALT_NUMBER = require('./atn/ATN').INVALID_ALT_NUMBER;
function RuleContext(parent, invokingState) {
RuleNode.call(this);
//RuleNode.call(this);
// What context invoked this rule?
this.parentCtx = parent || null;
// What state invoked the rule associated with this context?