File: moduleAugmentationInAmbientModule3.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 (80 lines) | stat: -rw-r--r-- 2,486 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
=== tests/cases/compiler/main.ts ===
/// <reference path="O.d.ts" />

import {Observable} from "Observable";
>Observable : Symbol(Observable, Decl(main.ts, 2, 8))

import "Map";
let x: Observable;
>x : Symbol(x, Decl(main.ts, 4, 3))
>Observable : Symbol(Observable, Decl(main.ts, 2, 8))

x.foo().x;
>x.foo().x : Symbol(Cls.x, Decl(O.d.ts, 5, 15))
>x.foo : Symbol(Observable.foo, Decl(O.d.ts, 11, 30))
>x : Symbol(x, Decl(main.ts, 4, 3))
>foo : Symbol(Observable.foo, Decl(O.d.ts, 11, 30))
>x : Symbol(Cls.x, Decl(O.d.ts, 5, 15))

x.foo2().x2;
>x.foo2().x2 : Symbol(Cls2.x2, Decl(O.d.ts, 18, 16))
>x.foo2 : Symbol(Observable.foo2, Decl(O.d.ts, 20, 30))
>x : Symbol(x, Decl(main.ts, 4, 3))
>foo2 : Symbol(Observable.foo2, Decl(O.d.ts, 20, 30))
>x2 : Symbol(Cls2.x2, Decl(O.d.ts, 18, 16))

=== tests/cases/compiler/O.d.ts ===
declare module "Observable" {
>"Observable" : Symbol("Observable", Decl(O.d.ts, 0, 0), Decl(O.d.ts, 9, 28), Decl(O.d.ts, 18, 29))

    class Observable {}
>Observable : Symbol(Observable, Decl(O.d.ts, 0, 29), Decl(O.d.ts, 10, 25), Decl(O.d.ts, 19, 25))
}

declare module "M" {
>"M" : Symbol("M", Decl(O.d.ts, 2, 1))

    class Cls { x: number }
>Cls : Symbol(Cls, Decl(O.d.ts, 4, 20))
>x : Symbol(Cls.x, Decl(O.d.ts, 5, 15))
}

declare module "Map" {
>"Map" : Symbol("Map", Decl(O.d.ts, 6, 1), Decl(O.d.ts, 15, 1))

    import { Cls } from "M";
>Cls : Symbol(Cls, Decl(O.d.ts, 9, 12))

    module "Observable" {
>"Observable" : Symbol("Observable", Decl(O.d.ts, 0, 0), Decl(O.d.ts, 9, 28), Decl(O.d.ts, 18, 29))

        interface Observable {
>Observable : Symbol(Observable, Decl(O.d.ts, 0, 29), Decl(O.d.ts, 10, 25), Decl(O.d.ts, 19, 25))

            foo(): Cls;
>foo : Symbol(Observable.foo, Decl(O.d.ts, 11, 30))
>Cls : Symbol(Cls, Decl(O.d.ts, 9, 12))
        }
    }
}

declare module "Map" {
>"Map" : Symbol("Map", Decl(O.d.ts, 6, 1), Decl(O.d.ts, 15, 1))

    class Cls2 { x2: number }
>Cls2 : Symbol(Cls2, Decl(O.d.ts, 17, 22))
>x2 : Symbol(Cls2.x2, Decl(O.d.ts, 18, 16))

    module "Observable" {
>"Observable" : Symbol("Observable", Decl(O.d.ts, 0, 0), Decl(O.d.ts, 9, 28), Decl(O.d.ts, 18, 29))

        interface Observable {
>Observable : Symbol(Observable, Decl(O.d.ts, 0, 29), Decl(O.d.ts, 10, 25), Decl(O.d.ts, 19, 25))

            foo2(): Cls2;
>foo2 : Symbol(Observable.foo2, Decl(O.d.ts, 20, 30))
>Cls2 : Symbol(Cls2, Decl(O.d.ts, 17, 22))
        }
    }
}