Last change
on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
729 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | /*
|
---|
| 2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
---|
| 3 | Author Tobias Koppers @sokra
|
---|
| 4 | */
|
---|
| 5 |
|
---|
| 6 | "use strict";
|
---|
| 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;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.