89a737c871
* First draft Everything works, the error messages for unmatched opening elements could still use improvement, plus there is tonnes of unused and ugly code. 1. Make sure the parser can recover from all kinds of unclosed tags. 2. Improve the parse tree for unmatched opening tags. 3. Better errors at some point. * Lots of cleanup * Improve readability of construction/fix lint * improve line-length formatting
48 lines
816 B
TypeScript
48 lines
816 B
TypeScript
//// [tests/cases/conformance/jsx/jsxParsingError2.tsx] ////
|
|
|
|
//// [file.tsx]
|
|
declare module JSX {
|
|
interface Element { }
|
|
interface IntrinsicElements {
|
|
[s: string]: any;
|
|
}
|
|
}
|
|
|
|
//// [Error1.tsx]
|
|
// Issue error about missing span closing tag, not missing div closing tag
|
|
let x1 = <div><span></div>;
|
|
|
|
//// [Error2.tsx]
|
|
let x2 = <div></span>;
|
|
|
|
|
|
//// [Error3.tsx]
|
|
let x3 = <div>;
|
|
|
|
|
|
//// [Error4.tsx]
|
|
let x4 = <div><div></span>;
|
|
|
|
//// [Error5.tsx]
|
|
let x5 = <div><span>
|
|
|
|
|
|
|
|
//// [file.jsx]
|
|
//// [Error1.jsx]
|
|
// Issue error about missing span closing tag, not missing div closing tag
|
|
var x1 = <div><span></></div>;
|
|
//// [Error2.jsx]
|
|
var x2 = <div></span>;
|
|
//// [Error3.jsx]
|
|
var x3 = <div>;
|
|
|
|
</>;
|
|
//// [Error4.jsx]
|
|
var x4 = <div><div></span>;
|
|
</>;
|
|
//// [Error5.jsx]
|
|
var x5 = <div><span>
|
|
|
|
</></>;
|