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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
|
=== 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))
// THIS FILE HAS TEST-SIGNIFICANT LEADING/TRAILING
// WHITESPACE, DO NOT RUN 'FORMAT DOCUMENT' ON IT
var p = 0;
>p : Symbol(p, Decl(file.tsx, 11, 3))
// Emit " "
<div> </div>;
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
// Emit " ", p, " "
<div> {p} </div>;
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
>p : Symbol(p, Decl(file.tsx, 11, 3))
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
// Emit only p
<div>
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
{p}
>p : Symbol(p, Decl(file.tsx, 11, 3))
</div>;
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
// Emit only p
<div>
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
{p}
>p : Symbol(p, Decl(file.tsx, 11, 3))
</div>;
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
// Emit " 3"
<div> 3
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
</div>;
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
// Emit " 3 "
<div> 3 </div>;
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
// Emit "3"
<div>
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
3
</div>;
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
// Emit no args
<div>
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
</div>;
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
// Emit "foo bar"
<div>
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
foo
bar
</div>;
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
// Emit "hello\\ world"
<div>
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
hello\
world
</div>;
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
// Emit " a b c d "
<div> a
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
b c
d </div>;
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
|