File tree 1 file changed +6
-2
lines changed 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -13478,8 +13478,12 @@ namespace ts {
13478
13478
}
13479
13479
13480
13480
/**
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.
13481
13483
*
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
+ **/
13483
13487
function getNameFromJsxElementAttributesContainer(nameOfAttribPropContainer: string): string {
13484
13488
// JSX
13485
13489
const jsxNamespace = getGlobalSymbol(JsxNames.JSX, SymbolFlags.Namespace, /*diagnosticMessage*/ undefined);
@@ -14647,7 +14651,7 @@ namespace ts {
14647
14651
// We can figure that out by resolving attributes property and check number of properties in the resolved type
14648
14652
// If the call has correct arity, we will then check if the argument type and parameter type is assignable
14649
14653
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
14651
14655
if (callIsIncomplete) {
14652
14656
return true;
14653
14657
}
You can’t perform that action at this time.
0 commit comments