@@ -7021,7 +7021,7 @@ namespace ts {
70217021 return node === conditional.whenTrue || node === conditional.whenFalse ? getContextualType(conditional) : undefined;
70227022 }
70237023
7024- function getContextualTypeForJsxExpression(expr: JsxExpression| JsxSpreadAttribute): Type {
7024+ function getContextualTypeForJsxExpression(expr: JsxExpression | JsxSpreadAttribute): Type {
70257025 // Contextual type only applies to JSX expressions that are in attribute assignments (not in 'Children' positions)
70267026 if (expr.parent.kind === SyntaxKind.JsxAttribute) {
70277027 let attrib = <JsxAttribute>expr.parent;
@@ -7532,7 +7532,7 @@ namespace ts {
75327532 /**
75337533 * Returns true iff React would emit this tag name as a string rather than an identifier or qualified name
75347534 */
7535- function isJsxIntrinsicIdentifier(tagName: Identifier| QualifiedName) {
7535+ function isJsxIntrinsicIdentifier(tagName: Identifier | QualifiedName) {
75367536 if (tagName.kind === SyntaxKind.QualifiedName) {
75377537 return false;
75387538 }
@@ -7618,7 +7618,7 @@ namespace ts {
76187618 /// If this is a class-based tag (otherwise returns undefined), returns the symbol of the class
76197619 /// type or factory function.
76207620 /// Otherwise, returns unknownSymbol.
7621- function getJsxElementTagSymbol(node: JsxOpeningLikeElement| JsxClosingElement): Symbol {
7621+ function getJsxElementTagSymbol(node: JsxOpeningLikeElement | JsxClosingElement): Symbol {
76227622 let flags: JsxFlags = JsxFlags.UnknownElement;
76237623 let links = getNodeLinks(node);
76247624 if (!links.resolvedSymbol) {
@@ -7631,7 +7631,7 @@ namespace ts {
76317631 }
76327632 return links.resolvedSymbol;
76337633
7634- function lookupIntrinsicTag(node: JsxOpeningLikeElement| JsxClosingElement): Symbol {
7634+ function lookupIntrinsicTag(node: JsxOpeningLikeElement | JsxClosingElement): Symbol {
76357635 let intrinsicElementsType = getJsxIntrinsicElementsType();
76367636 if (intrinsicElementsType !== unknownType) {
76377637 // Property case
@@ -7659,7 +7659,7 @@ namespace ts {
76597659 }
76607660 }
76617661
7662- function lookupClassTag(node: JsxOpeningLikeElement| JsxClosingElement): Symbol {
7662+ function lookupClassTag(node: JsxOpeningLikeElement | JsxClosingElement): Symbol {
76637663 let valueSymbol: Symbol = resolveJsxTagName(node);
76647664
76657665 // Look up the value in the current scope
@@ -7673,7 +7673,7 @@ namespace ts {
76737673 return valueSymbol || unknownSymbol;
76747674 }
76757675
7676- function resolveJsxTagName(node: JsxOpeningLikeElement| JsxClosingElement): Symbol {
7676+ function resolveJsxTagName(node: JsxOpeningLikeElement | JsxClosingElement): Symbol {
76777677 if (node.tagName.kind === SyntaxKind.Identifier) {
76787678 let tag = <Identifier>node.tagName;
76797679 let sym = getResolvedSymbol(tag);
@@ -15540,7 +15540,7 @@ namespace ts {
1554015540 }
1554115541 }
1554215542
15543- function checkGrammarJsxElement(node: JsxOpeningElement|JsxSelfClosingElement ) {
15543+ function checkGrammarJsxElement(node: JsxOpeningLikeElement ) {
1554415544 const seen: Map<boolean> = {};
1554515545 for (let attr of node.attributes) {
1554615546 if (attr.kind === SyntaxKind.JsxSpreadAttribute) {
0 commit comments