File: moduleAugmentationsImports1.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (100 lines) | stat: -rw-r--r-- 3,079 bytes parent folder | download | duplicates (5)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
=== tests/cases/compiler/a.ts ===
export class A {}
>A : Symbol(A, Decl(a.ts, 0, 0), Decl(d.ts, 9, 22), Decl(d.ts, 15, 22))

=== tests/cases/compiler/b.ts ===
export class B {x: number;}
>B : Symbol(B, Decl(b.ts, 0, 0))
>x : Symbol(B.x, Decl(b.ts, 0, 16))

=== tests/cases/compiler/c.d.ts ===
declare module "C" {
>"C" : Symbol("C", Decl(c.d.ts, 0, 0))

    class Cls {y: string; }
>Cls : Symbol(Cls, Decl(c.d.ts, 0, 20))
>y : Symbol(Cls.y, Decl(c.d.ts, 1, 15))
}

=== tests/cases/compiler/d.ts ===
/// <reference path="c.d.ts"/>

import {A} from "./a";
>A : Symbol(A, Decl(d.ts, 2, 8))

import {B} from "./b";
>B : Symbol(B, Decl(d.ts, 3, 8))

import {Cls} from "C";
>Cls : Symbol(Cls, Decl(d.ts, 4, 8))

A.prototype.getB = function () { return undefined; }
>A.prototype.getB : Symbol(A.getB, Decl(d.ts, 10, 17))
>A.prototype : Symbol(A.prototype)
>A : Symbol(A, Decl(d.ts, 2, 8))
>prototype : Symbol(A.prototype)
>getB : Symbol(A.getB, Decl(d.ts, 10, 17))
>undefined : Symbol(undefined)

A.prototype.getCls = function () { return undefined; }
>A.prototype.getCls : Symbol(A.getCls, Decl(d.ts, 16, 17))
>A.prototype : Symbol(A.prototype)
>A : Symbol(A, Decl(d.ts, 2, 8))
>prototype : Symbol(A.prototype)
>getCls : Symbol(A.getCls, Decl(d.ts, 16, 17))
>undefined : Symbol(undefined)

declare module "./a" {
>"./a" : Symbol("tests/cases/compiler/a", Decl(a.ts, 0, 0), Decl(d.ts, 7, 54), Decl(d.ts, 13, 1))

    interface A {
>A : Symbol(A, Decl(a.ts, 0, 0), Decl(d.ts, 9, 22), Decl(d.ts, 15, 22))

        getB(): B;
>getB : Symbol(A.getB, Decl(d.ts, 10, 17))
>B : Symbol(B, Decl(d.ts, 3, 8))
    }
}

declare module "./a" {
>"./a" : Symbol("tests/cases/compiler/a", Decl(a.ts, 0, 0), Decl(d.ts, 7, 54), Decl(d.ts, 13, 1))

    interface A {
>A : Symbol(A, Decl(a.ts, 0, 0), Decl(d.ts, 9, 22), Decl(d.ts, 15, 22))

        getCls(): Cls;
>getCls : Symbol(A.getCls, Decl(d.ts, 16, 17))
>Cls : Symbol(Cls, Decl(d.ts, 4, 8))
    }
}

=== tests/cases/compiler/main.ts ===
import {A} from "./a";
>A : Symbol(A, Decl(main.ts, 0, 8))

import "d";

let a: A;
>a : Symbol(a, Decl(main.ts, 3, 3))
>A : Symbol(A, Decl(main.ts, 0, 8))

let b = a.getB().x.toFixed();
>b : Symbol(b, Decl(main.ts, 4, 3))
>a.getB().x.toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --))
>a.getB().x : Symbol(B.x, Decl(b.ts, 0, 16))
>a.getB : Symbol(A.getB, Decl(d.ts, 10, 17))
>a : Symbol(a, Decl(main.ts, 3, 3))
>getB : Symbol(A.getB, Decl(d.ts, 10, 17))
>x : Symbol(B.x, Decl(b.ts, 0, 16))
>toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --))

let c = a.getCls().y.toLowerCase();
>c : Symbol(c, Decl(main.ts, 5, 3))
>a.getCls().y.toLowerCase : Symbol(String.toLowerCase, Decl(lib.es5.d.ts, --, --))
>a.getCls().y : Symbol(Cls.y, Decl(c.d.ts, 1, 15))
>a.getCls : Symbol(A.getCls, Decl(d.ts, 16, 17))
>a : Symbol(a, Decl(main.ts, 3, 3))
>getCls : Symbol(A.getCls, Decl(d.ts, 16, 17))
>y : Symbol(Cls.y, Decl(c.d.ts, 1, 15))
>toLowerCase : Symbol(String.toLowerCase, Decl(lib.es5.d.ts, --, --))