forked from jasder/antlr
success!
This commit is contained in:
parent
b2d67261f2
commit
caa581a9e0
|
@ -112,7 +112,7 @@ public class ParseTreesDescriptors {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean ignore(String targetName) {
|
public boolean ignore(String targetName) {
|
||||||
return !targetName.matches("Java|Python2|Python3");
|
return !targetName.matches("Java|Python2|Python3|Node");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,17 @@ ParserRuleContext.prototype.copyFrom = function(ctx) {
|
||||||
this.children = null;
|
this.children = null;
|
||||||
this.start = ctx.start;
|
this.start = ctx.start;
|
||||||
this.stop = ctx.stop;
|
this.stop = ctx.stop;
|
||||||
|
// copy any error nodes to alt label node
|
||||||
|
if(ctx.children) {
|
||||||
|
this.children = [];
|
||||||
|
// reset parent pointer for any error nodes
|
||||||
|
ctx.children.map(function(child) {
|
||||||
|
if (child instanceof ErrorNodeImpl) {
|
||||||
|
this.children.push(child);
|
||||||
|
child.parentCtx = this;
|
||||||
|
}
|
||||||
|
}, this);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Double dispatch methods for listeners
|
// Double dispatch methods for listeners
|
||||||
|
|
Loading…
Reference in New Issue