export DFA and DiagnosticErrorListener directly instead of wrapping it on an anonymous object

This commit is contained in:
Camilo Roca 2020-02-16 19:19:48 +01:00
parent 96c2eb6a51
commit 20cbfc5a0a
4 changed files with 4 additions and 4 deletions

View File

@ -159,4 +159,4 @@ class DFA {
}
module.exports = { DFA };
module.exports = DFA;

View File

@ -3,7 +3,7 @@
* can be found in the LICENSE.txt file in the project root.
*/
exports.DFA = require('./DFA').DFA;
exports.DFA = require('./DFA');
exports.DFASerializer = require('./DFASerializer').DFASerializer;
exports.LexerDFASerializer = require('./DFASerializer').LexerDFASerializer;
exports.PredPrediction = require('./DFAState').PredPrediction;

View File

@ -102,4 +102,4 @@ class DiagnosticErrorListener extends ErrorListener {
}
}
module.exports = {DiagnosticErrorListener}
module.exports = DiagnosticErrorListener

View File

@ -8,6 +8,6 @@ module.exports.NoViableAltException = require('./Errors').NoViableAltException;
module.exports.LexerNoViableAltException = require('./Errors').LexerNoViableAltException;
module.exports.InputMismatchException = require('./Errors').InputMismatchException;
module.exports.FailedPredicateException = require('./Errors').FailedPredicateException;
module.exports.DiagnosticErrorListener = require('./DiagnosticErrorListener').DiagnosticErrorListener;
module.exports.DiagnosticErrorListener = require('./DiagnosticErrorListener');
module.exports.BailErrorStrategy = require('./ErrorStrategy').BailErrorStrategy;
module.exports.ErrorListener = require('./ErrorListener').ErrorListener;