tokenizer-mixin.js 552 B

1234567891011121314151617
  1. 'use strict';
  2. const ErrorReportingMixinBase = require('./mixin-base');
  3. const ErrorReportingPreprocessorMixin = require('./preprocessor-mixin');
  4. const Mixin = require('../../utils/mixin');
  5. class ErrorReportingTokenizerMixin extends ErrorReportingMixinBase {
  6. constructor(tokenizer, opts) {
  7. super(tokenizer, opts);
  8. const preprocessorMixin = Mixin.install(tokenizer.preprocessor, ErrorReportingPreprocessorMixin, opts);
  9. this.posTracker = preprocessorMixin.posTracker;
  10. }
  11. }
  12. module.exports = ErrorReportingTokenizerMixin;