You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
552 B

  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;