diff options
Diffstat (limited to 'node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js')
-rw-r--r-- | node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js b/node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js new file mode 100644 index 0000000..219fcab --- /dev/null +++ b/node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js @@ -0,0 +1,17 @@ +'use strict'; + +const ErrorReportingMixinBase = require('./mixin-base'); +const ErrorReportingPreprocessorMixin = require('./preprocessor-mixin'); +const Mixin = require('../../utils/mixin'); + +class ErrorReportingTokenizerMixin extends ErrorReportingMixinBase { + constructor(tokenizer, opts) { + super(tokenizer, opts); + + const preprocessorMixin = Mixin.install(tokenizer.preprocessor, ErrorReportingPreprocessorMixin, opts); + + this.posTracker = preprocessorMixin.posTracker; + } +} + +module.exports = ErrorReportingTokenizerMixin; |