File: relativePathToDeclarationFile.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 (55 lines) | stat: -rw-r--r-- 1,790 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
=== tests/cases/conformance/externalModules/test/file1.ts ===
import foo = require('foo');
>foo : Symbol(foo, Decl(file1.ts, 0, 0))

import other = require('./other');
>other : Symbol(other, Decl(file1.ts, 0, 28))

import relMod = require('./sub/relMod');
>relMod : Symbol(relMod, Decl(file1.ts, 1, 34))

if(foo.M2.x){
>foo.M2.x : Symbol(foo.M2.x, Decl(foo.d.ts, 1, 11))
>foo.M2 : Symbol(foo.M2, Decl(foo.d.ts, 0, 0))
>foo : Symbol(foo, Decl(file1.ts, 0, 0))
>M2 : Symbol(foo.M2, Decl(foo.d.ts, 0, 0))
>x : Symbol(foo.M2.x, Decl(foo.d.ts, 1, 11))

	var x = new relMod(other.M2.x.charCodeAt(0));
>x : Symbol(x, Decl(file1.ts, 5, 4))
>relMod : Symbol(relMod, Decl(file1.ts, 1, 34))
>other.M2.x.charCodeAt : Symbol(String.charCodeAt, Decl(lib.d.ts, --, --))
>other.M2.x : Symbol(other.M2.x, Decl(other.d.ts, 1, 11))
>other.M2 : Symbol(other.M2, Decl(other.d.ts, 0, 0))
>other : Symbol(other, Decl(file1.ts, 0, 28))
>M2 : Symbol(other.M2, Decl(other.d.ts, 0, 0))
>x : Symbol(other.M2.x, Decl(other.d.ts, 1, 11))
>charCodeAt : Symbol(String.charCodeAt, Decl(lib.d.ts, --, --))
}

=== tests/cases/conformance/externalModules/test/foo.d.ts ===
export declare module M2 {
>M2 : Symbol(M2, Decl(foo.d.ts, 0, 0))

	export var x: boolean;
>x : Symbol(x, Decl(foo.d.ts, 1, 11))
}

=== tests/cases/conformance/externalModules/test/other.d.ts ===
export declare module M2 {
>M2 : Symbol(M2, Decl(other.d.ts, 0, 0))

	export var x: string;
>x : Symbol(x, Decl(other.d.ts, 1, 11))
}

=== tests/cases/conformance/externalModules/test/sub/relMod.d.ts ===
declare class Test {
>Test : Symbol(Test, Decl(relMod.d.ts, 0, 0))

	constructor(x: number);
>x : Symbol(x, Decl(relMod.d.ts, 1, 13))
}
export = Test;
>Test : Symbol(Test, Decl(relMod.d.ts, 0, 0))