TypeScript/tests/cases/conformance/jsx
Nathan Shively-Sanders 89a737c871
Improve parser recovery for unclosed/mismatched JSX elements (#43780)
* 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
2021-05-20 07:20:57 -07:00
..
inline reset soft with master for single commit (#38720) 2020-06-18 00:22:32 -07:00
jsxs Add tests related to the key prop when using new JSX transform 2020-10-17 15:20:39 +02:00
checkJsxChildrenCanBeTupleType.tsx Infer tuples for jsx children if contextually typed by a tuple (#27409) 2018-10-04 17:56:38 -07:00
checkJsxChildrenProperty1.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
checkJsxChildrenProperty2.tsx Error when property is specified more than once via a spread (#36727) 2020-02-11 10:23:15 -08:00
checkJsxChildrenProperty3.tsx Add skip lib check to many tests (#18935) 2017-10-04 13:14:05 -07:00
checkJsxChildrenProperty4.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
checkJsxChildrenProperty5.tsx Add skip lib check to many tests (#18935) 2017-10-04 13:14:05 -07:00
checkJsxChildrenProperty6.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
checkJsxChildrenProperty7.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
checkJsxChildrenProperty8.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
checkJsxChildrenProperty9.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
checkJsxChildrenProperty10.tsx Update baselines and tests (2) 2017-04-17 13:00:38 -07:00
checkJsxChildrenProperty11.tsx Update baselines and tests (2) 2017-04-17 13:00:38 -07:00
checkJsxChildrenProperty12.tsx Add skip lib check to many tests (#18935) 2017-10-04 13:14:05 -07:00
checkJsxChildrenProperty13.tsx Error when property is specified more than once via a spread (#36727) 2020-02-11 10:23:15 -08:00
checkJsxChildrenProperty14.tsx Add baselines 2017-10-17 09:38:23 -07:00
checkJsxChildrenProperty15.tsx Fake up value declaration for synthetic jsx children symbol so they get excess property checked (#29359) 2019-01-15 22:31:57 -08:00
checkJsxGenericTagHasCorrectInferences.tsx Fix JSX contextual types to not eagerly become apparent, use 2-pass inference for JSX (#21383) 2018-02-05 16:33:39 -08:00
checkJsxIntersectionElementPropsType.tsx Infer over each mapped type constraint member if it is a union (#28006) 2018-10-22 16:33:43 -07:00
checkJsxNamespaceNamesQuestionableForms.tsx Adjust scanning of keywordy jsx namespace names, add grammar error for jsx dotted names containing namespace names (#43104) 2021-03-22 10:28:43 -07:00
checkJsxSubtleSkipContextSensitiveBug.tsx Obey the excludeArgument parameter when checking JSX signature validity (#28002) 2018-10-22 16:36:11 -07:00
checkJsxUnionSFXContextualTypeInferredCorrectly.tsx Discriminate jsx contextual types same as object contextual types (#27408) 2018-10-05 15:11:12 -07:00
commentEmittingInPreserveJsx1.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
correctlyMarkAliasAsReferences1.tsx Add skip lib check to many tests (#18935) 2017-10-04 13:14:05 -07:00
correctlyMarkAliasAsReferences2.tsx Add skip lib check to many tests (#18935) 2017-10-04 13:14:05 -07:00
correctlyMarkAliasAsReferences3.tsx Add skip lib check to many tests (#18935) 2017-10-04 13:14:05 -07:00
correctlyMarkAliasAsReferences4.tsx Add skip lib check to many tests (#18935) 2017-10-04 13:14:05 -07:00
jsxAndTypeAssertion.tsx
jsxCheckJsxNoTypeArgumentsAllowed.tsx Parse and check type arguments on JSX opening and self-closing tags (#22415) 2018-03-22 15:07:36 -07:00
jsxEsprimaFbTestSuite.tsx Support xml namespace prefix for JSX elements and attributes (#37421) 2020-11-02 15:34:36 -08:00
jsxInvalidEsprimaTestSuite.tsx Improve error range for ts2657 (jsx expr must have parent element), add code fix for it (#37917) 2020-06-01 12:22:44 -07:00
jsxParsingError1.tsx
jsxParsingError2.tsx
jsxParsingError3.tsx Throw syntax error for } and > in JSX text (#36636) 2020-02-11 11:44:17 -05:00
jsxReactTestSuite.tsx
jsxSpreadOverwritesAttributeStrict.tsx feat(36908): add 'property overwritten by spread' error for jsx attributes. add related span for conflicting declaration in spread (#37329) 2020-03-17 13:13:38 -07:00
jsxUnclosedParserRecovery.ts Improve parser recovery for unclosed/mismatched JSX elements (#43780) 2021-05-20 07:20:57 -07:00
tsxAttributeErrors.tsx
tsxAttributeInvalidNames.tsx
tsxAttributeResolution.tsx
tsxAttributeResolution1.tsx
tsxAttributeResolution2.tsx
tsxAttributeResolution3.tsx Update tests anad baselines 2017-05-04 17:12:52 -07:00
tsxAttributeResolution4.tsx
tsxAttributeResolution5.tsx [Transforms] Merge master on 08/05 (#10182) 2016-08-05 21:45:13 -07:00
tsxAttributeResolution6.tsx
tsxAttributeResolution7.tsx
tsxAttributeResolution8.tsx
tsxAttributeResolution9.tsx
tsxAttributeResolution10.tsx
tsxAttributeResolution11.tsx
tsxAttributeResolution12.tsx Add failing test 2016-02-11 09:44:09 -08:00
tsxAttributeResolution13.tsx Don't crash if there's no JSX.Element during SFC resolution 2016-02-29 18:35:48 -08:00
tsxAttributeResolution14.tsx [Transforms] Merge master 08/09 (#10263) 2016-08-26 15:51:10 -07:00
tsxAttributeResolution15.tsx Unify JSX And Normal Call Checking Codepaths (#27627) 2018-10-16 20:16:00 -04:00
tsxAttributeResolution16.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxCorrectlyParseLessThanComparison1.tsx Add tests 2016-09-23 17:28:08 -07:00
tsxDefaultAttributesResolution1.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxDefaultAttributesResolution2.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxDefaultAttributesResolution3.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxDynamicTagName1.tsx [Transforms] Merge master 07/11 into transform (#9697) 2016-07-18 15:38:30 -07:00
tsxDynamicTagName2.tsx [Transforms] Merge master 07/11 into transform (#9697) 2016-07-18 15:38:30 -07:00
tsxDynamicTagName3.tsx [Transforms] Merge master 07/11 into transform (#9697) 2016-07-18 15:38:30 -07:00
tsxDynamicTagName4.tsx [Transforms] Merge master 07/11 into transform (#9697) 2016-07-18 15:38:30 -07:00
tsxDynamicTagName5.tsx [Transforms] Merge master 07/11 into transform (#9697) 2016-07-18 15:38:30 -07:00
tsxDynamicTagName6.tsx [Transforms] Merge master 07/11 into transform (#9697) 2016-07-18 15:38:30 -07:00
tsxDynamicTagName7.tsx [Transforms] Merge master 07/11 into transform (#9697) 2016-07-18 15:38:30 -07:00
tsxDynamicTagName8.tsx [Transforms] Merge master 07/11 into transform (#9697) 2016-07-18 15:38:30 -07:00
tsxDynamicTagName9.tsx [Transforms] Merge master 07/11 into transform (#9697) 2016-07-18 15:38:30 -07:00
tsxElementResolution.tsx
tsxElementResolution1.tsx
tsxElementResolution2.tsx
tsxElementResolution3.tsx
tsxElementResolution4.tsx
tsxElementResolution5.tsx
tsxElementResolution6.tsx
tsxElementResolution7.tsx
tsxElementResolution8.tsx
tsxElementResolution9.tsx
tsxElementResolution10.tsx
tsxElementResolution11.tsx
tsxElementResolution12.tsx Refactor getJsxAttributeSymbolsFromJsxOpeningLikeElement to createJsxAttributesTypeFromAttributesProperty 2017-01-19 09:51:01 -08:00
tsxElementResolution13.tsx
tsxElementResolution14.tsx
tsxElementResolution15.tsx
tsxElementResolution16.tsx
tsxElementResolution17.tsx
tsxElementResolution18.tsx
tsxElementResolution19.tsx
tsxEmit1.tsx
tsxEmit2.tsx Update existed conformance tests 2017-01-18 15:16:04 -08:00
tsxEmit3.tsx
tsxEmitSpreadAttribute.ts fix(42368): omit converting jsx spread attributes to Object.assign for ES2018 and up (#42554) 2021-02-18 17:06:08 -08:00
tsxErrorRecovery1.tsx
tsxErrorRecovery2.tsx
tsxErrorRecovery3.tsx
tsxExternalModuleEmit1.tsx
tsxExternalModuleEmit2.tsx
tsxFragmentErrors.tsx Update tests 2017-10-17 09:38:22 -07:00
tsxFragmentPreserveEmit.tsx Allow characters in JsxText inside JsxFragment that would not normally scan 2018-02-22 15:56:34 -08:00
tsxFragmentReactEmit.tsx Allow characters in JsxText inside JsxFragment that would not normally scan 2018-02-22 15:56:34 -08:00
tsxGenericArrowFunctionParsing.tsx Update tests 2016-09-21 16:03:51 -07:00
tsxGenericAttributesType1.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxGenericAttributesType2.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxGenericAttributesType3.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxGenericAttributesType4.tsx Use inference for filling JSX attributes in getJsxElementInstanceType (#20973) 2018-01-03 11:30:41 -08:00
tsxGenericAttributesType5.tsx Use inference for filling JSX attributes in getJsxElementInstanceType (#20973) 2018-01-03 11:30:41 -08:00
tsxGenericAttributesType6.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxGenericAttributesType7.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxGenericAttributesType8.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxGenericAttributesType9.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxInArrowFunction.tsx
tsxIntrinsicAttributeErrors.tsx Skip IntrinsicAttributes elaboration in JSX errors (#24461) 2018-05-29 14:00:26 -07:00
tsxLibraryManagedAttributes.tsx Support LibraryManagedAttributes<TComponent, TAttributes> JSX namespace type (#24422) 2018-06-29 18:45:29 -07:00
tsxNoJsx.tsx
tsxOpeningClosingNames.tsx
tsxParseTests1.tsx
tsxParseTests2.tsx
tsxPreserveEmit1.tsx
tsxPreserveEmit2.tsx
tsxPreserveEmit3.tsx
tsxReactComponentWithDefaultTypeParameter1.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxReactComponentWithDefaultTypeParameter2.tsx Use inference for filling JSX attributes in getJsxElementInstanceType (#20973) 2018-01-03 11:30:41 -08:00
tsxReactComponentWithDefaultTypeParameter3.tsx Use inference for filling JSX attributes in getJsxElementInstanceType (#20973) 2018-01-03 11:30:41 -08:00
tsxReactEmit1.tsx
tsxReactEmit2.tsx Update existed conformance tests 2017-01-18 15:16:04 -08:00
tsxReactEmit3.tsx
tsxReactEmit4.tsx Update existed conformance tests 2017-01-18 15:16:04 -08:00
tsxReactEmit5.tsx Update existed conformance tests 2017-01-18 15:16:04 -08:00
tsxReactEmit6.tsx Update existed conformance tests 2017-01-18 15:16:04 -08:00
tsxReactEmit7.tsx
tsxReactEmitEntities.tsx Fix decoding of HTML entities in TSX/JSX (#35739) 2019-12-17 17:32:48 -08:00
tsxReactEmitNesting.tsx pretty output for react jsx 2016-01-26 22:59:34 -08:00
tsxReactEmitWhitespace.tsx Comment code and remember to add a space before the last part 2016-09-09 07:56:01 -07:00
tsxReactEmitWhitespace2.tsx
tsxSfcReturnNull.tsx Add skip lib check to many tests (#18935) 2017-10-04 13:14:05 -07:00
tsxSfcReturnNullStrictNullChecks.tsx Allow JSXAttributes types to be shortcut-spread into the spread type like normal objects (#19047) 2017-12-15 16:13:28 -08:00
tsxSfcReturnUndefinedStrictNullChecks.tsx Allow JSXAttributes types to be shortcut-spread into the spread type like normal objects (#19047) 2017-12-15 16:13:28 -08:00
tsxSpreadAttributesResolution1.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxSpreadAttributesResolution2.tsx Unify JSX And Normal Call Checking Codepaths (#27627) 2018-10-16 20:16:00 -04:00
tsxSpreadAttributesResolution3.tsx Add skip lib check to many tests (#18935) 2017-10-04 13:14:05 -07:00
tsxSpreadAttributesResolution4.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxSpreadAttributesResolution5.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxSpreadAttributesResolution6.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxSpreadAttributesResolution7.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxSpreadAttributesResolution8.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxSpreadAttributesResolution9.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxSpreadAttributesResolution10.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxSpreadAttributesResolution11.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxSpreadAttributesResolution12.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxSpreadAttributesResolution13.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxSpreadAttributesResolution14.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxSpreadAttributesResolution15.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxSpreadAttributesResolution16.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxSpreadAttributesResolution17.tsx Fix JSX attribute checking when spreading unions 2018-01-22 13:34:12 -08:00
tsxSpreadChildren.tsx Add spread syntax tests for JsxExpressions 2016-10-13 09:28:39 -07:00
tsxSpreadChildrenInvalidType.tsx Allow any type for spreads in JsxExpression 2016-10-13 10:17:01 -07:00
tsxStatelessFunctionComponentOverload1.tsx Add skip lib check to many tests (#18935) 2017-10-04 13:14:05 -07:00
tsxStatelessFunctionComponentOverload2.tsx Add skip lib check to many tests (#18935) 2017-10-04 13:14:05 -07:00
tsxStatelessFunctionComponentOverload3.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxStatelessFunctionComponentOverload4.tsx fix spelling errors (#36523) 2020-01-30 13:39:54 -08:00
tsxStatelessFunctionComponentOverload5.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxStatelessFunctionComponentOverload6.tsx Add skip lib check to many tests (#18935) 2017-10-04 13:14:05 -07:00
tsxStatelessFunctionComponents1.tsx Add skip lib check to many tests (#18935) 2017-10-04 13:14:05 -07:00
tsxStatelessFunctionComponents2.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxStatelessFunctionComponents3.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxStatelessFunctionComponentsWithTypeArguments1.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxStatelessFunctionComponentsWithTypeArguments2.tsx Add skip lib check to many tests (#18935) 2017-10-04 13:14:05 -07:00
tsxStatelessFunctionComponentsWithTypeArguments3.tsx Add skip lib check to many tests (#18935) 2017-10-04 13:14:05 -07:00
tsxStatelessFunctionComponentsWithTypeArguments4.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxStatelessFunctionComponentsWithTypeArguments5.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxStatelessFunctionComponentWithDefaultTypeParameter1.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxStatelessFunctionComponentWithDefaultTypeParameter2.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxTypeArgumentResolution.tsx Parse and check type arguments on JSX opening and self-closing tags (#22415) 2018-03-22 15:07:36 -07:00
tsxTypeArgumentsJsxPreserveOutput.tsx fix(37456): add tests for JsxOpeningElement nodes (#37752) 2020-04-02 10:38:31 -07:00
tsxTypeErrors.tsx
tsxUnionElementType1.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxUnionElementType2.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxUnionElementType3.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxUnionElementType4.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxUnionElementType5.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxUnionElementType6.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
tsxUnionTypeComponent1.tsx Add skip lib check to many tests (#18935) 2017-10-04 13:14:05 -07:00
tsxUnionTypeComponent2.tsx Skip more lib checks, improve test execution time a bit more (#18952) 2017-10-04 14:43:35 -07:00
unicodeEscapesInJsxtags.tsx Fix unicode escapes in jsx identifiers and extended unicode characters in jsdoc (#32716) 2019-08-06 15:14:32 -07:00