|
7 | 7 | | text: "let foo, bar;\n\n// x\n// y\n" |
8 | 8 | | getText(): "let foo, bar;\n\n// x\n// y\n" |
9 | 9 | | lines: ["let foo, bar;","","// x","// y",""] |
| 10 | + | locs: |
| 11 | + | 0 => { line: 1, column: 0 }("l") |
| 12 | + | 1 => { line: 1, column: 1 }("e") |
| 13 | + | 2 => { line: 1, column: 2 }("t") |
| 14 | + | 3 => { line: 1, column: 3 }(" ") |
| 15 | + | 4 => { line: 1, column: 4 }("f") |
| 16 | + | 5 => { line: 1, column: 5 }("o") |
| 17 | + | 6 => { line: 1, column: 6 }("o") |
| 18 | + | 7 => { line: 1, column: 7 }(",") |
| 19 | + | 8 => { line: 1, column: 8 }(" ") |
| 20 | + | 9 => { line: 1, column: 9 }("b") |
| 21 | + | 10 => { line: 1, column: 10 }("a") |
| 22 | + | 11 => { line: 1, column: 11 }("r") |
| 23 | + | 12 => { line: 1, column: 12 }(";") |
| 24 | + | 13 => { line: 1, column: 13 }("\n") |
| 25 | + | 14 => { line: 2, column: 0 }("\n") |
| 26 | + | 15 => { line: 3, column: 0 }("/") |
| 27 | + | 16 => { line: 3, column: 1 }("/") |
| 28 | + | 17 => { line: 3, column: 2 }(" ") |
| 29 | + | 18 => { line: 3, column: 3 }("x") |
| 30 | + | 19 => { line: 3, column: 4 }("\n") |
| 31 | + | 20 => { line: 4, column: 0 }("/") |
| 32 | + | 21 => { line: 4, column: 1 }("/") |
| 33 | + | 22 => { line: 4, column: 2 }(" ") |
| 34 | + | 23 => { line: 4, column: 3 }("y") |
| 35 | + | 24 => { line: 4, column: 4 }("\n") |
| 36 | + | 25 => { line: 5, column: 0 }("<EOF>") |
10 | 37 | | ast: "foo" |
11 | 38 | | visitorKeys: left, right |
12 | 39 | ,-[files/1.js:1:1] |
|
27 | 54 | | text: "let foo, bar;\n\n// x\n// y\n" |
28 | 55 | | getText(): "let foo, bar;\n\n// x\n// y\n" |
29 | 56 | | lines: ["let foo, bar;","","// x","// y",""] |
| 57 | + | locs: |
| 58 | + | 0 => { line: 1, column: 0 }("l") |
| 59 | + | 1 => { line: 1, column: 1 }("e") |
| 60 | + | 2 => { line: 1, column: 2 }("t") |
| 61 | + | 3 => { line: 1, column: 3 }(" ") |
| 62 | + | 4 => { line: 1, column: 4 }("f") |
| 63 | + | 5 => { line: 1, column: 5 }("o") |
| 64 | + | 6 => { line: 1, column: 6 }("o") |
| 65 | + | 7 => { line: 1, column: 7 }(",") |
| 66 | + | 8 => { line: 1, column: 8 }(" ") |
| 67 | + | 9 => { line: 1, column: 9 }("b") |
| 68 | + | 10 => { line: 1, column: 10 }("a") |
| 69 | + | 11 => { line: 1, column: 11 }("r") |
| 70 | + | 12 => { line: 1, column: 12 }(";") |
| 71 | + | 13 => { line: 1, column: 13 }("\n") |
| 72 | + | 14 => { line: 2, column: 0 }("\n") |
| 73 | + | 15 => { line: 3, column: 0 }("/") |
| 74 | + | 16 => { line: 3, column: 1 }("/") |
| 75 | + | 17 => { line: 3, column: 2 }(" ") |
| 76 | + | 18 => { line: 3, column: 3 }("x") |
| 77 | + | 19 => { line: 3, column: 4 }("\n") |
| 78 | + | 20 => { line: 4, column: 0 }("/") |
| 79 | + | 21 => { line: 4, column: 1 }("/") |
| 80 | + | 22 => { line: 4, column: 2 }(" ") |
| 81 | + | 23 => { line: 4, column: 3 }("y") |
| 82 | + | 24 => { line: 4, column: 4 }("\n") |
| 83 | + | 25 => { line: 5, column: 0 }("<EOF>") |
30 | 84 | | ast: "foo" |
31 | 85 | | visitorKeys: left, right |
32 | 86 | ,-[files/1.js:1:1] |
|
56 | 110 | | source with before: "t foo" |
57 | 111 | | source with after: "foo," |
58 | 112 | | source with both: "t foo," |
| 113 | + | start loc: {"line":1,"column":4} |
| 114 | + | end loc: {"line":1,"column":7} |
59 | 115 | ,-[files/1.js:1:5] |
60 | 116 | 1 | let foo, bar; |
61 | 117 | : ^^^ |
|
67 | 123 | | source with before: "t foo" |
68 | 124 | | source with after: "foo," |
69 | 125 | | source with both: "t foo," |
| 126 | + | start loc: {"line":1,"column":4} |
| 127 | + | end loc: {"line":1,"column":7} |
70 | 128 | ,-[files/1.js:1:5] |
71 | 129 | 1 | let foo, bar; |
72 | 130 | : ^^^ |
|
78 | 136 | | source with before: ", bar" |
79 | 137 | | source with after: "bar;" |
80 | 138 | | source with both: ", bar;" |
| 139 | + | start loc: {"line":1,"column":9} |
| 140 | + | end loc: {"line":1,"column":12} |
81 | 141 | ,-[files/1.js:1:10] |
82 | 142 | 1 | let foo, bar; |
83 | 143 | : ^^^ |
|
89 | 149 | | source with before: ", bar" |
90 | 150 | | source with after: "bar;" |
91 | 151 | | source with both: ", bar;" |
| 152 | + | start loc: {"line":1,"column":9} |
| 153 | + | end loc: {"line":1,"column":12} |
92 | 154 | ,-[files/1.js:1:10] |
93 | 155 | 1 | let foo, bar; |
94 | 156 | : ^^^ |
|
99 | 161 | | text: "let qux;\n" |
100 | 162 | | getText(): "let qux;\n" |
101 | 163 | | lines: ["let qux;",""] |
| 164 | + | locs: |
| 165 | + | 0 => { line: 1, column: 0 }("l") |
| 166 | + | 1 => { line: 1, column: 1 }("e") |
| 167 | + | 2 => { line: 1, column: 2 }("t") |
| 168 | + | 3 => { line: 1, column: 3 }(" ") |
| 169 | + | 4 => { line: 1, column: 4 }("q") |
| 170 | + | 5 => { line: 1, column: 5 }("u") |
| 171 | + | 6 => { line: 1, column: 6 }("x") |
| 172 | + | 7 => { line: 1, column: 7 }(";") |
| 173 | + | 8 => { line: 1, column: 8 }("\n") |
| 174 | + | 9 => { line: 2, column: 0 }("<EOF>") |
102 | 175 | | ast: "qux" |
103 | 176 | | visitorKeys: left, right |
104 | 177 | ,-[files/2.js:1:1] |
|
117 | 190 | | text: "let qux;\n" |
118 | 191 | | getText(): "let qux;\n" |
119 | 192 | | lines: ["let qux;",""] |
| 193 | + | locs: |
| 194 | + | 0 => { line: 1, column: 0 }("l") |
| 195 | + | 1 => { line: 1, column: 1 }("e") |
| 196 | + | 2 => { line: 1, column: 2 }("t") |
| 197 | + | 3 => { line: 1, column: 3 }(" ") |
| 198 | + | 4 => { line: 1, column: 4 }("q") |
| 199 | + | 5 => { line: 1, column: 5 }("u") |
| 200 | + | 6 => { line: 1, column: 6 }("x") |
| 201 | + | 7 => { line: 1, column: 7 }(";") |
| 202 | + | 8 => { line: 1, column: 8 }("\n") |
| 203 | + | 9 => { line: 2, column: 0 }("<EOF>") |
120 | 204 | | ast: "qux" |
121 | 205 | | visitorKeys: left, right |
122 | 206 | ,-[files/2.js:1:1] |
|
143 | 227 | | source with before: "t qux" |
144 | 228 | | source with after: "qux;" |
145 | 229 | | source with both: "t qux;" |
| 230 | + | start loc: {"line":1,"column":4} |
| 231 | + | end loc: {"line":1,"column":7} |
146 | 232 | ,-[files/2.js:1:5] |
147 | 233 | 1 | let qux; |
148 | 234 | : ^^^ |
|
153 | 239 | | source with before: "t qux" |
154 | 240 | | source with after: "qux;" |
155 | 241 | | source with both: "t qux;" |
| 242 | + | start loc: {"line":1,"column":4} |
| 243 | + | end loc: {"line":1,"column":7} |
156 | 244 | ,-[files/2.js:1:5] |
157 | 245 | 1 | let qux; |
158 | 246 | : ^^^ |
|
0 commit comments