2014-07-13 01:04:16 +02:00
|
|
|
===================================================================
|
|
|
|
JsFile: ternaryExpressionSourceMap.js
|
|
|
|
mapUrl: ternaryExpressionSourceMap.js.map
|
|
|
|
sourceRoot:
|
|
|
|
sources: ternaryExpressionSourceMap.ts
|
|
|
|
===================================================================
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
emittedFile:tests/cases/compiler/ternaryExpressionSourceMap.js
|
|
|
|
sourceFile:ternaryExpressionSourceMap.ts
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
>>>var x = 1;
|
|
|
|
1 >
|
|
|
|
2 >^^^^
|
|
|
|
3 > ^
|
|
|
|
4 > ^^^
|
|
|
|
5 > ^
|
|
|
|
6 > ^
|
2015-03-09 02:23:23 +01:00
|
|
|
7 > ^^^^^^^^^^^^^^^^^^->
|
2014-07-13 01:04:16 +02:00
|
|
|
1 >
|
|
|
|
>
|
|
|
|
2 >var
|
|
|
|
3 > x
|
|
|
|
4 > =
|
|
|
|
5 > 1
|
|
|
|
6 > ;
|
|
|
|
1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0)
|
|
|
|
2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0)
|
|
|
|
3 >Emitted(1, 6) Source(2, 6) + SourceIndex(0)
|
|
|
|
4 >Emitted(1, 9) Source(2, 9) + SourceIndex(0)
|
|
|
|
5 >Emitted(1, 10) Source(2, 10) + SourceIndex(0)
|
|
|
|
6 >Emitted(1, 11) Source(2, 11) + SourceIndex(0)
|
|
|
|
---
|
2015-03-09 02:23:23 +01:00
|
|
|
>>>var foo = x ? function () {
|
2014-07-13 01:04:16 +02:00
|
|
|
1->
|
|
|
|
2 >^^^^
|
|
|
|
3 > ^^^
|
|
|
|
4 > ^^^
|
|
|
|
5 > ^
|
|
|
|
6 > ^^^
|
|
|
|
1->
|
|
|
|
>
|
|
|
|
2 >var
|
|
|
|
3 > foo
|
|
|
|
4 > =
|
|
|
|
5 > x
|
|
|
|
6 > ?
|
|
|
|
1->Emitted(2, 1) Source(3, 1) + SourceIndex(0)
|
|
|
|
2 >Emitted(2, 5) Source(3, 5) + SourceIndex(0)
|
|
|
|
3 >Emitted(2, 8) Source(3, 8) + SourceIndex(0)
|
|
|
|
4 >Emitted(2, 11) Source(3, 11) + SourceIndex(0)
|
|
|
|
5 >Emitted(2, 12) Source(3, 12) + SourceIndex(0)
|
|
|
|
6 >Emitted(2, 15) Source(3, 15) + SourceIndex(0)
|
2015-03-09 02:23:23 +01:00
|
|
|
---
|
|
|
|
>>> return 0;
|
|
|
|
1 >^^^^^^^^^^^
|
|
|
|
2 > ^
|
|
|
|
3 > ^^^^^^->
|
|
|
|
1 >() =>
|
|
|
|
2 > 0
|
|
|
|
1 >Emitted(3, 12) Source(3, 21) + SourceIndex(0)
|
|
|
|
2 >Emitted(3, 13) Source(3, 22) + SourceIndex(0)
|
|
|
|
---
|
|
|
|
>>>} : function () {
|
|
|
|
1->
|
|
|
|
2 >^
|
|
|
|
3 > ^^^
|
|
|
|
4 > ^^^^^^^^^^->
|
|
|
|
1->
|
|
|
|
2 >0
|
|
|
|
3 > :
|
|
|
|
1->Emitted(4, 1) Source(3, 21) + SourceIndex(0)
|
|
|
|
2 >Emitted(4, 2) Source(3, 22) + SourceIndex(0)
|
|
|
|
3 >Emitted(4, 5) Source(3, 25) + SourceIndex(0)
|
|
|
|
---
|
|
|
|
>>> return 0;
|
|
|
|
1->^^^^^^^^^^^
|
|
|
|
2 > ^
|
|
|
|
1->() =>
|
|
|
|
2 > 0
|
|
|
|
1->Emitted(5, 12) Source(3, 31) + SourceIndex(0)
|
|
|
|
2 >Emitted(5, 13) Source(3, 32) + SourceIndex(0)
|
|
|
|
---
|
|
|
|
>>>};
|
|
|
|
1 >
|
|
|
|
2 >^
|
|
|
|
3 > ^
|
|
|
|
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
|
|
1 >
|
|
|
|
2 >0
|
|
|
|
3 > ;
|
|
|
|
1 >Emitted(6, 1) Source(3, 31) + SourceIndex(0)
|
|
|
|
2 >Emitted(6, 2) Source(3, 32) + SourceIndex(0)
|
|
|
|
3 >Emitted(6, 3) Source(3, 33) + SourceIndex(0)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
|
|
|
>>>//# sourceMappingURL=ternaryExpressionSourceMap.js.map
|