File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 6
6
7
7
const WebpackError = require ( "./WebpackError" ) ;
8
8
9
+ /** @typedef {import("./Module.js") } Module */
10
+
11
+ /** @typedef {import("./Dependency.js").Loc } Loc */
12
+
9
13
class CommentCompilationWarning extends WebpackError {
14
+ /**
15
+ *
16
+ * @param {string } message warning message
17
+ * @param {Module } module affected module
18
+ * @param {Loc } loc affected lines of code
19
+ */
10
20
constructor ( message , module , loc ) {
11
21
super ( message ) ;
12
22
Original file line number Diff line number Diff line change 7
7
const compareLocations = require ( "./compareLocations" ) ;
8
8
const DependencyReference = require ( "./dependencies/DependencyReference" ) ;
9
9
10
+ /** @typedef {Object } Position
11
+ * @property {number } column
12
+ * @property {number } line
13
+ */
14
+
15
+ /** @typedef {Object } Loc
16
+ * @property {Position } start
17
+ * @property {Position } end
18
+ */
19
+
10
20
class Dependency {
11
21
constructor ( ) {
12
22
this . module = null ;
You can’t perform that action at this time.
0 commit comments