Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
851d266
commit 9eef13a
Showing
9 changed files
with
921 additions
and
0 deletions.
There are no files selected for viewing
155 changes: 155 additions & 0 deletions
155
packages/babel-core/test/fixtures/transformation/source-maps/class/source-map-visual.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
(1:6-10) ass Test { <-- (1:4-8) var Test = / | ||
^^^^ ^^^^ | ||
|
||
(1:10-12) Test { <-- (1:8-37) Test = /*#__PURE__*/function () { | ||
^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
(1:10-12) Test { <-- (2:2-15) "use strict"; | ||
^^ ^^^^^^^^^^^^^ | ||
|
||
(1:10-12) Test { <-- (4:2-11) function Test | ||
^^ ^^^^^^^^^ | ||
|
||
(1:10-12) Test { <-- (4:11-16) ion Test() { | ||
^^ ^^^^^ | ||
|
||
(1:10-12) Test { <-- (4:16-19) est() { | ||
^^ ^^^ | ||
|
||
(1:10-12) Test { <-- (5:4-16) babelHelpers.cla | ||
^^ ^^^^^^^^^^^^ | ||
|
||
(1:10-12) Test { <-- (5:16-17) pers.clas | ||
^^ ^ | ||
|
||
(1:10-12) Test { <-- (5:17-31) ers.classCallCheck(thi | ||
^^ ^^^^^^^^^^^^^^ | ||
|
||
(1:10-12) Test { <-- (5:31-38) heck(this, Test | ||
^^ ^^^^^^^ | ||
|
||
(1:10-12) Test { <-- (5:38-42) is, Test); | ||
^^ ^^^^ | ||
|
||
(1:10-12) Test { <-- (5:42-44) Test); | ||
^^ ^^ | ||
|
||
(1:10-12) Test { <-- (6:2-3) } | ||
^^ ^ | ||
|
||
(1:10-12) Test { <-- (7:2-14) babelHelpers.cre | ||
^^ ^^^^^^^^^^^^ | ||
|
||
(1:10-12) Test { <-- (7:14-15) pers.crea | ||
^^ ^ | ||
|
||
(1:10-12) Test { <-- (7:15-26) ers.createClass(Tes | ||
^^ ^^^^^^^^^^^ | ||
|
||
(1:10-12) Test { <-- (7:26-27) lass(Test | ||
^^ ^ | ||
|
||
(1:10-12) Test { <-- (7:27-31) ass(Test, [{ | ||
^^ ^^^^ | ||
|
||
(1:10-12) Test { <-- (7:31-35) Test, [{ | ||
^^ ^^^^ | ||
|
||
(1:10-12) Test { <-- (8:4-7) key: "b | ||
^^ ^^^ | ||
|
||
(1:10-12) Test { <-- (8:7-15) key: "bar", | ||
^^ ^^^^^^^^ | ||
|
||
(1:10-12) Test { <-- (9:4-7) get: fu | ||
^^ ^^^ | ||
|
||
(1:10-12) Test { <-- (9:7-9) get: func | ||
^^ ^^ | ||
|
||
(2:2-12) get bar() { <-- (9:9-18) et: function () { | ||
^^^^^^^^^^ ^^^^^^^^^ | ||
|
||
(2:2-12) get bar() { <-- (9:18-19) ion () { | ||
^^^^^^^^^^ ^ | ||
|
||
(2:2-12) get bar() { <-- (9:19-21) on () { | ||
^^^^^^^^^^ ^^ | ||
|
||
(2:12-13) r() { <-- (9:21-22) () { | ||
^ ^ | ||
|
||
(3:4-10) throw new <-- (10:6-12) throw new | ||
^^^^^^ ^^^^^^ | ||
|
||
(3:10-14) row new Erro <-- (10:12-16) row new Erro | ||
^^^^ ^^^^ | ||
|
||
(3:14-19) new Error("wo <-- (10:16-21) new Error("wo | ||
^^^^^ ^^^^^ | ||
|
||
(3:19-20) rror("wow <-- (10:21-22) rror("wow | ||
^ ^ | ||
|
||
(3:20-25) ror("wow"); <-- (10:22-27) ror("wow"); | ||
^^^^^ ^^^^^ | ||
|
||
(3:25-26) wow"); <-- (10:27-28) wow"); | ||
^ ^ | ||
|
||
(3:26-27) ow"); <-- (10:28-29) ow"); | ||
^ ^ | ||
|
||
(4:2-3) } <-- (11:4-5) } | ||
^ ^ | ||
|
||
(4:3-3) } <-- (12:2-6) }]); | ||
>< ^^^^ | ||
|
||
(4:3-3) } <-- (13:2-9) return Test | ||
>< ^^^^^^^ | ||
|
||
(4:3-3) } <-- (13:9-13) urn Test; | ||
>< ^^^^ | ||
|
||
(4:3-3) } <-- (13:13-14) Test; | ||
>< ^ | ||
|
||
(4:3-3) } <-- (14:0-4) }(); | ||
>< ^^^^ | ||
|
||
(7:0-4) var test <-- (15:0-4) var test | ||
^^^^ ^^^^ | ||
|
||
(7:4-8) var test = n <-- (15:4-8) var test = n | ||
^^^^ ^^^^ | ||
|
||
(7:8-11) test = new <-- (15:8-11) test = new | ||
^^^ ^^^ | ||
|
||
(7:11-15) t = new Test <-- (15:11-15) t = new Test | ||
^^^^ ^^^^ | ||
|
||
(7:15-19) new Test; <-- (15:15-19) new Test(); | ||
^^^^ ^^^^ | ||
|
||
(7:19-19) Test; <-- (15:19-20) Test(); | ||
>< ^ | ||
|
||
(7:18-19) Test; <-- (15:20-21) est(); | ||
^ ^ | ||
|
||
(7:19-20) Test; <-- (15:21-22) st(); | ||
^ ^ | ||
|
||
(8:0-4) test.bar <-- (16:0-4) test.bar | ||
^^^^ ^^^^ | ||
|
||
(8:4-5) test.bar; <-- (16:4-5) test.bar; | ||
^ ^ | ||
|
||
(8:5-8) est.bar; <-- (16:5-8) est.bar; | ||
^^^ ^^^ | ||
|
||
(8:8-9) .bar; <-- (16:8-9) .bar; | ||
^ ^ |
32 changes: 32 additions & 0 deletions
32
...e/test/fixtures/transformation/source-maps/input-source-map-complex/source-map-visual.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
(87:0-16) export default { <-- (92:15-16) t = { | ||
^^^^^^^^^^^^^^^^ ^ | ||
|
||
(88:0-21) name: 'HelloWorld', <-- (93:2-6) name: 'H | ||
^^^^^^^^^^^^^^^^^^^^^ ^^^^ | ||
|
||
(88:0-21) name: 'HelloWorld', <-- (93:6-21) name: 'HelloWorld', | ||
^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ | ||
|
||
(89:0-11) data () { <-- (94:2-7) data() { | ||
^^^^^^^^^^^ ^^^^^ | ||
|
||
(89:0-11) data () { <-- (94:7-10) ata() { | ||
^^^^^^^^^^^ ^^^ | ||
|
||
(90:0-12) return { <-- (95:4-12) return { | ||
^^^^^^^^^^^^ ^^^^^^^^ | ||
|
||
(91:0-39) msg: 'Welcome to Your Vue.js App' <-- (96:6-9) msg: 'W | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ | ||
|
||
(91:0-39) msg: 'Welcome to Your Vue.js App' <-- (96:9-39) msg: 'Welcome to Your Vue.js App' | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
(92:0-5) } <-- (97:4-6) }; | ||
^^^^^ ^^ | ||
|
||
(93:0-3) } <-- (98:2-3) } | ||
^^^ ^ | ||
|
||
(94:0-1) } <-- (99:0-3) }; // | ||
^ ^^^ |
23 changes: 23 additions & 0 deletions
23
...st/fixtures/transformation/source-maps/interpreter-directive-prefix/source-map-visual.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
(1:0-10) #!env node <-- (1:0-10) #!env node | ||
^^^^^^^^^^ ^^^^^^^^^^ | ||
|
||
(3:0-7) console.log <-- (2:0-7) console.log | ||
^^^^^^^ ^^^^^^^ | ||
|
||
(3:7-8) sole.log( <-- (2:7-8) sole.log( | ||
^ ^ | ||
|
||
(3:8-11) ole.log("He <-- (2:8-11) ole.log("He | ||
^^^ ^^^ | ||
|
||
(3:11-12) .log("Hel <-- (2:11-12) .log("Hel | ||
^ ^ | ||
|
||
(3:12-27) log("Hello, world!"); <-- (2:12-27) log("Hello, world!"); | ||
^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ | ||
|
||
(3:27-28) ld!"); <-- (2:27-28) ld!"); | ||
^ ^ | ||
|
||
(3:28-29) d!"); <-- (2:28-29) d!"); | ||
^ ^ |
74 changes: 74 additions & 0 deletions
74
...gin-transform-destructuring/test/fixtures/sourcemap/declaration-loc/source-map-visual.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
(1:0-6) const fn = <-- (1:0-6) const fn = | ||
^^^^^^ ^^^^^^ | ||
|
||
(1:6-8) nst fn = ( <-- (1:6-8) nst fn = a | ||
^^ ^^ | ||
|
||
(1:8-12) t fn = (arg) <-- (1:8-11) t fn = arg | ||
^^^^ ^^^ | ||
|
||
(1:12-15) = (arg) => <-- (1:11-14) n = arg => | ||
^^^ ^^^ | ||
|
||
(1:15-20) (arg) => { <-- (1:14-18) arg => { | ||
^^^^^ ^^^^ | ||
|
||
(1:20-21) => { <-- (1:18-19) => { | ||
^ ^ | ||
|
||
(2:2-15) var [x, y] = arg; <-- (2:2-6) var _arg | ||
^^^^^^^^^^^^^ ^^^^ | ||
|
||
(2:2-15) var [x, y] = arg; <-- (2:6-10) var _arg = b | ||
^^^^^^^^^^^^^ ^^^^ | ||
|
||
(2:2-15) var [x, y] = arg; <-- (2:10-13) _arg = babe | ||
^^^^^^^^^^^^^ ^^^ | ||
|
||
(2:2-15) var [x, y] = arg; <-- (2:13-25) g = babelHelpers.sli | ||
^^^^^^^^^^^^^ ^^^^^^^^^^^^ | ||
|
||
(2:2-15) var [x, y] = arg; <-- (2:25-26) pers.slic | ||
^^^^^^^^^^^^^ ^ | ||
|
||
(2:2-15) var [x, y] = arg; <-- (2:26-39) ers.slicedToArray(arg | ||
^^^^^^^^^^^^^ ^^^^^^^^^^^^^ | ||
|
||
(2:2-15) var [x, y] = arg; <-- (2:39-40) rray(arg, | ||
^^^^^^^^^^^^^ ^ | ||
|
||
(2:15-18) ] = arg; <-- (2:40-43) ray(arg, 2) | ||
^^^ ^^^ | ||
|
||
(2:18-18) arg; <-- (2:43-48) (arg, 2), | ||
>< ^^^^^ | ||
|
||
(2:7-8) ar [x, y] <-- (3:4-5) x = _ | ||
^ ^ | ||
|
||
(2:8-10) r [x, y] = <-- (3:5-8) x = _arg | ||
^^ ^^^ | ||
|
||
(2:8-10) r [x, y] = <-- (3:8-12) x = _arg[0], | ||
^^ ^^^^ | ||
|
||
(2:8-10) r [x, y] = <-- (3:12-16) _arg[0], | ||
^^ ^^^^ | ||
|
||
(2:10-11) [x, y] = <-- (4:4-5) y = _ | ||
^ ^ | ||
|
||
(2:11-19) x, y] = arg; <-- (4:5-8) y = _arg | ||
^^^^^^^^ ^^^ | ||
|
||
(2:11-19) x, y] = arg; <-- (4:8-12) y = _arg[1]; | ||
^^^^^^^^ ^^^^ | ||
|
||
(2:11-19) x, y] = arg; <-- (4:12-16) _arg[1]; | ||
^^^^^^^^ ^^^^ | ||
|
||
(3:0-1) } <-- (5:0-1) }; | ||
^ ^ | ||
|
||
(3:1-1) } <-- (5:1-2) }; | ||
>< ^ |
Oops, something went wrong.