File: tsxReactEmit4.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 (36 lines) | stat: -rw-r--r-- 993 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
=== tests/cases/conformance/jsx/file.tsx ===
declare module JSX {
>JSX : Symbol(JSX, Decl(file.tsx, 0, 0))

	interface Element { }
>Element : Symbol(Element, Decl(file.tsx, 0, 20))

	interface IntrinsicElements {
>IntrinsicElements : Symbol(IntrinsicElements, Decl(file.tsx, 1, 22))

		[s: string]: any;
>s : Symbol(s, Decl(file.tsx, 3, 3))
	}
}
declare var React: any;
>React : Symbol(React, Decl(file.tsx, 6, 11))

var p: any;
>p : Symbol(p, Decl(file.tsx, 8, 3))

var openClosed1 = <div>
>openClosed1 : Symbol(openClosed1, Decl(file.tsx, 9, 3))
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))

   {blah}

</div>;
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))

// Should emit React.__spread({}, p, {x: 0})
var spread1 = <div {...p} x={0} />;
>spread1 : Symbol(spread1, Decl(file.tsx, 16, 3))
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
>p : Symbol(p, Decl(file.tsx, 8, 3))
>x : Symbol(x, Decl(file.tsx, 16, 25))