File: unusedImportDeclaration.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 (32 lines) | stat: -rw-r--r-- 1,281 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
=== tests/cases/compiler/unusedImportDeclaration_testerA.ts ===
import B = require("./unusedImportDeclaration_testerB");
>B : Symbol(B, Decl(unusedImportDeclaration_testerA.ts, 0, 0))

var thingy: B = {
>thingy : Symbol(thingy, Decl(unusedImportDeclaration_testerA.ts, 1, 3))
>B : Symbol(B, Decl(unusedImportDeclaration_testerA.ts, 0, 0))

    me: "A"
>me : Symbol(me, Decl(unusedImportDeclaration_testerA.ts, 1, 17))

};
declare function foo(a: string): void;
>foo : Symbol(foo, Decl(unusedImportDeclaration_testerA.ts, 3, 2))
>a : Symbol(a, Decl(unusedImportDeclaration_testerA.ts, 4, 21))

foo("IN " + thingy.me + "!");
>foo : Symbol(foo, Decl(unusedImportDeclaration_testerA.ts, 3, 2))
>thingy.me : Symbol(B.me, Decl(unusedImportDeclaration_testerB.ts, 0, 15))
>thingy : Symbol(thingy, Decl(unusedImportDeclaration_testerA.ts, 1, 3))
>me : Symbol(B.me, Decl(unusedImportDeclaration_testerB.ts, 0, 15))

=== tests/cases/compiler/unusedImportDeclaration_testerB.ts ===
class TesterB {
>TesterB : Symbol(TesterB, Decl(unusedImportDeclaration_testerB.ts, 0, 0))

    me: string;
>me : Symbol(TesterB.me, Decl(unusedImportDeclaration_testerB.ts, 0, 15))
}
export = TesterB;
>TesterB : Symbol(TesterB, Decl(unusedImportDeclaration_testerB.ts, 0, 0))