forked from jasder/antlr
fixed visitAtom implementation
This implementation somehow got lost in rebasing.
This commit is contained in:
parent
e5bab64e4b
commit
75dd652d7a
|
@ -107,10 +107,7 @@ ParseTreeVisitor.prototype.visitErrorNode = function(node) {
|
|||
|
||||
|
||||
var visitAtom = function(visitor, ctx) {
|
||||
var name = ctx.parser.ruleNames[ctx.ruleIndex];
|
||||
var funcName = "visit" + Utils.titleCase(name);
|
||||
|
||||
return visitor[funcName](ctx);
|
||||
return ctx.accept(visitor);
|
||||
};
|
||||
|
||||
function ParseTreeListener() {
|
||||
|
|
Loading…
Reference in New Issue