@@ -11903,13 +11903,13 @@ namespace ts {
11903
11903
}
11904
11904
attributeSymbol.type = exprType;
11905
11905
attributeSymbol.target = member;
11906
- attributesTable[ attributeSymbol.name] = attributeSymbol;
11906
+ attributesTable.set( attributeSymbol.name, attributeSymbol) ;
11907
11907
attributesArray.push(attributeSymbol);
11908
11908
}
11909
11909
else {
11910
11910
Debug.assert(attributeDecl.kind === SyntaxKind.JsxSpreadAttribute);
11911
11911
if (attributesArray.length > 0) {
11912
- spread = getSpreadType(spread, createJsxAttributesType(attributes.symbol, attributesTable), /*isFromObjectLiteral*/ true );
11912
+ spread = getSpreadType(spread, createJsxAttributesType(attributes.symbol, attributesTable));
11913
11913
attributesArray = [];
11914
11914
attributesTable = createMap<Symbol>();
11915
11915
}
@@ -11922,13 +11922,13 @@ namespace ts {
11922
11922
if (isTypeAny(widenExprType)) {
11923
11923
return undefined;
11924
11924
}
11925
- spread = getSpreadType(spread, exprType, /*isFromObjectLiteral*/ false );
11925
+ spread = getSpreadType(spread, exprType);
11926
11926
}
11927
11927
}
11928
11928
11929
11929
if (spread !== emptyObjectType) {
11930
11930
if (attributesArray.length > 0) {
11931
- spread = getSpreadType(spread, createJsxAttributesType(attributes.symbol, attributesTable), /*isFromObjectLiteral*/ true );
11931
+ spread = getSpreadType(spread, createJsxAttributesType(attributes.symbol, attributesTable));
11932
11932
attributesArray = [];
11933
11933
attributesTable = createMap<Symbol>();
11934
11934
}
@@ -11962,7 +11962,7 @@ namespace ts {
11962
11962
if (symbolArray) {
11963
11963
const symbolTable = createMap<Symbol>();
11964
11964
forEach(symbolArray, (attr) => {
11965
- symbolTable[ attr.name] = attr;
11965
+ symbolTable.set( attr.name, attr) ;
11966
11966
});
11967
11967
argAttributesType = createJsxAttributesType(node.symbol, symbolTable);
11968
11968
}
@@ -11986,7 +11986,7 @@ namespace ts {
11986
11986
}
11987
11987
11988
11988
const symbolArray = getJsxAttributesSymbolArrayFromAttributesProperty(openingLikeElement);
11989
- // sourceAttributesType is a type of an attributes properties.
11989
+ // sourceAttributesType is a type of attributes properties.
11990
11990
// i.e <div attr1={10} attr2="string" />
11991
11991
// attr1 and attr2 are treated as JSXAttributes attached in the JsxOpeningLikeElement as "attributes". They resolved to be sourceAttributesType.
11992
11992
let sourceAttributesType = anyType as Type;
@@ -11996,7 +11996,7 @@ namespace ts {
11996
11996
const symbolTable = createMap<Symbol>();
11997
11997
forEach(symbolArray, (attr) => {
11998
11998
if (isUnhyphenatedJsxName(attr.name) || getPropertyOfType(targetAttributesType, attr.name)) {
11999
- symbolTable[ attr.name] = attr;
11999
+ symbolTable.set( attr.name, attr) ;
12000
12000
isSourceAttributesTypeEmpty = false;
12001
12001
}
12002
12002
});
@@ -12450,7 +12450,7 @@ namespace ts {
12450
12450
}
12451
12451
}
12452
12452
12453
- checkJSXAttributesAssignableToTagnameAttributes(openingLikeElement );
12453
+ checkJSXAttributesAssignableToTagnameAttributes(node );
12454
12454
}
12455
12455
12456
12456
function checkJsxExpression(node: JsxExpression) {
0 commit comments