Only visit is ctx.children is non-null
This commit is contained in:
parent
4cca8cd68d
commit
dd3af945fd
|
@ -73,7 +73,9 @@ ParseTreeVisitor.prototype.visit = function(ctx) {
|
|||
};
|
||||
|
||||
ParseTreeVisitor.prototype.visitChildren = function(ctx) {
|
||||
return this.visit(ctx.children);
|
||||
if (ctx.children) {
|
||||
return this.visit(ctx.children);
|
||||
}
|
||||
}
|
||||
|
||||
ParseTreeVisitor.prototype.visitTerminal = function(node) {
|
||||
|
|
Loading…
Reference in New Issue