File tree 1 file changed +10
-13
lines changed
1 file changed +10
-13
lines changed 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 ;
@@ -48,17 +58,4 @@ class Dependency {
48
58
}
49
59
Dependency . compare = ( a , b ) => compareLocations ( a . loc , b . loc ) ;
50
60
51
- /** @typedef {Object } Position
52
- * @property {number } column
53
- * @property {number } line
54
- */
55
-
56
- /** @typedef {Object } Loc
57
- * @property {Position } start
58
- * @property {Position } end
59
- */
60
-
61
- exports Position ;
62
- exports Loc ;
63
-
64
61
module . exports = Dependency ;
You can’t perform that action at this time.
0 commit comments