forked from jasder/antlr
Merge pull request #1565 from ericvergnaud/fix-javascript-typo
fix typo in javascript visitor
This commit is contained in:
commit
040e40ec58
|
@ -65,7 +65,7 @@ function ParseTreeVisitor() {
|
||||||
ParseTreeVisitor.prototype.visit = function(ctx) {
|
ParseTreeVisitor.prototype.visit = function(ctx) {
|
||||||
if (Array.isArray(ctx)) {
|
if (Array.isArray(ctx)) {
|
||||||
return ctx.map(function(child) {
|
return ctx.map(function(child) {
|
||||||
return ctx.accept(this);
|
return child.accept(this);
|
||||||
}, this);
|
}, this);
|
||||||
} else {
|
} else {
|
||||||
return ctx.accept(this);
|
return ctx.accept(this);
|
||||||
|
|
Loading…
Reference in New Issue