File: exportAssignClassAndModule.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 (38 lines) | stat: -rw-r--r-- 1,618 bytes parent folder | download | duplicates (7)
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
=== tests/cases/compiler/exportAssignClassAndModule_1.ts ===
///<reference path='exportAssignClassAndModule_0.ts'/>
import Foo = require('./exportAssignClassAndModule_0');
>Foo : Symbol(Foo, Decl(exportAssignClassAndModule_1.ts, 0, 0))

var z: Foo.Bar;
>z : Symbol(z, Decl(exportAssignClassAndModule_1.ts, 3, 3))
>Foo : Symbol(Foo, Decl(exportAssignClassAndModule_1.ts, 0, 0))
>Bar : Symbol(Foo.Bar, Decl(exportAssignClassAndModule_0.ts, 3, 12))

var zz: Foo;
>zz : Symbol(zz, Decl(exportAssignClassAndModule_1.ts, 4, 3))
>Foo : Symbol(Foo, Decl(exportAssignClassAndModule_1.ts, 0, 0))

zz.x;
>zz.x : Symbol(Foo.x, Decl(exportAssignClassAndModule_0.ts, 0, 11))
>zz : Symbol(zz, Decl(exportAssignClassAndModule_1.ts, 4, 3))
>x : Symbol(Foo.x, Decl(exportAssignClassAndModule_0.ts, 0, 11))

=== tests/cases/compiler/exportAssignClassAndModule_0.ts ===
class Foo {
>Foo : Symbol(Foo, Decl(exportAssignClassAndModule_0.ts, 0, 0), Decl(exportAssignClassAndModule_0.ts, 2, 1))

    x: Foo.Bar;
>x : Symbol(Foo.x, Decl(exportAssignClassAndModule_0.ts, 0, 11))
>Foo : Symbol(Foo, Decl(exportAssignClassAndModule_0.ts, 0, 0), Decl(exportAssignClassAndModule_0.ts, 2, 1))
>Bar : Symbol(Foo.Bar, Decl(exportAssignClassAndModule_0.ts, 3, 12))
}
module Foo {
>Foo : Symbol(Foo, Decl(exportAssignClassAndModule_0.ts, 0, 0), Decl(exportAssignClassAndModule_0.ts, 2, 1))

    export interface Bar {
>Bar : Symbol(Bar, Decl(exportAssignClassAndModule_0.ts, 3, 12))
    }
}
export = Foo;
>Foo : Symbol(Foo, Decl(exportAssignClassAndModule_0.ts, 0, 0), Decl(exportAssignClassAndModule_0.ts, 2, 1))