File: augmentedTypesClass3.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 (31 lines) | stat: -rw-r--r-- 1,378 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
=== tests/cases/compiler/augmentedTypesClass3.ts ===
// class then module
class c5 { public foo() { } }
>c5 : Symbol(c5, Decl(augmentedTypesClass3.ts, 0, 0), Decl(augmentedTypesClass3.ts, 1, 29))
>foo : Symbol(c5.foo, Decl(augmentedTypesClass3.ts, 1, 10))

module c5 { } // should be ok
>c5 : Symbol(c5, Decl(augmentedTypesClass3.ts, 0, 0), Decl(augmentedTypesClass3.ts, 1, 29))

class c5a { public foo() { } }
>c5a : Symbol(c5a, Decl(augmentedTypesClass3.ts, 2, 13), Decl(augmentedTypesClass3.ts, 4, 30))
>foo : Symbol(c5a.foo, Decl(augmentedTypesClass3.ts, 4, 11))

module c5a { var y = 2; } // should be ok
>c5a : Symbol(c5a, Decl(augmentedTypesClass3.ts, 2, 13), Decl(augmentedTypesClass3.ts, 4, 30))
>y : Symbol(y, Decl(augmentedTypesClass3.ts, 5, 16))

class c5b { public foo() { } }
>c5b : Symbol(c5b, Decl(augmentedTypesClass3.ts, 5, 25), Decl(augmentedTypesClass3.ts, 7, 30))
>foo : Symbol(c5b.foo, Decl(augmentedTypesClass3.ts, 7, 11))

module c5b { export var y = 2; } // should be ok
>c5b : Symbol(c5b, Decl(augmentedTypesClass3.ts, 5, 25), Decl(augmentedTypesClass3.ts, 7, 30))
>y : Symbol(y, Decl(augmentedTypesClass3.ts, 8, 23))

//// class then import
class c5c { public foo() { } }
>c5c : Symbol(c5c, Decl(augmentedTypesClass3.ts, 8, 32))
>foo : Symbol(c5c.foo, Decl(augmentedTypesClass3.ts, 11, 11))

//import c5c = require('');