@@ -8704,7 +8704,7 @@ namespace ts {
87048704
87058705 const isProperty = isPropertyDeclaration(declaration) || isPropertySignature(declaration);
87068706 const isOptional = includeOptionality && (
8707- isProperty && !!( declaration as PropertyDeclaration | PropertySignature) .questionToken ||
8707+ isProperty && !!declaration.questionToken ||
87088708 isParameter(declaration) && (!!declaration.questionToken || isJSDocOptionalParameter(declaration)) ||
87098709 isOptionalJSDocPropertyLikeTag(declaration));
87108710
@@ -27886,7 +27886,7 @@ namespace ts {
2788627886 const isNodeOpeningLikeElement = isJsxOpeningLikeElement(node);
2788727887
2788827888 if (isNodeOpeningLikeElement) {
27889- checkGrammarJsxElement(node as JsxOpeningLikeElement );
27889+ checkGrammarJsxElement(node);
2789027890 }
2789127891
2789227892 checkJsxPreconditions(node);
@@ -27896,7 +27896,7 @@ namespace ts {
2789627896 // And if there is no reactNamespace/jsxFactory's symbol in scope when targeting React emit, we should issue an error.
2789727897 const jsxFactoryRefErr = diagnostics && compilerOptions.jsx === JsxEmit.React ? Diagnostics.Cannot_find_name_0 : undefined;
2789827898 const jsxFactoryNamespace = getJsxNamespace(node);
27899- const jsxFactoryLocation = isNodeOpeningLikeElement ? ( node as JsxOpeningLikeElement) .tagName : node;
27899+ const jsxFactoryLocation = isNodeOpeningLikeElement ? node.tagName : node;
2790027900
2790127901 // allow null as jsxFragmentFactory
2790227902 let jsxFactorySym: Symbol | undefined;
@@ -27926,9 +27926,9 @@ namespace ts {
2792627926 }
2792727927
2792827928 if (isNodeOpeningLikeElement) {
27929- const jsxOpeningLikeNode = node as JsxOpeningLikeElement ;
27929+ const jsxOpeningLikeNode = node ;
2793027930 const sig = getResolvedSignature(jsxOpeningLikeNode);
27931- checkDeprecatedSignature(sig, node as JsxOpeningLikeElement );
27931+ checkDeprecatedSignature(sig, node);
2793227932 checkJsxReturnAssignableToAppropriateBound(getJsxReferenceKind(jsxOpeningLikeNode), getReturnTypeOfSignature(sig), jsxOpeningLikeNode);
2793327933 }
2793427934 }
@@ -36988,7 +36988,7 @@ namespace ts {
3698836988 // Don't validate for-in initializer as it is already an error
3698936989 const widenedType = getWidenedTypeForVariableLikeDeclaration(node);
3699036990 if (needCheckInitializer) {
36991- const initializerType = checkExpressionCached(node.initializer! );
36991+ const initializerType = checkExpressionCached(node.initializer);
3699236992 if (strictNullChecks && needCheckWidenedType) {
3699336993 checkNonNullNonVoidType(initializerType, node);
3699436994 }
0 commit comments