From edf24eab3ff80961c82f12142c7ea1235d9b53d2 Mon Sep 17 00:00:00 2001 From: Camilo Roca Date: Sun, 16 Feb 2020 17:41:25 +0100 Subject: [PATCH] fix: incorrect import of invalid_alt_number removed unused RuleNode import --- runtime/JavaScript/src/antlr4/tree/Trees.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/runtime/JavaScript/src/antlr4/tree/Trees.js b/runtime/JavaScript/src/antlr4/tree/Trees.js index 06161a59c..f493e90e7 100644 --- a/runtime/JavaScript/src/antlr4/tree/Trees.js +++ b/runtime/JavaScript/src/antlr4/tree/Trees.js @@ -5,11 +5,10 @@ const Utils = require('./../Utils'); const {Token} = require('./../Token'); -const {RuleNode, ErrorNode, TerminalNode} = require('./Tree'); +const {ErrorNode, TerminalNode} = require('./Tree'); const {ParserRuleContext} = require('./../ParserRuleContext'); const {RuleContext} = require('./../RuleContext'); -const INVALID_ALT_NUMBER = require('./../atn/ATN').INVALID_ALT_NUMBER; - +const {ATN: {INVALID_ALT_NUMBER}} = require('./../atn/ATN'); /** A set of utility routines useful for all kinds of ANTLR trees. */ function Trees() {