101 lines
3.1 KiB
Plaintext
101 lines
3.1 KiB
Plaintext
=== tests/cases/conformance/jsx/file.tsx ===
|
|
|
|
import React = require('react');
|
|
>React : Symbol(React, Decl(file.tsx, 0, 0))
|
|
|
|
class RC1 extends React.Component<{x : number}, {}> {
|
|
>RC1 : Symbol(RC1, Decl(file.tsx, 1, 32))
|
|
>React.Component : Symbol(React.Component, Decl(react.d.ts, 158, 55))
|
|
>React : Symbol(React, Decl(file.tsx, 0, 0))
|
|
>Component : Symbol(React.Component, Decl(react.d.ts, 158, 55))
|
|
>x : Symbol(x, Decl(file.tsx, 3, 35))
|
|
|
|
render() {
|
|
>render : Symbol(RC1.render, Decl(file.tsx, 3, 53))
|
|
|
|
return null;
|
|
}
|
|
}
|
|
|
|
class RC2 extends React.Component<{ x: string }, {}> {
|
|
>RC2 : Symbol(RC2, Decl(file.tsx, 7, 1))
|
|
>React.Component : Symbol(React.Component, Decl(react.d.ts, 158, 55))
|
|
>React : Symbol(React, Decl(file.tsx, 0, 0))
|
|
>Component : Symbol(React.Component, Decl(react.d.ts, 158, 55))
|
|
>x : Symbol(x, Decl(file.tsx, 9, 35))
|
|
|
|
render() {
|
|
>render : Symbol(RC2.render, Decl(file.tsx, 9, 54))
|
|
|
|
return null;
|
|
}
|
|
private method() { }
|
|
>method : Symbol(RC2.method, Decl(file.tsx, 12, 5))
|
|
}
|
|
|
|
class RC3 extends React.Component<{}, {}> {
|
|
>RC3 : Symbol(RC3, Decl(file.tsx, 14, 1))
|
|
>React.Component : Symbol(React.Component, Decl(react.d.ts, 158, 55))
|
|
>React : Symbol(React, Decl(file.tsx, 0, 0))
|
|
>Component : Symbol(React.Component, Decl(react.d.ts, 158, 55))
|
|
|
|
render() {
|
|
>render : Symbol(RC3.render, Decl(file.tsx, 16, 43))
|
|
|
|
return null;
|
|
}
|
|
}
|
|
|
|
class RC4 extends React.Component<{}, {}> {
|
|
>RC4 : Symbol(RC4, Decl(file.tsx, 20, 1))
|
|
>React.Component : Symbol(React.Component, Decl(react.d.ts, 158, 55))
|
|
>React : Symbol(React, Decl(file.tsx, 0, 0))
|
|
>Component : Symbol(React.Component, Decl(react.d.ts, 158, 55))
|
|
|
|
render() {
|
|
>render : Symbol(RC4.render, Decl(file.tsx, 22, 43))
|
|
|
|
return null;
|
|
}
|
|
}
|
|
|
|
var EmptyRCComp = RC3 || RC4;
|
|
>EmptyRCComp : Symbol(EmptyRCComp, Decl(file.tsx, 28, 3))
|
|
>RC3 : Symbol(RC3, Decl(file.tsx, 14, 1))
|
|
>RC4 : Symbol(RC4, Decl(file.tsx, 20, 1))
|
|
|
|
var PartRCComp = RC1 || RC4;
|
|
>PartRCComp : Symbol(PartRCComp, Decl(file.tsx, 29, 3))
|
|
>RC1 : Symbol(RC1, Decl(file.tsx, 1, 32))
|
|
>RC4 : Symbol(RC4, Decl(file.tsx, 20, 1))
|
|
|
|
var RCComp = RC1 || RC2;
|
|
>RCComp : Symbol(RCComp, Decl(file.tsx, 30, 3))
|
|
>RC1 : Symbol(RC1, Decl(file.tsx, 1, 32))
|
|
>RC2 : Symbol(RC2, Decl(file.tsx, 7, 1))
|
|
|
|
// OK
|
|
let a = <RCComp x="Hi" />;
|
|
>a : Symbol(a, Decl(file.tsx, 32, 3))
|
|
>RCComp : Symbol(RCComp, Decl(file.tsx, 30, 3))
|
|
>x : Symbol(x, Decl(file.tsx, 32, 15))
|
|
|
|
let a1 = <EmptyRCComp />;
|
|
>a1 : Symbol(a1, Decl(file.tsx, 33, 3))
|
|
>EmptyRCComp : Symbol(EmptyRCComp, Decl(file.tsx, 28, 3))
|
|
|
|
let a2 = <EmptyRCComp data-prop="hello" />;
|
|
>a2 : Symbol(a2, Decl(file.tsx, 34, 3))
|
|
>EmptyRCComp : Symbol(EmptyRCComp, Decl(file.tsx, 28, 3))
|
|
>data-prop : Symbol(data-prop, Decl(file.tsx, 34, 21))
|
|
|
|
let b = <PartRCComp />
|
|
>b : Symbol(b, Decl(file.tsx, 35, 3))
|
|
>PartRCComp : Symbol(PartRCComp, Decl(file.tsx, 29, 3))
|
|
|
|
let c = <PartRCComp data-extra="hello" />
|
|
>c : Symbol(c, Decl(file.tsx, 36, 3))
|
|
>PartRCComp : Symbol(PartRCComp, Decl(file.tsx, 29, 3))
|
|
>data-extra : Symbol(data-extra, Decl(file.tsx, 36, 19))
|
|
|