File: tsxExternalModuleEmit2.symbols

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (33 lines) | stat: -rw-r--r-- 935 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
=== tests/cases/conformance/jsx/modules.d.ts ===
declare module 'mod' {
>'mod' : Symbol("mod", Decl(modules.d.ts, 0, 0))

  var y: any;
>y : Symbol(y, Decl(modules.d.ts, 1, 5))

  export default y;
>y : Symbol(y, Decl(modules.d.ts, 1, 5))
}

=== tests/cases/conformance/jsx/app.tsx ===
import Main from 'mod';
>Main : Symbol(Main, Decl(app.tsx, 0, 6))

declare var Foo, React;
>Foo : Symbol(Foo, Decl(app.tsx, 1, 11))
>React : Symbol(React, Decl(app.tsx, 1, 16))

// Should see mod_1['default'] in emit here
<Foo handler={Main}></Foo>;
>Foo : Symbol(Foo, Decl(app.tsx, 1, 11))
>handler : Symbol(handler, Decl(app.tsx, 3, 4))
>Main : Symbol(Main, Decl(app.tsx, 0, 6))
>Foo : Symbol(Foo, Decl(app.tsx, 1, 11))

// Should see mod_1['default'] in emit here
<Foo {...Main}></Foo>;
>Foo : Symbol(Foo, Decl(app.tsx, 1, 11))
>Main : Symbol(Main, Decl(app.tsx, 0, 6))
>Foo : Symbol(Foo, Decl(app.tsx, 1, 11))