File: moduleAugmentationInAmbientModule5.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 (41 lines) | stat: -rw-r--r-- 1,113 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
=== tests/cases/compiler/f.ts ===
/// <reference path="array.d.ts"/>
import "array";

let x = [1];
>x : Symbol(x, Decl(f.ts, 3, 3))

let y = x.getA().x;
>y : Symbol(y, Decl(f.ts, 4, 3))
>x.getA().x : Symbol(A.x, Decl(array.d.ts, 2, 13))
>x.getA : Symbol(Array.getA, Decl(array.d.ts, 8, 28))
>x : Symbol(x, Decl(f.ts, 3, 3))
>getA : Symbol(Array.getA, Decl(array.d.ts, 8, 28))
>x : Symbol(A.x, Decl(array.d.ts, 2, 13))

=== tests/cases/compiler/array.d.ts ===

declare module "A" {
    class A { x: number; }
>A : Symbol(A, Decl(array.d.ts, 1, 20))
>x : Symbol(A.x, Decl(array.d.ts, 2, 13))
}

declare module "array" {
    import {A} from "A";
>A : Symbol(A, Decl(array.d.ts, 6, 12))

    global {
>global : Symbol(global, Decl(array.d.ts, 6, 24))

        interface Array<T> {
>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(array.d.ts, 7, 12))
>T : Symbol(T, Decl(lib.d.ts, --, --), Decl(array.d.ts, 8, 24))

            getA(): A;
>getA : Symbol(Array.getA, Decl(array.d.ts, 8, 28))
>A : Symbol(A, Decl(array.d.ts, 6, 12))
        }
    }
}