File: umd3.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 (36 lines) | stat: -rw-r--r-- 1,046 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
=== tests/cases/conformance/externalModules/a.ts ===
import * as Foo from './foo';
>Foo : Symbol(Foo, Decl(a.ts, 0, 6))

Foo.fn();
>Foo.fn : Symbol(Foo.fn, Decl(foo.d.ts, 1, 21))
>Foo : Symbol(Foo, Decl(a.ts, 0, 6))
>fn : Symbol(Foo.fn, Decl(foo.d.ts, 1, 21))

let x: Foo.Thing;
>x : Symbol(x, Decl(a.ts, 2, 3))
>Foo : Symbol(Foo, Decl(a.ts, 0, 6))
>Thing : Symbol(Foo.Thing, Decl(foo.d.ts, 2, 27))

let y: number = x.n;
>y : Symbol(y, Decl(a.ts, 3, 3))
>x.n : Symbol(Foo.Thing.n, Decl(foo.d.ts, 3, 24))
>x : Symbol(x, Decl(a.ts, 2, 3))
>n : Symbol(Foo.Thing.n, Decl(foo.d.ts, 3, 24))

=== tests/cases/conformance/externalModules/foo.d.ts ===

export var x: number;
>x : Symbol(x, Decl(foo.d.ts, 1, 10))

export function fn(): void;
>fn : Symbol(fn, Decl(foo.d.ts, 1, 21))

export interface Thing { n: typeof x }
>Thing : Symbol(Thing, Decl(foo.d.ts, 2, 27))
>n : Symbol(Thing.n, Decl(foo.d.ts, 3, 24))
>x : Symbol(x, Decl(foo.d.ts, 1, 10))

export as namespace Foo;
>Foo : Symbol(Foo, Decl(foo.d.ts, 3, 38))