@@ -7086,7 +7086,7 @@ namespace ts {
7086
7086
7087
7087
let jsxElementClassType: Type = undefined;
7088
7088
function getJsxGlobalElementClassType(): Type {
7089
- if(!jsxElementClassType) {
7089
+ if (!jsxElementClassType) {
7090
7090
jsxElementClassType = getExportedTypeFromNamespace(JsxNames.JSX, JsxNames.ElementClass);
7091
7091
}
7092
7092
return jsxElementClassType;
@@ -7105,7 +7105,7 @@ namespace ts {
7105
7105
}
7106
7106
7107
7107
if (jsxElementType === undefined) {
7108
- if(compilerOptions.noImplicitAny) {
7108
+ if (compilerOptions.noImplicitAny) {
7109
7109
error(errorNode, Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist);
7110
7110
}
7111
7111
}
@@ -7117,8 +7117,8 @@ namespace ts {
7117
7117
7118
7118
let targetAttributesType = getJsxElementAttributesType(node);
7119
7119
7120
- if(getNodeLinks(node).jsxFlags & JsxFlags.ClassElement) {
7121
- if(node.tagName.kind === SyntaxKind.Identifier) {
7120
+ if (getNodeLinks(node).jsxFlags & JsxFlags.ClassElement) {
7121
+ if (node.tagName.kind === SyntaxKind.Identifier) {
7122
7122
checkIdentifier(<Identifier>node.tagName);
7123
7123
}
7124
7124
else {
@@ -7138,7 +7138,7 @@ namespace ts {
7138
7138
else {
7139
7139
Debug.assert(node.attributes[i].kind === SyntaxKind.JsxSpreadAttribute);
7140
7140
let spreadType = checkJsxSpreadAttribute(<JsxSpreadAttribute>(node.attributes[i]), targetAttributesType, nameTable);
7141
- if(isTypeAny(spreadType)) {
7141
+ if (isTypeAny(spreadType)) {
7142
7142
sawSpreadedAny = true;
7143
7143
}
7144
7144
}
@@ -12343,7 +12343,7 @@ namespace ts {
12343
12343
}
12344
12344
12345
12345
function checkTypePredicate(node: TypePredicateNode) {
12346
- if(!isInLegalTypePredicatePosition(node)) {
12346
+ if (!isInLegalTypePredicatePosition(node)) {
12347
12347
error(node, Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);
12348
12348
}
12349
12349
}
0 commit comments