1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
===================================================================
JsFile: sourceMapForFunctionWithCommentPrecedingStatement01.js
mapUrl: sourceMapForFunctionWithCommentPrecedingStatement01.js.map
sourceRoot:
sources: sourceMapForFunctionWithCommentPrecedingStatement01.ts
===================================================================
-------------------------------------------------------------------
emittedFile:tests/cases/compiler/sourceMapForFunctionWithCommentPrecedingStatement01.js
sourceFile:sourceMapForFunctionWithCommentPrecedingStatement01.ts
-------------------------------------------------------------------
>>>function P() {
1 >
2 >^^^^^^^^^
3 > ^
4 > ^^^^^^^->
1 >
2 >function
3 > P
1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0)
2 >Emitted(1, 10) Source(1, 10) + SourceIndex(0)
3 >Emitted(1, 11) Source(1, 11) + SourceIndex(0)
---
>>> // Test this
1->^^^^
2 > ^^^^^^^^^^^^
1->() {
>
2 > // Test this
1->Emitted(2, 5) Source(2, 5) + SourceIndex(0)
2 >Emitted(2, 17) Source(2, 17) + SourceIndex(0)
---
>>> var a = 1;
1 >^^^^
2 > ^^^^
3 > ^
4 > ^^^
5 > ^
6 > ^
1 >
>
2 > var
3 > a
4 > =
5 > 1
6 > ;
1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0)
2 >Emitted(3, 9) Source(3, 9) + SourceIndex(0)
3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0)
4 >Emitted(3, 13) Source(3, 13) + SourceIndex(0)
5 >Emitted(3, 14) Source(3, 14) + SourceIndex(0)
6 >Emitted(3, 15) Source(3, 15) + SourceIndex(0)
---
>>>}
1 >
2 >^
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
2 >}
1 >Emitted(4, 1) Source(4, 1) + SourceIndex(0)
2 >Emitted(4, 2) Source(4, 2) + SourceIndex(0)
---
>>>//# sourceMappingURL=sourceMapForFunctionWithCommentPrecedingStatement01.js.map
|