File: sourceMap-FileWithComments.symbols

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (78 lines) | stat: -rw-r--r-- 3,308 bytes parent folder | download | duplicates (2)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
=== tests/cases/compiler/sourceMap-FileWithComments.ts ===

// Interface
interface IPoint {
>IPoint : Symbol(IPoint, Decl(sourceMap-FileWithComments.ts, 0, 0))

    getDist(): number;
>getDist : Symbol(IPoint.getDist, Decl(sourceMap-FileWithComments.ts, 2, 18))
}

// Module
module Shapes {
>Shapes : Symbol(Shapes, Decl(sourceMap-FileWithComments.ts, 4, 1))

    // Class
    export class Point implements IPoint {
>Point : Symbol(Point, Decl(sourceMap-FileWithComments.ts, 7, 15))
>IPoint : Symbol(IPoint, Decl(sourceMap-FileWithComments.ts, 0, 0))

        // Constructor
        constructor(public x: number, public y: number) { }
>x : Symbol(Point.x, Decl(sourceMap-FileWithComments.ts, 12, 20))
>y : Symbol(Point.y, Decl(sourceMap-FileWithComments.ts, 12, 37))

        // Instance member
        getDist() { return Math.sqrt(this.x * this.x + this.y * this.y); }
>getDist : Symbol(Point.getDist, Decl(sourceMap-FileWithComments.ts, 12, 59))
>Math.sqrt : Symbol(Math.sqrt, Decl(lib.d.ts, --, --))
>Math : Symbol(Math, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
>sqrt : Symbol(Math.sqrt, Decl(lib.d.ts, --, --))
>this.x : Symbol(Point.x, Decl(sourceMap-FileWithComments.ts, 12, 20))
>this : Symbol(Point, Decl(sourceMap-FileWithComments.ts, 7, 15))
>x : Symbol(Point.x, Decl(sourceMap-FileWithComments.ts, 12, 20))
>this.x : Symbol(Point.x, Decl(sourceMap-FileWithComments.ts, 12, 20))
>this : Symbol(Point, Decl(sourceMap-FileWithComments.ts, 7, 15))
>x : Symbol(Point.x, Decl(sourceMap-FileWithComments.ts, 12, 20))
>this.y : Symbol(Point.y, Decl(sourceMap-FileWithComments.ts, 12, 37))
>this : Symbol(Point, Decl(sourceMap-FileWithComments.ts, 7, 15))
>y : Symbol(Point.y, Decl(sourceMap-FileWithComments.ts, 12, 37))
>this.y : Symbol(Point.y, Decl(sourceMap-FileWithComments.ts, 12, 37))
>this : Symbol(Point, Decl(sourceMap-FileWithComments.ts, 7, 15))
>y : Symbol(Point.y, Decl(sourceMap-FileWithComments.ts, 12, 37))

        // Static member
        static origin = new Point(0, 0);
>origin : Symbol(Point.origin, Decl(sourceMap-FileWithComments.ts, 15, 74))
>Point : Symbol(Point, Decl(sourceMap-FileWithComments.ts, 7, 15))
    }

    // Variable comment after class
    var a = 10;
>a : Symbol(a, Decl(sourceMap-FileWithComments.ts, 22, 7))

    export function foo() {
>foo : Symbol(foo, Decl(sourceMap-FileWithComments.ts, 22, 15))
    }

    /**  comment after function
    * this is another comment 
    */
    var b = 10;
>b : Symbol(b, Decl(sourceMap-FileWithComments.ts, 30, 7))
}

/** Local Variable */
var p: IPoint = new Shapes.Point(3, 4);
>p : Symbol(p, Decl(sourceMap-FileWithComments.ts, 34, 3))
>IPoint : Symbol(IPoint, Decl(sourceMap-FileWithComments.ts, 0, 0))
>Shapes.Point : Symbol(Shapes.Point, Decl(sourceMap-FileWithComments.ts, 7, 15))
>Shapes : Symbol(Shapes, Decl(sourceMap-FileWithComments.ts, 4, 1))
>Point : Symbol(Shapes.Point, Decl(sourceMap-FileWithComments.ts, 7, 15))

var dist = p.getDist();
>dist : Symbol(dist, Decl(sourceMap-FileWithComments.ts, 35, 3))
>p.getDist : Symbol(IPoint.getDist, Decl(sourceMap-FileWithComments.ts, 2, 18))
>p : Symbol(p, Decl(sourceMap-FileWithComments.ts, 34, 3))
>getDist : Symbol(IPoint.getDist, Decl(sourceMap-FileWithComments.ts, 2, 18))