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