made visitAtom work for terminal nodes

This commit is contained in:
Christian Gudrian 2016-10-06 21:43:15 +02:00
parent a90c9d6669
commit 0396561520
1 changed files with 1 additions and 5 deletions

View File

@ -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;