39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
=== 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))
|
|
|
|
// Emit ' word' in the last string
|
|
<div>word <code>code</code> word</div>;
|
|
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
|
|
>code : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
|
|
>code : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
|
|
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
|
|
|
|
// Same here
|
|
<div><code>code</code> word</div>;
|
|
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
|
|
>code : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
|
|
>code : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
|
|
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
|
|
|
|
// And here
|
|
<div><code /> word</div>;
|
|
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
|
|
>code : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
|
|
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
|
|
|
|
|