File: exportDefaultStripsFreshness.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-- 897 bytes parent folder | download | duplicates (5)
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/items.ts ===
export default {
    foob: "a"
>foob : Symbol(foob, Decl(items.ts, 0, 16))
}

export const q = {
>q : Symbol(q, Decl(items.ts, 4, 12))

    foob: "b"
>foob : Symbol(foob, Decl(items.ts, 4, 18))
}
=== tests/cases/compiler/index.ts ===
import B, {q} from "./items";
>B : Symbol(B, Decl(index.ts, 0, 6))
>q : Symbol(q, Decl(index.ts, 0, 11))

interface IFoo {
>IFoo : Symbol(IFoo, Decl(index.ts, 0, 29))

    foo: string;
>foo : Symbol(IFoo.foo, Decl(index.ts, 2, 16))
}

function nFoo(x: IFoo) {}
>nFoo : Symbol(nFoo, Decl(index.ts, 4, 1))
>x : Symbol(x, Decl(index.ts, 6, 14))
>IFoo : Symbol(IFoo, Decl(index.ts, 0, 29))


nFoo(q); // for comparison
>nFoo : Symbol(nFoo, Decl(index.ts, 4, 1))
>q : Symbol(q, Decl(index.ts, 0, 11))

nFoo(B);
>nFoo : Symbol(nFoo, Decl(index.ts, 4, 1))
>B : Symbol(B, Decl(index.ts, 0, 6))