2014-07-13 01:04:16 +02:00
|
|
|
===================================================================
|
|
|
|
JsFile: sourceMap-FileWithComments.js
|
|
|
|
mapUrl: sourceMap-FileWithComments.js.map
|
|
|
|
sourceRoot:
|
|
|
|
sources: sourceMap-FileWithComments.ts
|
|
|
|
===================================================================
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
emittedFile:tests/cases/compiler/sourceMap-FileWithComments.js
|
|
|
|
sourceFile:sourceMap-FileWithComments.ts
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
>>>var Shapes;
|
|
|
|
1 >
|
|
|
|
2 >^^^^
|
|
|
|
3 > ^^^^^^
|
|
|
|
4 > ^
|
|
|
|
5 > ^^^^^^^^^^->
|
|
|
|
1 >
|
|
|
|
>// Interface
|
|
|
|
>interface IPoint {
|
|
|
|
> getDist(): number;
|
|
|
|
>}
|
|
|
|
>
|
|
|
|
>// Module
|
|
|
|
>
|
|
|
|
2 >module
|
|
|
|
3 > Shapes
|
|
|
|
4 > {
|
|
|
|
>
|
|
|
|
> // Class
|
|
|
|
> export class Point implements IPoint {
|
|
|
|
> // Constructor
|
|
|
|
> constructor(public x: number, public y: number) { }
|
|
|
|
>
|
|
|
|
> // Instance member
|
|
|
|
> getDist() { return Math.sqrt(this.x * this.x + this.y * this.y); }
|
|
|
|
>
|
|
|
|
> // Static member
|
|
|
|
> static origin = new Point(0, 0);
|
|
|
|
> }
|
|
|
|
>
|
|
|
|
> // Variable comment after class
|
|
|
|
> var a = 10;
|
|
|
|
>
|
|
|
|
> export function foo() {
|
|
|
|
> }
|
|
|
|
>
|
|
|
|
> /** comment after function
|
|
|
|
> * this is another comment
|
|
|
|
> */
|
|
|
|
> var b = 10;
|
|
|
|
> }
|
|
|
|
1 >Emitted(1, 1) Source(8, 1) + SourceIndex(0)
|
|
|
|
2 >Emitted(1, 5) Source(8, 8) + SourceIndex(0)
|
|
|
|
3 >Emitted(1, 11) Source(8, 14) + SourceIndex(0)
|
|
|
|
4 >Emitted(1, 12) Source(32, 2) + SourceIndex(0)
|
|
|
|
---
|
|
|
|
>>>(function (Shapes) {
|
|
|
|
1->
|
|
|
|
2 >^^^^^^^^^^^
|
|
|
|
3 > ^^^^^^
|
|
|
|
4 > ^^
|
|
|
|
5 > ^
|
|
|
|
6 > ^^^^^^^^^^^->
|
|
|
|
1->
|
|
|
|
2 >module
|
|
|
|
3 > Shapes
|
|
|
|
4 >
|
|
|
|
5 > {
|
|
|
|
1->Emitted(2, 1) Source(8, 1) + SourceIndex(0)
|
|
|
|
2 >Emitted(2, 12) Source(8, 8) + SourceIndex(0)
|
|
|
|
3 >Emitted(2, 18) Source(8, 14) + SourceIndex(0)
|
|
|
|
4 >Emitted(2, 20) Source(8, 15) + SourceIndex(0)
|
|
|
|
5 >Emitted(2, 21) Source(8, 16) + SourceIndex(0)
|
|
|
|
---
|
|
|
|
>>> var Point = (function () {
|
|
|
|
1->^^^^
|
|
|
|
2 > ^^^^
|
|
|
|
3 > ^^^^^
|
|
|
|
4 > ^^^^^^^^^^^^^^^^^^->
|
|
|
|
1->
|
|
|
|
>
|
|
|
|
> // Class
|
|
|
|
>
|
|
|
|
2 > export class
|
|
|
|
3 > Point
|
|
|
|
1->Emitted(3, 5) Source(11, 5) + SourceIndex(0) name (Shapes)
|
|
|
|
2 >Emitted(3, 9) Source(11, 18) + SourceIndex(0) name (Shapes)
|
|
|
|
3 >Emitted(3, 14) Source(11, 23) + SourceIndex(0) name (Shapes)
|
|
|
|
---
|
|
|
|
>>> function Point(x, y) {
|
|
|
|
1->^^^^^^^^
|
|
|
|
2 > ^^^^^^^^^
|
|
|
|
3 > ^^^^^
|
|
|
|
4 > ^
|
|
|
|
5 > ^
|
|
|
|
6 > ^^
|
|
|
|
7 > ^
|
|
|
|
1-> implements IPoint {
|
|
|
|
> // Constructor
|
|
|
|
>
|
|
|
|
2 >
|
|
|
|
3 > Point
|
|
|
|
4 > implements IPoint {
|
|
|
|
> // Constructor
|
|
|
|
> constructor(public
|
|
|
|
5 > x: number
|
|
|
|
6 > , public
|
|
|
|
7 > y: number
|
|
|
|
1->Emitted(4, 9) Source(13, 9) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
2 >Emitted(4, 18) Source(11, 18) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
3 >Emitted(4, 23) Source(11, 23) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
4 >Emitted(4, 24) Source(13, 28) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
5 >Emitted(4, 25) Source(13, 37) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
6 >Emitted(4, 27) Source(13, 46) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
7 >Emitted(4, 28) Source(13, 55) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
---
|
|
|
|
>>> this.x = x;
|
|
|
|
1 >^^^^^^^^^^^^
|
|
|
|
2 > ^^^^^^
|
|
|
|
3 > ^^^
|
|
|
|
4 > ^
|
|
|
|
5 > ^
|
|
|
|
6 > ^->
|
|
|
|
1 >
|
|
|
|
2 > x
|
|
|
|
3 >
|
|
|
|
4 > x
|
|
|
|
5 > : number
|
|
|
|
1 >Emitted(5, 13) Source(13, 28) + SourceIndex(0) name (Shapes.Point.constructor)
|
|
|
|
2 >Emitted(5, 19) Source(13, 29) + SourceIndex(0) name (Shapes.Point.constructor)
|
|
|
|
3 >Emitted(5, 22) Source(13, 28) + SourceIndex(0) name (Shapes.Point.constructor)
|
|
|
|
4 >Emitted(5, 23) Source(13, 29) + SourceIndex(0) name (Shapes.Point.constructor)
|
|
|
|
5 >Emitted(5, 24) Source(13, 37) + SourceIndex(0) name (Shapes.Point.constructor)
|
|
|
|
---
|
|
|
|
>>> this.y = y;
|
|
|
|
1->^^^^^^^^^^^^
|
|
|
|
2 > ^^^^^^
|
|
|
|
3 > ^^^
|
|
|
|
4 > ^
|
|
|
|
5 > ^
|
|
|
|
1->, public
|
|
|
|
2 > y
|
|
|
|
3 >
|
|
|
|
4 > y
|
|
|
|
5 > : number
|
|
|
|
1->Emitted(6, 13) Source(13, 46) + SourceIndex(0) name (Shapes.Point.constructor)
|
|
|
|
2 >Emitted(6, 19) Source(13, 47) + SourceIndex(0) name (Shapes.Point.constructor)
|
|
|
|
3 >Emitted(6, 22) Source(13, 46) + SourceIndex(0) name (Shapes.Point.constructor)
|
|
|
|
4 >Emitted(6, 23) Source(13, 47) + SourceIndex(0) name (Shapes.Point.constructor)
|
|
|
|
5 >Emitted(6, 24) Source(13, 55) + SourceIndex(0) name (Shapes.Point.constructor)
|
|
|
|
---
|
|
|
|
>>> }
|
|
|
|
1 >^^^^^^^^
|
|
|
|
2 > ^
|
2014-08-14 15:21:30 +02:00
|
|
|
3 > ^^^^^^^^^^^^^^^^^^->
|
2014-07-13 01:04:16 +02:00
|
|
|
1 >) {
|
|
|
|
2 > }
|
|
|
|
1 >Emitted(7, 9) Source(13, 59) + SourceIndex(0) name (Shapes.Point.constructor)
|
|
|
|
2 >Emitted(7, 10) Source(13, 60) + SourceIndex(0) name (Shapes.Point.constructor)
|
|
|
|
---
|
2014-08-14 15:21:30 +02:00
|
|
|
>>> // Instance member
|
|
|
|
1->^^^^^^^^
|
|
|
|
2 > ^^^^^^^^^^^^^^^^^^
|
|
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^->
|
|
|
|
1->
|
|
|
|
>
|
|
|
|
>
|
|
|
|
2 > // Instance member
|
|
|
|
1->Emitted(8, 9) Source(15, 9) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
2 >Emitted(8, 27) Source(15, 27) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
---
|
2014-07-13 01:04:16 +02:00
|
|
|
>>> Point.prototype.getDist = function () {
|
|
|
|
1->^^^^^^^^
|
|
|
|
2 > ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
3 > ^^^
|
|
|
|
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
|
|
1->
|
|
|
|
>
|
|
|
|
2 > getDist
|
|
|
|
3 >
|
2014-08-14 15:21:30 +02:00
|
|
|
1->Emitted(9, 9) Source(16, 9) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
2 >Emitted(9, 32) Source(16, 16) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
3 >Emitted(9, 35) Source(16, 9) + SourceIndex(0) name (Shapes.Point)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
|
|
|
>>> return Math.sqrt(this.x * this.x + this.y * this.y);
|
|
|
|
1->^^^^^^^^^^^^
|
|
|
|
2 > ^^^^^^
|
|
|
|
3 > ^
|
|
|
|
4 > ^^^^
|
|
|
|
5 > ^
|
|
|
|
6 > ^^^^
|
|
|
|
7 > ^
|
|
|
|
8 > ^^^^
|
|
|
|
9 > ^
|
|
|
|
10> ^
|
|
|
|
11> ^^^
|
|
|
|
12> ^^^^
|
|
|
|
13> ^
|
|
|
|
14> ^
|
|
|
|
15> ^^^
|
|
|
|
16> ^^^^
|
|
|
|
17> ^
|
|
|
|
18> ^
|
|
|
|
19> ^^^
|
|
|
|
20> ^^^^
|
|
|
|
21> ^
|
|
|
|
22> ^
|
|
|
|
23> ^
|
|
|
|
24> ^
|
|
|
|
1->getDist() {
|
|
|
|
2 > return
|
|
|
|
3 >
|
|
|
|
4 > Math
|
|
|
|
5 > .
|
|
|
|
6 > sqrt
|
|
|
|
7 > (
|
|
|
|
8 > this
|
|
|
|
9 > .
|
|
|
|
10> x
|
|
|
|
11> *
|
|
|
|
12> this
|
|
|
|
13> .
|
|
|
|
14> x
|
|
|
|
15> +
|
|
|
|
16> this
|
|
|
|
17> .
|
|
|
|
18> y
|
|
|
|
19> *
|
|
|
|
20> this
|
|
|
|
21> .
|
|
|
|
22> y
|
|
|
|
23> )
|
|
|
|
24> ;
|
2014-08-14 15:21:30 +02:00
|
|
|
1->Emitted(10, 13) Source(16, 21) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
2 >Emitted(10, 19) Source(16, 27) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
3 >Emitted(10, 20) Source(16, 28) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
4 >Emitted(10, 24) Source(16, 32) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
5 >Emitted(10, 25) Source(16, 33) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
6 >Emitted(10, 29) Source(16, 37) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
7 >Emitted(10, 30) Source(16, 38) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
8 >Emitted(10, 34) Source(16, 42) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
9 >Emitted(10, 35) Source(16, 43) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
10>Emitted(10, 36) Source(16, 44) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
11>Emitted(10, 39) Source(16, 47) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
12>Emitted(10, 43) Source(16, 51) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
13>Emitted(10, 44) Source(16, 52) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
14>Emitted(10, 45) Source(16, 53) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
15>Emitted(10, 48) Source(16, 56) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
16>Emitted(10, 52) Source(16, 60) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
17>Emitted(10, 53) Source(16, 61) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
18>Emitted(10, 54) Source(16, 62) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
19>Emitted(10, 57) Source(16, 65) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
20>Emitted(10, 61) Source(16, 69) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
21>Emitted(10, 62) Source(16, 70) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
22>Emitted(10, 63) Source(16, 71) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
23>Emitted(10, 64) Source(16, 72) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
24>Emitted(10, 65) Source(16, 73) + SourceIndex(0) name (Shapes.Point.getDist)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
|
|
|
>>> };
|
|
|
|
1 >^^^^^^^^
|
|
|
|
2 > ^
|
|
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
|
|
1 >
|
|
|
|
2 > }
|
2014-08-14 15:21:30 +02:00
|
|
|
1 >Emitted(11, 9) Source(16, 74) + SourceIndex(0) name (Shapes.Point.getDist)
|
|
|
|
2 >Emitted(11, 10) Source(16, 75) + SourceIndex(0) name (Shapes.Point.getDist)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
|
|
|
>>> Point.origin = new Point(0, 0);
|
|
|
|
1->^^^^^^^^
|
|
|
|
2 > ^^^^^^^^^^^^
|
|
|
|
3 > ^^^
|
|
|
|
4 > ^^^^
|
|
|
|
5 > ^^^^^
|
|
|
|
6 > ^
|
|
|
|
7 > ^
|
|
|
|
8 > ^^
|
|
|
|
9 > ^
|
|
|
|
10> ^
|
|
|
|
11> ^
|
|
|
|
1->
|
|
|
|
>
|
|
|
|
> // Static member
|
|
|
|
> static
|
|
|
|
2 > origin
|
|
|
|
3 > =
|
|
|
|
4 > new
|
|
|
|
5 > Point
|
|
|
|
6 > (
|
|
|
|
7 > 0
|
|
|
|
8 > ,
|
|
|
|
9 > 0
|
|
|
|
10> )
|
|
|
|
11> ;
|
2014-08-14 15:21:30 +02:00
|
|
|
1->Emitted(12, 9) Source(19, 16) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
2 >Emitted(12, 21) Source(19, 22) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
3 >Emitted(12, 24) Source(19, 25) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
4 >Emitted(12, 28) Source(19, 29) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
5 >Emitted(12, 33) Source(19, 34) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
6 >Emitted(12, 34) Source(19, 35) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
7 >Emitted(12, 35) Source(19, 36) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
8 >Emitted(12, 37) Source(19, 38) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
9 >Emitted(12, 38) Source(19, 39) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
10>Emitted(12, 39) Source(19, 40) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
11>Emitted(12, 40) Source(19, 41) + SourceIndex(0) name (Shapes.Point)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
|
|
|
>>> return Point;
|
|
|
|
1 >^^^^^^^^
|
|
|
|
2 > ^^^^^^^^^^^^
|
|
|
|
1 >
|
|
|
|
>
|
|
|
|
2 > }
|
2014-08-14 15:21:30 +02:00
|
|
|
1 >Emitted(13, 9) Source(20, 5) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
2 >Emitted(13, 21) Source(20, 6) + SourceIndex(0) name (Shapes.Point)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
|
|
|
>>> })();
|
|
|
|
1 >^^^^
|
|
|
|
2 > ^
|
|
|
|
3 >
|
|
|
|
4 > ^^^^
|
|
|
|
5 > ^^^^^^^^^^^^^^^^^->
|
|
|
|
1 >
|
|
|
|
2 > }
|
|
|
|
3 >
|
|
|
|
4 > export class Point implements IPoint {
|
|
|
|
> // Constructor
|
|
|
|
> constructor(public x: number, public y: number) { }
|
|
|
|
>
|
|
|
|
> // Instance member
|
|
|
|
> getDist() { return Math.sqrt(this.x * this.x + this.y * this.y); }
|
|
|
|
>
|
|
|
|
> // Static member
|
|
|
|
> static origin = new Point(0, 0);
|
|
|
|
> }
|
2014-08-14 15:21:30 +02:00
|
|
|
1 >Emitted(14, 5) Source(20, 5) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
2 >Emitted(14, 6) Source(20, 6) + SourceIndex(0) name (Shapes.Point)
|
|
|
|
3 >Emitted(14, 6) Source(11, 5) + SourceIndex(0) name (Shapes)
|
|
|
|
4 >Emitted(14, 10) Source(20, 6) + SourceIndex(0) name (Shapes)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
|
|
|
>>> Shapes.Point = Point;
|
|
|
|
1->^^^^
|
|
|
|
2 > ^^^^^^^^^^^^
|
|
|
|
3 > ^^^
|
|
|
|
4 > ^^^^^
|
|
|
|
5 > ^
|
2014-08-12 00:54:12 +02:00
|
|
|
6 > ^^^^^^^^^^^->
|
2014-07-13 01:04:16 +02:00
|
|
|
1->
|
|
|
|
2 > Point
|
|
|
|
3 >
|
|
|
|
4 > Point implements IPoint {
|
|
|
|
> // Constructor
|
|
|
|
> constructor(public x: number, public y: number) { }
|
|
|
|
>
|
|
|
|
> // Instance member
|
|
|
|
> getDist() { return Math.sqrt(this.x * this.x + this.y * this.y); }
|
|
|
|
>
|
|
|
|
> // Static member
|
|
|
|
> static origin = new Point(0, 0);
|
|
|
|
> }
|
|
|
|
5 >
|
2014-08-14 15:21:30 +02:00
|
|
|
1->Emitted(15, 5) Source(11, 18) + SourceIndex(0) name (Shapes)
|
|
|
|
2 >Emitted(15, 17) Source(11, 23) + SourceIndex(0) name (Shapes)
|
|
|
|
3 >Emitted(15, 20) Source(11, 18) + SourceIndex(0) name (Shapes)
|
|
|
|
4 >Emitted(15, 25) Source(20, 6) + SourceIndex(0) name (Shapes)
|
|
|
|
5 >Emitted(15, 26) Source(20, 6) + SourceIndex(0) name (Shapes)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
2014-08-12 00:54:12 +02:00
|
|
|
>>> // Variable comment after class
|
|
|
|
1->^^^^
|
|
|
|
2 >
|
|
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
1->
|
2014-07-13 01:04:16 +02:00
|
|
|
>
|
|
|
|
> // Variable comment after class
|
|
|
|
>
|
2014-08-12 00:54:12 +02:00
|
|
|
2 >
|
|
|
|
3 > // Variable comment after class
|
2014-08-14 15:21:30 +02:00
|
|
|
1->Emitted(16, 5) Source(23, 5) + SourceIndex(0) name (Shapes)
|
|
|
|
2 >Emitted(16, 5) Source(22, 5) + SourceIndex(0) name (Shapes)
|
|
|
|
3 >Emitted(16, 36) Source(22, 36) + SourceIndex(0) name (Shapes)
|
2014-08-12 00:54:12 +02:00
|
|
|
---
|
|
|
|
>>> var a = 10;
|
|
|
|
1 >^^^^^^^^
|
|
|
|
2 > ^
|
|
|
|
3 > ^^^
|
|
|
|
4 > ^^
|
|
|
|
5 > ^
|
|
|
|
6 > ^^^^^^->
|
|
|
|
1 >
|
|
|
|
> var
|
|
|
|
2 > a
|
|
|
|
3 > =
|
|
|
|
4 > 10
|
|
|
|
5 > ;
|
2014-08-14 15:21:30 +02:00
|
|
|
1 >Emitted(17, 9) Source(23, 9) + SourceIndex(0) name (Shapes)
|
|
|
|
2 >Emitted(17, 10) Source(23, 10) + SourceIndex(0) name (Shapes)
|
|
|
|
3 >Emitted(17, 13) Source(23, 13) + SourceIndex(0) name (Shapes)
|
|
|
|
4 >Emitted(17, 15) Source(23, 15) + SourceIndex(0) name (Shapes)
|
|
|
|
5 >Emitted(17, 16) Source(23, 16) + SourceIndex(0) name (Shapes)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
|
|
|
>>> function foo() {
|
|
|
|
1->^^^^
|
|
|
|
2 > ^^^^^^^^^
|
|
|
|
3 > ^^^
|
|
|
|
1->
|
|
|
|
>
|
|
|
|
>
|
|
|
|
2 > export function
|
|
|
|
3 > foo
|
2014-08-14 15:21:30 +02:00
|
|
|
1->Emitted(18, 5) Source(25, 5) + SourceIndex(0) name (Shapes)
|
|
|
|
2 >Emitted(18, 14) Source(25, 21) + SourceIndex(0) name (Shapes)
|
|
|
|
3 >Emitted(18, 17) Source(25, 24) + SourceIndex(0) name (Shapes)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
|
|
|
>>> }
|
|
|
|
1 >^^^^
|
|
|
|
2 > ^
|
|
|
|
3 > ^^^^^^^^^^^^^^^^^->
|
|
|
|
1 >() {
|
|
|
|
>
|
|
|
|
2 > }
|
2014-08-14 15:21:30 +02:00
|
|
|
1 >Emitted(19, 5) Source(26, 5) + SourceIndex(0) name (Shapes.foo)
|
|
|
|
2 >Emitted(19, 6) Source(26, 6) + SourceIndex(0) name (Shapes.foo)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
|
|
|
>>> Shapes.foo = foo;
|
|
|
|
1->^^^^
|
|
|
|
2 > ^^^^^^^^^^
|
|
|
|
3 > ^^^
|
|
|
|
4 > ^^^
|
|
|
|
5 > ^
|
2014-08-12 00:54:12 +02:00
|
|
|
6 > ^^^^^^^^^^->
|
2014-07-13 01:04:16 +02:00
|
|
|
1->
|
|
|
|
2 > foo
|
|
|
|
3 >
|
|
|
|
4 > foo() {
|
|
|
|
> }
|
|
|
|
5 >
|
2014-08-14 15:21:30 +02:00
|
|
|
1->Emitted(20, 5) Source(25, 21) + SourceIndex(0) name (Shapes)
|
|
|
|
2 >Emitted(20, 15) Source(25, 24) + SourceIndex(0) name (Shapes)
|
|
|
|
3 >Emitted(20, 18) Source(25, 21) + SourceIndex(0) name (Shapes)
|
|
|
|
4 >Emitted(20, 21) Source(26, 6) + SourceIndex(0) name (Shapes)
|
|
|
|
5 >Emitted(20, 22) Source(26, 6) + SourceIndex(0) name (Shapes)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
2014-08-12 00:54:12 +02:00
|
|
|
>>> /** comment after function
|
|
|
|
1->^^^^
|
|
|
|
2 >
|
|
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
|
|
1->
|
2014-07-13 01:04:16 +02:00
|
|
|
>
|
|
|
|
> /** comment after function
|
|
|
|
> * this is another comment
|
|
|
|
> */
|
|
|
|
>
|
2014-08-12 00:54:12 +02:00
|
|
|
2 >
|
2014-08-14 15:21:30 +02:00
|
|
|
1->Emitted(21, 5) Source(31, 5) + SourceIndex(0) name (Shapes)
|
|
|
|
2 >Emitted(21, 5) Source(28, 5) + SourceIndex(0) name (Shapes)
|
2014-08-12 00:54:12 +02:00
|
|
|
---
|
|
|
|
>>> * this is another comment
|
|
|
|
>>> */
|
|
|
|
1->^^^^^^
|
|
|
|
2 > ^^^^^^^^^^->
|
|
|
|
1->/** comment after function
|
|
|
|
> * this is another comment
|
|
|
|
> */
|
2014-08-14 15:21:30 +02:00
|
|
|
1->Emitted(23, 7) Source(30, 7) + SourceIndex(0) name (Shapes)
|
2014-08-12 00:54:12 +02:00
|
|
|
---
|
|
|
|
>>> var b = 10;
|
|
|
|
1->^^^^^^^^
|
|
|
|
2 > ^
|
|
|
|
3 > ^^^
|
|
|
|
4 > ^^
|
|
|
|
5 > ^
|
|
|
|
6 > ^^^^^^^^^^^^^^->
|
|
|
|
1->
|
|
|
|
> var
|
|
|
|
2 > b
|
|
|
|
3 > =
|
|
|
|
4 > 10
|
|
|
|
5 > ;
|
2014-08-14 15:21:30 +02:00
|
|
|
1->Emitted(24, 9) Source(31, 9) + SourceIndex(0) name (Shapes)
|
|
|
|
2 >Emitted(24, 10) Source(31, 10) + SourceIndex(0) name (Shapes)
|
|
|
|
3 >Emitted(24, 13) Source(31, 13) + SourceIndex(0) name (Shapes)
|
|
|
|
4 >Emitted(24, 15) Source(31, 15) + SourceIndex(0) name (Shapes)
|
|
|
|
5 >Emitted(24, 16) Source(31, 16) + SourceIndex(0) name (Shapes)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
|
|
|
>>>})(Shapes || (Shapes = {}));
|
|
|
|
1->
|
|
|
|
2 >^
|
|
|
|
3 > ^^
|
|
|
|
4 > ^^^^^^
|
|
|
|
5 > ^^^^^
|
|
|
|
6 > ^^^^^^
|
|
|
|
7 > ^^^^^^^^
|
|
|
|
1->
|
|
|
|
>
|
|
|
|
2 >}
|
|
|
|
3 >
|
|
|
|
4 > Shapes
|
|
|
|
5 >
|
|
|
|
6 > Shapes
|
|
|
|
7 > {
|
|
|
|
>
|
|
|
|
> // Class
|
|
|
|
> export class Point implements IPoint {
|
|
|
|
> // Constructor
|
|
|
|
> constructor(public x: number, public y: number) { }
|
|
|
|
>
|
|
|
|
> // Instance member
|
|
|
|
> getDist() { return Math.sqrt(this.x * this.x + this.y * this.y); }
|
|
|
|
>
|
|
|
|
> // Static member
|
|
|
|
> static origin = new Point(0, 0);
|
|
|
|
> }
|
|
|
|
>
|
|
|
|
> // Variable comment after class
|
|
|
|
> var a = 10;
|
|
|
|
>
|
|
|
|
> export function foo() {
|
|
|
|
> }
|
|
|
|
>
|
|
|
|
> /** comment after function
|
|
|
|
> * this is another comment
|
|
|
|
> */
|
|
|
|
> var b = 10;
|
|
|
|
> }
|
2014-08-14 15:21:30 +02:00
|
|
|
1->Emitted(25, 1) Source(32, 1) + SourceIndex(0) name (Shapes)
|
|
|
|
2 >Emitted(25, 2) Source(32, 2) + SourceIndex(0) name (Shapes)
|
|
|
|
3 >Emitted(25, 4) Source(8, 8) + SourceIndex(0)
|
|
|
|
4 >Emitted(25, 10) Source(8, 14) + SourceIndex(0)
|
|
|
|
5 >Emitted(25, 15) Source(8, 8) + SourceIndex(0)
|
|
|
|
6 >Emitted(25, 21) Source(8, 14) + SourceIndex(0)
|
|
|
|
7 >Emitted(25, 29) Source(32, 2) + SourceIndex(0)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
2014-08-12 00:54:12 +02:00
|
|
|
>>>/** Local Variable */
|
|
|
|
1 >
|
|
|
|
2 >
|
|
|
|
3 >^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
4 > ^^^^^^^^^^^->
|
|
|
|
1 >
|
2014-07-13 01:04:16 +02:00
|
|
|
>
|
|
|
|
>/** Local Variable */
|
|
|
|
>
|
2014-08-12 00:54:12 +02:00
|
|
|
2 >
|
|
|
|
3 >/** Local Variable */
|
2014-08-14 15:21:30 +02:00
|
|
|
1 >Emitted(26, 1) Source(35, 1) + SourceIndex(0)
|
|
|
|
2 >Emitted(26, 1) Source(34, 1) + SourceIndex(0)
|
|
|
|
3 >Emitted(26, 22) Source(34, 22) + SourceIndex(0)
|
2014-08-12 00:54:12 +02:00
|
|
|
---
|
|
|
|
>>>var p = new Shapes.Point(3, 4);
|
|
|
|
1->^^^^
|
|
|
|
2 > ^
|
|
|
|
3 > ^^^
|
|
|
|
4 > ^^^^
|
|
|
|
5 > ^^^^^^
|
|
|
|
6 > ^
|
|
|
|
7 > ^^^^^
|
|
|
|
8 > ^
|
|
|
|
9 > ^
|
|
|
|
10> ^^
|
|
|
|
11> ^
|
|
|
|
12> ^
|
|
|
|
13> ^
|
|
|
|
1->
|
|
|
|
>var
|
|
|
|
2 > p
|
|
|
|
3 > : IPoint =
|
|
|
|
4 > new
|
|
|
|
5 > Shapes
|
|
|
|
6 > .
|
|
|
|
7 > Point
|
|
|
|
8 > (
|
|
|
|
9 > 3
|
|
|
|
10> ,
|
|
|
|
11> 4
|
|
|
|
12> )
|
|
|
|
13> ;
|
2014-08-14 15:21:30 +02:00
|
|
|
1->Emitted(27, 5) Source(35, 5) + SourceIndex(0)
|
|
|
|
2 >Emitted(27, 6) Source(35, 6) + SourceIndex(0)
|
|
|
|
3 >Emitted(27, 9) Source(35, 17) + SourceIndex(0)
|
|
|
|
4 >Emitted(27, 13) Source(35, 21) + SourceIndex(0)
|
|
|
|
5 >Emitted(27, 19) Source(35, 27) + SourceIndex(0)
|
|
|
|
6 >Emitted(27, 20) Source(35, 28) + SourceIndex(0)
|
|
|
|
7 >Emitted(27, 25) Source(35, 33) + SourceIndex(0)
|
|
|
|
8 >Emitted(27, 26) Source(35, 34) + SourceIndex(0)
|
|
|
|
9 >Emitted(27, 27) Source(35, 35) + SourceIndex(0)
|
|
|
|
10>Emitted(27, 29) Source(35, 37) + SourceIndex(0)
|
|
|
|
11>Emitted(27, 30) Source(35, 38) + SourceIndex(0)
|
|
|
|
12>Emitted(27, 31) Source(35, 39) + SourceIndex(0)
|
|
|
|
13>Emitted(27, 32) Source(35, 40) + SourceIndex(0)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
|
|
|
>>>var dist = p.getDist();
|
|
|
|
1 >
|
|
|
|
2 >^^^^
|
|
|
|
3 > ^^^^
|
|
|
|
4 > ^^^
|
|
|
|
5 > ^
|
|
|
|
6 > ^
|
|
|
|
7 > ^^^^^^^
|
|
|
|
8 > ^^
|
|
|
|
9 > ^
|
|
|
|
10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
|
|
1 >
|
|
|
|
>
|
|
|
|
2 >var
|
|
|
|
3 > dist
|
|
|
|
4 > =
|
|
|
|
5 > p
|
|
|
|
6 > .
|
|
|
|
7 > getDist
|
|
|
|
8 > ()
|
|
|
|
9 > ;
|
2014-08-14 15:21:30 +02:00
|
|
|
1 >Emitted(28, 1) Source(36, 1) + SourceIndex(0)
|
|
|
|
2 >Emitted(28, 5) Source(36, 5) + SourceIndex(0)
|
|
|
|
3 >Emitted(28, 9) Source(36, 9) + SourceIndex(0)
|
|
|
|
4 >Emitted(28, 12) Source(36, 12) + SourceIndex(0)
|
|
|
|
5 >Emitted(28, 13) Source(36, 13) + SourceIndex(0)
|
|
|
|
6 >Emitted(28, 14) Source(36, 14) + SourceIndex(0)
|
|
|
|
7 >Emitted(28, 21) Source(36, 21) + SourceIndex(0)
|
|
|
|
8 >Emitted(28, 23) Source(36, 23) + SourceIndex(0)
|
|
|
|
9 >Emitted(28, 24) Source(36, 24) + SourceIndex(0)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
|
|
|
>>>//# sourceMappingURL=sourceMap-FileWithComments.js.map
|