390 lines
9.1 KiB
Text
390 lines
9.1 KiB
Text
|
===================================================================
|
||
|
JsFile: sourceMapValidationSwitch.js
|
||
|
mapUrl: sourceMapValidationSwitch.js.map
|
||
|
sourceRoot:
|
||
|
sources: sourceMapValidationSwitch.ts
|
||
|
===================================================================
|
||
|
-------------------------------------------------------------------
|
||
|
emittedFile:tests/cases/compiler/sourceMapValidationSwitch.js
|
||
|
sourceFile:sourceMapValidationSwitch.ts
|
||
|
-------------------------------------------------------------------
|
||
|
>>>var x = 10;
|
||
|
1 >
|
||
|
2 >^^^^
|
||
|
3 > ^
|
||
|
4 > ^^^
|
||
|
5 > ^^
|
||
|
6 > ^
|
||
|
7 > ^^->
|
||
|
1 >
|
||
|
2 >var
|
||
|
3 > x
|
||
|
4 > =
|
||
|
5 > 10
|
||
|
6 > ;
|
||
|
1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0)
|
||
|
2 >Emitted(1, 5) Source(1, 5) + SourceIndex(0)
|
||
|
3 >Emitted(1, 6) Source(1, 6) + SourceIndex(0)
|
||
|
4 >Emitted(1, 9) Source(1, 9) + SourceIndex(0)
|
||
|
5 >Emitted(1, 11) Source(1, 11) + SourceIndex(0)
|
||
|
6 >Emitted(1, 12) Source(1, 12) + SourceIndex(0)
|
||
|
---
|
||
|
>>>switch (x) {
|
||
|
1->
|
||
|
2 >^^^^^^
|
||
|
3 > ^
|
||
|
4 > ^
|
||
|
5 > ^
|
||
|
6 > ^
|
||
|
7 > ^
|
||
|
8 > ^
|
||
|
1->
|
||
|
>
|
||
|
2 >switch
|
||
|
3 >
|
||
|
4 > (
|
||
|
5 > x
|
||
|
6 > )
|
||
|
7 >
|
||
|
8 > {
|
||
|
1->Emitted(2, 1) Source(2, 1) + SourceIndex(0)
|
||
|
2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0)
|
||
|
3 >Emitted(2, 8) Source(2, 8) + SourceIndex(0)
|
||
|
4 >Emitted(2, 9) Source(2, 9) + SourceIndex(0)
|
||
|
5 >Emitted(2, 10) Source(2, 10) + SourceIndex(0)
|
||
|
6 >Emitted(2, 11) Source(2, 11) + SourceIndex(0)
|
||
|
7 >Emitted(2, 12) Source(2, 12) + SourceIndex(0)
|
||
|
8 >Emitted(2, 13) Source(2, 13) + SourceIndex(0)
|
||
|
---
|
||
|
>>> case 5:
|
||
|
1 >^^^^
|
||
|
2 > ^^^^^
|
||
|
3 > ^
|
||
|
4 > ^^^->
|
||
|
1 >
|
||
|
>
|
||
|
2 > case
|
||
|
3 > 5
|
||
|
1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0)
|
||
|
2 >Emitted(3, 10) Source(3, 10) + SourceIndex(0)
|
||
|
3 >Emitted(3, 11) Source(3, 11) + SourceIndex(0)
|
||
|
---
|
||
|
>>> x++;
|
||
|
1->^^^^^^^^
|
||
|
2 > ^
|
||
|
3 > ^^
|
||
|
4 > ^
|
||
|
5 > ^^^->
|
||
|
1->:
|
||
|
>
|
||
|
2 > x
|
||
|
3 > ++
|
||
|
4 > ;
|
||
|
1->Emitted(4, 9) Source(4, 9) + SourceIndex(0)
|
||
|
2 >Emitted(4, 10) Source(4, 10) + SourceIndex(0)
|
||
|
3 >Emitted(4, 12) Source(4, 12) + SourceIndex(0)
|
||
|
4 >Emitted(4, 13) Source(4, 13) + SourceIndex(0)
|
||
|
---
|
||
|
>>> break;
|
||
|
1->^^^^^^^^
|
||
|
2 > ^^^^^
|
||
|
3 > ^
|
||
|
1->
|
||
|
>
|
||
|
2 > break
|
||
|
3 > ;
|
||
|
1->Emitted(5, 9) Source(5, 9) + SourceIndex(0)
|
||
|
2 >Emitted(5, 14) Source(5, 14) + SourceIndex(0)
|
||
|
3 >Emitted(5, 15) Source(5, 15) + SourceIndex(0)
|
||
|
---
|
||
|
>>> case 10:
|
||
|
1 >^^^^
|
||
|
2 > ^^^^^
|
||
|
3 > ^^
|
||
|
1 >
|
||
|
>
|
||
|
2 > case
|
||
|
3 > 10
|
||
|
1 >Emitted(6, 5) Source(6, 5) + SourceIndex(0)
|
||
|
2 >Emitted(6, 10) Source(6, 10) + SourceIndex(0)
|
||
|
3 >Emitted(6, 12) Source(6, 12) + SourceIndex(0)
|
||
|
---
|
||
|
>>> {
|
||
|
1 >^^^^^^^^
|
||
|
2 > ^
|
||
|
3 > ^^^^^^^^->
|
||
|
1 >:
|
||
|
>
|
||
|
2 > {
|
||
|
1 >Emitted(7, 9) Source(7, 9) + SourceIndex(0)
|
||
|
2 >Emitted(7, 10) Source(7, 10) + SourceIndex(0)
|
||
|
---
|
||
|
>>> x--;
|
||
|
1->^^^^^^^^^^^^
|
||
|
2 > ^
|
||
|
3 > ^^
|
||
|
4 > ^
|
||
|
5 > ^^^->
|
||
|
1->
|
||
|
>
|
||
|
2 > x
|
||
|
3 > --
|
||
|
4 > ;
|
||
|
1->Emitted(8, 13) Source(8, 13) + SourceIndex(0)
|
||
|
2 >Emitted(8, 14) Source(8, 14) + SourceIndex(0)
|
||
|
3 >Emitted(8, 16) Source(8, 16) + SourceIndex(0)
|
||
|
4 >Emitted(8, 17) Source(8, 17) + SourceIndex(0)
|
||
|
---
|
||
|
>>> break;
|
||
|
1->^^^^^^^^^^^^
|
||
|
2 > ^^^^^
|
||
|
3 > ^
|
||
|
1->
|
||
|
>
|
||
|
2 > break
|
||
|
3 > ;
|
||
|
1->Emitted(9, 13) Source(9, 13) + SourceIndex(0)
|
||
|
2 >Emitted(9, 18) Source(9, 18) + SourceIndex(0)
|
||
|
3 >Emitted(9, 19) Source(9, 19) + SourceIndex(0)
|
||
|
---
|
||
|
>>> }
|
||
|
1 >^^^^^^^^
|
||
|
2 > ^
|
||
|
3 > ^^^^->
|
||
|
1 >
|
||
|
>
|
||
|
2 > }
|
||
|
1 >Emitted(10, 9) Source(10, 9) + SourceIndex(0)
|
||
|
2 >Emitted(10, 10) Source(10, 10) + SourceIndex(0)
|
||
|
---
|
||
|
>>> default:
|
||
|
1->^^^^
|
||
|
2 > ^^^^^^^^^^^^^^^^->
|
||
|
1->
|
||
|
>
|
||
|
1->Emitted(11, 5) Source(11, 5) + SourceIndex(0)
|
||
|
---
|
||
|
>>> x = x * 10;
|
||
|
1->^^^^^^^^
|
||
|
2 > ^
|
||
|
3 > ^^^
|
||
|
4 > ^
|
||
|
5 > ^^^
|
||
|
6 > ^^
|
||
|
7 > ^
|
||
|
1->default:
|
||
|
>
|
||
|
2 > x
|
||
|
3 > =
|
||
|
4 > x
|
||
|
5 > *
|
||
|
6 > 10
|
||
|
7 > ;
|
||
|
1->Emitted(12, 9) Source(12, 9) + SourceIndex(0)
|
||
|
2 >Emitted(12, 10) Source(12, 10) + SourceIndex(0)
|
||
|
3 >Emitted(12, 13) Source(12, 13) + SourceIndex(0)
|
||
|
4 >Emitted(12, 14) Source(12, 14) + SourceIndex(0)
|
||
|
5 >Emitted(12, 17) Source(12, 16) + SourceIndex(0)
|
||
|
6 >Emitted(12, 19) Source(12, 18) + SourceIndex(0)
|
||
|
7 >Emitted(12, 20) Source(12, 19) + SourceIndex(0)
|
||
|
---
|
||
|
>>>}
|
||
|
1 >
|
||
|
2 >^
|
||
|
3 > ^^^^^^^^^^^^->
|
||
|
1 >
|
||
|
>
|
||
|
2 >}
|
||
|
1 >Emitted(13, 1) Source(13, 1) + SourceIndex(0)
|
||
|
2 >Emitted(13, 2) Source(13, 2) + SourceIndex(0)
|
||
|
---
|
||
|
>>>switch (x) {
|
||
|
1->
|
||
|
2 >^^^^^^
|
||
|
3 > ^
|
||
|
4 > ^
|
||
|
5 > ^
|
||
|
6 > ^
|
||
|
7 > ^
|
||
|
8 > ^
|
||
|
1->
|
||
|
>
|
||
|
2 >switch
|
||
|
3 >
|
||
|
4 > (
|
||
|
5 > x
|
||
|
6 > )
|
||
|
7 >
|
||
|
>
|
||
|
8 > {
|
||
|
1->Emitted(14, 1) Source(14, 1) + SourceIndex(0)
|
||
|
2 >Emitted(14, 7) Source(14, 7) + SourceIndex(0)
|
||
|
3 >Emitted(14, 8) Source(14, 8) + SourceIndex(0)
|
||
|
4 >Emitted(14, 9) Source(14, 9) + SourceIndex(0)
|
||
|
5 >Emitted(14, 10) Source(14, 10) + SourceIndex(0)
|
||
|
6 >Emitted(14, 11) Source(14, 11) + SourceIndex(0)
|
||
|
7 >Emitted(14, 12) Source(15, 1) + SourceIndex(0)
|
||
|
8 >Emitted(14, 13) Source(15, 2) + SourceIndex(0)
|
||
|
---
|
||
|
>>> case 5:
|
||
|
1 >^^^^
|
||
|
2 > ^^^^^
|
||
|
3 > ^
|
||
|
4 > ^^^->
|
||
|
1 >
|
||
|
>
|
||
|
2 > case
|
||
|
3 > 5
|
||
|
1 >Emitted(15, 5) Source(16, 5) + SourceIndex(0)
|
||
|
2 >Emitted(15, 10) Source(16, 10) + SourceIndex(0)
|
||
|
3 >Emitted(15, 11) Source(16, 11) + SourceIndex(0)
|
||
|
---
|
||
|
>>> x++;
|
||
|
1->^^^^^^^^
|
||
|
2 > ^
|
||
|
3 > ^^
|
||
|
4 > ^
|
||
|
5 > ^^^->
|
||
|
1->:
|
||
|
>
|
||
|
2 > x
|
||
|
3 > ++
|
||
|
4 > ;
|
||
|
1->Emitted(16, 9) Source(17, 9) + SourceIndex(0)
|
||
|
2 >Emitted(16, 10) Source(17, 10) + SourceIndex(0)
|
||
|
3 >Emitted(16, 12) Source(17, 12) + SourceIndex(0)
|
||
|
4 >Emitted(16, 13) Source(17, 13) + SourceIndex(0)
|
||
|
---
|
||
|
>>> break;
|
||
|
1->^^^^^^^^
|
||
|
2 > ^^^^^
|
||
|
3 > ^
|
||
|
1->
|
||
|
>
|
||
|
2 > break
|
||
|
3 > ;
|
||
|
1->Emitted(17, 9) Source(18, 9) + SourceIndex(0)
|
||
|
2 >Emitted(17, 14) Source(18, 14) + SourceIndex(0)
|
||
|
3 >Emitted(17, 15) Source(18, 15) + SourceIndex(0)
|
||
|
---
|
||
|
>>> case 10:
|
||
|
1 >^^^^
|
||
|
2 > ^^^^^
|
||
|
3 > ^^
|
||
|
1 >
|
||
|
>
|
||
|
2 > case
|
||
|
3 > 10
|
||
|
1 >Emitted(18, 5) Source(19, 5) + SourceIndex(0)
|
||
|
2 >Emitted(18, 10) Source(19, 10) + SourceIndex(0)
|
||
|
3 >Emitted(18, 12) Source(19, 12) + SourceIndex(0)
|
||
|
---
|
||
|
>>> {
|
||
|
1 >^^^^^^^^
|
||
|
2 > ^
|
||
|
3 > ^^^^^^^^->
|
||
|
1 >:
|
||
|
>
|
||
|
2 > {
|
||
|
1 >Emitted(19, 9) Source(20, 9) + SourceIndex(0)
|
||
|
2 >Emitted(19, 10) Source(20, 10) + SourceIndex(0)
|
||
|
---
|
||
|
>>> x--;
|
||
|
1->^^^^^^^^^^^^
|
||
|
2 > ^
|
||
|
3 > ^^
|
||
|
4 > ^
|
||
|
5 > ^^^->
|
||
|
1->
|
||
|
>
|
||
|
2 > x
|
||
|
3 > --
|
||
|
4 > ;
|
||
|
1->Emitted(20, 13) Source(21, 13) + SourceIndex(0)
|
||
|
2 >Emitted(20, 14) Source(21, 14) + SourceIndex(0)
|
||
|
3 >Emitted(20, 16) Source(21, 16) + SourceIndex(0)
|
||
|
4 >Emitted(20, 17) Source(21, 17) + SourceIndex(0)
|
||
|
---
|
||
|
>>> break;
|
||
|
1->^^^^^^^^^^^^
|
||
|
2 > ^^^^^
|
||
|
3 > ^
|
||
|
1->
|
||
|
>
|
||
|
2 > break
|
||
|
3 > ;
|
||
|
1->Emitted(21, 13) Source(22, 13) + SourceIndex(0)
|
||
|
2 >Emitted(21, 18) Source(22, 18) + SourceIndex(0)
|
||
|
3 >Emitted(21, 19) Source(22, 19) + SourceIndex(0)
|
||
|
---
|
||
|
>>> }
|
||
|
1 >^^^^^^^^
|
||
|
2 > ^
|
||
|
3 > ^^^^->
|
||
|
1 >
|
||
|
>
|
||
|
2 > }
|
||
|
1 >Emitted(22, 9) Source(23, 9) + SourceIndex(0)
|
||
|
2 >Emitted(22, 10) Source(23, 10) + SourceIndex(0)
|
||
|
---
|
||
|
>>> default:
|
||
|
1->^^^^
|
||
|
2 > ^^^^^^->
|
||
|
1->
|
||
|
>
|
||
|
1->Emitted(23, 5) Source(24, 5) + SourceIndex(0)
|
||
|
---
|
||
|
>>> {
|
||
|
1->^^^^^^^^
|
||
|
2 > ^
|
||
|
3 > ^^^^^^^^^^^^^^^->
|
||
|
1->default:
|
||
|
>
|
||
|
2 > {
|
||
|
1->Emitted(24, 9) Source(25, 9) + SourceIndex(0)
|
||
|
2 >Emitted(24, 10) Source(25, 10) + SourceIndex(0)
|
||
|
---
|
||
|
>>> x = x * 10;
|
||
|
1->^^^^^^^^^^^^
|
||
|
2 > ^
|
||
|
3 > ^^^
|
||
|
4 > ^
|
||
|
5 > ^^^
|
||
|
6 > ^^
|
||
|
7 > ^
|
||
|
1->
|
||
|
>
|
||
|
2 > x
|
||
|
3 > =
|
||
|
4 > x
|
||
|
5 > *
|
||
|
6 > 10
|
||
|
7 > ;
|
||
|
1->Emitted(25, 13) Source(26, 13) + SourceIndex(0)
|
||
|
2 >Emitted(25, 14) Source(26, 14) + SourceIndex(0)
|
||
|
3 >Emitted(25, 17) Source(26, 17) + SourceIndex(0)
|
||
|
4 >Emitted(25, 18) Source(26, 18) + SourceIndex(0)
|
||
|
5 >Emitted(25, 21) Source(26, 21) + SourceIndex(0)
|
||
|
6 >Emitted(25, 23) Source(26, 23) + SourceIndex(0)
|
||
|
7 >Emitted(25, 24) Source(26, 24) + SourceIndex(0)
|
||
|
---
|
||
|
>>> }
|
||
|
1 >^^^^^^^^
|
||
|
2 > ^
|
||
|
1 >
|
||
|
>
|
||
|
2 > }
|
||
|
1 >Emitted(26, 9) Source(27, 9) + SourceIndex(0)
|
||
|
2 >Emitted(26, 10) Source(27, 10) + SourceIndex(0)
|
||
|
---
|
||
|
>>>}
|
||
|
1 >
|
||
|
2 >^
|
||
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||
|
1 >
|
||
|
>
|
||
|
2 >}
|
||
|
1 >Emitted(27, 1) Source(28, 1) + SourceIndex(0)
|
||
|
2 >Emitted(27, 2) Source(28, 2) + SourceIndex(0)
|
||
|
---
|
||
|
>>>//# sourceMappingURL=sourceMapValidationSwitch.js.map
|