Skip to content

Commit cc54283

Browse files
authored
Javascript fix missing export (#4076)
* fix missing APIs * more missing APIs Signed-off-by: Eric Vergnaud <[email protected]> * bump beta number * add missing export * bump package version Signed-off-by: Eric Vergnaud <[email protected]>
1 parent 17fa1af commit cc54283

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

runtime/JavaScript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "antlr4",
3-
"version": "4.12.0-beta.3",
3+
"version": "4.12.0-beta.4",
44
"type": "module",
55
"description": "JavaScript runtime for ANTLR4",
66
"main": "dist/antlr4.js",

runtime/JavaScript/src/antlr4/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import BailErrorStrategy from "./error/BailErrorStrategy.js";
3737
import Interval from './misc/Interval.js';
3838
import IntervalSet from './misc/IntervalSet.js';
3939
import ParseTreeListener from "./tree/ParseTreeListener.js";
40+
import ParseTreeVisitor from "./tree/ParseTreeVisitor.js";
4041
import ParseTreeWalker from "./tree/ParseTreeWalker.js";
4142
import ErrorListener from "./error/ErrorListener.js"
4243
import DiagnosticErrorListener from "./error/DiagnosticErrorListener.js"
@@ -52,7 +53,7 @@ export default {
5253
export {
5354
Token, CommonToken, CharStreams, CharStream, InputStream, FileStream, CommonTokenStream, Lexer, Parser,
5455
RuleNode, TerminalNode, ParseTreeWalker, RuleContext, ParserRuleContext, Interval, IntervalSet,
55-
PredictionMode, LL1Analyzer, ParseTreeListener, ATN, ATNDeserializer, PredictionContextCache, LexerATNSimulator, ParserATNSimulator, DFA,
56+
PredictionMode, LL1Analyzer, ParseTreeListener, ParseTreeVisitor, ATN, ATNDeserializer, PredictionContextCache, LexerATNSimulator, ParserATNSimulator, DFA,
5657
RecognitionException, NoViableAltException, FailedPredicateException, ErrorListener, DiagnosticErrorListener, BailErrorStrategy,
5758
arrayToString
5859
}
@@ -61,4 +62,4 @@ export {
6162
// need to import unused to force loading
6263
import StringHashCode from './utils/stringHashCode.js';
6364
import CodePointAt from './polyfills/codepointat.js';
64-
import FromCodePoint from './polyfills/fromcodepoint.js';
65+
import FromCodePoint from './polyfills/fromcodepoint.js';

0 commit comments

Comments
 (0)