CommentCompilationWarning.js 748 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const WebpackError = require("./WebpackError");
  7. /** @typedef {import("./Module")} Module */
  8. /** @typedef {import("./Dependency").DependencyLocation} DependencyLocation */
  9. class CommentCompilationWarning extends WebpackError {
  10. /**
  11. *
  12. * @param {string} message warning message
  13. * @param {Module} module affected module
  14. * @param {DependencyLocation} loc affected lines of code
  15. */
  16. constructor(message, module, loc) {
  17. super(message);
  18. this.name = "CommentCompilationWarning";
  19. this.module = module;
  20. this.loc = loc;
  21. Error.captureStackTrace(this, this.constructor);
  22. }
  23. }
  24. module.exports = CommentCompilationWarning;