refactored ATNDeserializer.js to use es6 classes

fix: dont wrap the class in an object for export
This commit is contained in:
Camilo Roca 2020-03-06 19:33:38 +01:00
parent d61e4d5049
commit 4f8527e9ee
4 changed files with 539 additions and 538 deletions

View File

@ -7,7 +7,7 @@ var Token = require('./Token').Token;
var ParseTreeListener = require('./tree/Tree').ParseTreeListener;
var Recognizer = require('./Recognizer').Recognizer;
var DefaultErrorStrategy = require('./error/ErrorStrategy').DefaultErrorStrategy;
var ATNDeserializer = require('./atn/ATNDeserializer').ATNDeserializer;
var ATNDeserializer = require('./atn/ATNDeserializer');
var ATNDeserializationOptions = require('./atn/ATNDeserializationOptions');
var TerminalNode = require('./tree/Tree').TerminalNode;
var ErrorNode = require('./tree/Tree').ErrorNode;

View File

@ -249,5 +249,7 @@ class OrderedATNConfigSet extends ATNConfigSet {
}
}
module.exports.ATNConfigSet = ATNConfigSet;
module.exports.OrderedATNConfigSet = OrderedATNConfigSet;
module.exports = {
ATNConfigSet,
OrderedATNConfigSet
}

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@
*/
exports.ATN = require('./ATN');
exports.ATNDeserializer = require('./ATNDeserializer').ATNDeserializer;
exports.ATNDeserializer = require('./ATNDeserializer');
exports.LexerATNSimulator = require('./LexerATNSimulator').LexerATNSimulator;
exports.ParserATNSimulator = require('./ParserATNSimulator').ParserATNSimulator;
exports.PredictionMode = require('./PredictionMode').PredictionMode;