|
| 1 | +=== tests/cases/conformance/jsx/tsxCorrectlyParseLessThanComparison1.tsx === |
| 2 | +declare module JSX { |
| 3 | +>JSX : Symbol(JSX, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 0, 0)) |
| 4 | + |
| 5 | + interface Element { |
| 6 | +>Element : Symbol(Element, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 0, 20)) |
| 7 | + |
| 8 | + div: string; |
| 9 | +>div : Symbol(Element.div, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 1, 23)) |
| 10 | + } |
| 11 | +} |
| 12 | +declare namespace React { |
| 13 | +>React : Symbol(React, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 4, 1)) |
| 14 | + |
| 15 | + class Component<P, S> { |
| 16 | +>Component : Symbol(Component, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 5, 25)) |
| 17 | +>P : Symbol(P, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 6, 20)) |
| 18 | +>S : Symbol(S, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 6, 22)) |
| 19 | + |
| 20 | + constructor(props?: P, context?: any); |
| 21 | +>props : Symbol(props, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 7, 20)) |
| 22 | +>P : Symbol(P, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 6, 20)) |
| 23 | +>context : Symbol(context, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 7, 30)) |
| 24 | + |
| 25 | + props: P; |
| 26 | +>props : Symbol(Component.props, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 7, 46)) |
| 27 | +>P : Symbol(P, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 6, 20)) |
| 28 | + } |
| 29 | +} |
| 30 | + |
| 31 | +export class ShortDetails extends React.Component<{ id: number }, {}> { |
| 32 | +>ShortDetails : Symbol(ShortDetails, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 10, 1)) |
| 33 | +>React.Component : Symbol(React.Component, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 5, 25)) |
| 34 | +>React : Symbol(React, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 4, 1)) |
| 35 | +>Component : Symbol(React.Component, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 5, 25)) |
| 36 | +>id : Symbol(id, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 12, 51)) |
| 37 | + |
| 38 | + public render(): JSX.Element { |
| 39 | +>render : Symbol(ShortDetails.render, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 12, 71)) |
| 40 | +>JSX : Symbol(JSX, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 0, 0)) |
| 41 | +>Element : Symbol(JSX.Element, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 0, 20)) |
| 42 | + |
| 43 | + if (this.props.id < 1) { |
| 44 | +>this.props.id : Symbol(id, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 12, 51)) |
| 45 | +>this.props : Symbol(React.Component.props, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 7, 46)) |
| 46 | +>this : Symbol(ShortDetails, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 10, 1)) |
| 47 | +>props : Symbol(React.Component.props, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 7, 46)) |
| 48 | +>id : Symbol(id, Decl(tsxCorrectlyParseLessThanComparison1.tsx, 12, 51)) |
| 49 | + |
| 50 | + return (<div></div>); |
| 51 | +>div : Symbol(unknown) |
| 52 | +>div : Symbol(unknown) |
| 53 | + } |
| 54 | + } |
| 55 | +} |
0 commit comments