refactored ATNDeserializer.js to use es6 classes
fix: dont wrap the class in an object for export
This commit is contained in:
parent
d61e4d5049
commit
4f8527e9ee
|
@ -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;
|
||||
|
|
|
@ -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
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue