forked from jasder/antlr
made visitAtom work for terminal nodes
This commit is contained in:
parent
a90c9d6669
commit
0396561520
|
@ -107,10 +107,6 @@ ParseTreeVisitor.prototype.visitErrorNode = function(node) {
|
|||
|
||||
|
||||
var visitAtom = function(visitor, ctx) {
|
||||
if (ctx.parser === undefined) { //is terminal
|
||||
return;
|
||||
}
|
||||
|
||||
var name = ctx.parser.ruleNames[ctx.ruleIndex];
|
||||
var funcName = "visit" + Utils.titleCase(name);
|
||||
|
||||
|
@ -257,4 +253,4 @@ exports.TerminalNodeImpl = TerminalNodeImpl;
|
|||
exports.ParseTreeListener = ParseTreeListener;
|
||||
exports.ParseTreeVisitor = ParseTreeVisitor;
|
||||
exports.ParseTreeWalker = ParseTreeWalker;
|
||||
exports.INVALID_INTERVAL = INVALID_INTERVAL;
|
||||
exports.INVALID_INTERVAL = INVALID_INTERVAL;
|
||||
|
|
Loading…
Reference in New Issue