/
elidedJSImport2.symbols
50 lines (36 loc) · 1.16 KB
/
elidedJSImport2.symbols
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
=== tests/cases/compiler/index.js ===
import { Foo } from "./other.js";
>Foo : Symbol(Foo, Decl(index.js, 0, 8))
import * as other from "./other.js";
>other : Symbol(other, Decl(index.js, 1, 6))
import defaultFoo from "./other.js";
>defaultFoo : Symbol(defaultFoo, Decl(index.js, 2, 6))
const x = new Foo();
>x : Symbol(x, Decl(index.js, 4, 5))
const y = other.Foo();
>y : Symbol(y, Decl(index.js, 5, 5))
>other : Symbol(other, Decl(index.js, 1, 6))
const z = new defaultFoo();
>z : Symbol(z, Decl(index.js, 6, 5))
=== tests/cases/compiler/other.d.ts ===
export interface Foo {
>Foo : Symbol(Foo, Decl(other.d.ts, 0, 0))
bar: number;
>bar : Symbol(Foo.bar, Decl(other.d.ts, 0, 22))
}
export default interface Bar {
>Bar : Symbol(Bar, Decl(other.d.ts, 2, 1))
foo: number;
>foo : Symbol(Bar.foo, Decl(other.d.ts, 4, 30))
}
=== tests/cases/compiler/other.js ===
export class Foo {
>Foo : Symbol(Foo, Decl(other.js, 0, 0))
bar = 2.4;
>bar : Symbol(Foo.bar, Decl(other.js, 0, 18))
}
export default class Bar {
>Bar : Symbol(Bar, Decl(other.js, 2, 1))
foo = 1.2;
>foo : Symbol(Bar.foo, Decl(other.js, 4, 26))
}