Skip to content

Commit e03be45

Browse files
author
Yui T
committed
Fix spelling and add comment
1 parent b7a30c1 commit e03be45

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/compiler/checker.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13478,8 +13478,12 @@ namespace ts {
1347813478
}
1347913479

1348013480
/**
13481+
* Look into JSX namespace and then look for container with matching name as nameOfAttribPropContainer.
13482+
* Get a single property from that container if existed. Report an error if there are more than one property.
1348113483
*
13482-
*/
13484+
* @param nameOfAttribPropContainer a string of value JsxNames.ElementAttributesPropertyNameContainer or JsxNames.ElementChildrenAttributeNameContainer
13485+
* if other string is given or the container doesn't exist, return undefined.
13486+
**/
1348313487
function getNameFromJsxElementAttributesContainer(nameOfAttribPropContainer: string): string {
1348413488
// JSX
1348513489
const jsxNamespace = getGlobalSymbol(JsxNames.JSX, SymbolFlags.Namespace, /*diagnosticMessage*/ undefined);
@@ -14647,7 +14651,7 @@ namespace ts {
1464714651
// We can figure that out by resolving attributes property and check number of properties in the resolved type
1464814652
// If the call has correct arity, we will then check if the argument type and parameter type is assignable
1464914653

14650-
const callIsIncomplete = node.attributes.end === node.end; // If we are missing the close "/>", the call is incoplete
14654+
const callIsIncomplete = node.attributes.end === node.end; // If we are missing the close "/>", the call is incomplete
1465114655
if (callIsIncomplete) {
1465214656
return true;
1465314657
}

0 commit comments

Comments
 (0)