File: importCallExpression5ESNext.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 (39 lines) | stat: -rw-r--r-- 1,170 bytes parent folder | download | duplicates (10)
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
=== tests/cases/conformance/dynamicImport/0.ts ===
export class B {
>B : Symbol(B, Decl(0.ts, 0, 0))

    print() { return "I am B"}
>print : Symbol(B.print, Decl(0.ts, 0, 16))
}

export function foo() { return "foo" }
>foo : Symbol(foo, Decl(0.ts, 2, 1))

=== tests/cases/conformance/dynamicImport/1.ts ===
export function backup() { return "backup"; }
>backup : Symbol(backup, Decl(1.ts, 0, 0))

=== tests/cases/conformance/dynamicImport/2.ts ===
declare function bar(): boolean;
>bar : Symbol(bar, Decl(2.ts, 0, 0))

const specify = bar() ? "./0" : undefined;
>specify : Symbol(specify, Decl(2.ts, 1, 5))
>bar : Symbol(bar, Decl(2.ts, 0, 0))
>undefined : Symbol(undefined)

let myModule = import(specify);
>myModule : Symbol(myModule, Decl(2.ts, 2, 3))
>specify : Symbol(specify, Decl(2.ts, 1, 5))

let myModule1 = import(undefined);
>myModule1 : Symbol(myModule1, Decl(2.ts, 3, 3))
>undefined : Symbol(undefined)

let myModule2 = import(bar() ? "./1" : null);
>myModule2 : Symbol(myModule2, Decl(2.ts, 4, 3))
>bar : Symbol(bar, Decl(2.ts, 0, 0))

let myModule3 = import(null);
>myModule3 : Symbol(myModule3, Decl(2.ts, 5, 3))