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