File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7769,7 +7769,7 @@ namespace ts {
7769
7769
}
7770
7770
7771
7771
function createUnionOrIntersectionProperty(containingType: UnionOrIntersectionType, name: __String): Symbol | undefined {
7772
- let props: Symbol[] | undefined ;
7772
+ const propSet = createMap<Symbol>() ;
7773
7773
let indexTypes: Type[] | undefined;
7774
7774
const isUnion = containingType.flags & TypeFlags.Union;
7775
7775
const excludeModifiers = isUnion ? ModifierFlags.NonPublicAccessibilityModifier : 0;
@@ -7784,7 +7784,7 @@ namespace ts {
7784
7784
const modifiers = prop ? getDeclarationModifierFlagsFromSymbol(prop) : 0;
7785
7785
if (prop && !(modifiers & excludeModifiers)) {
7786
7786
commonFlags &= prop.flags;
7787
- props = appendIfUnique(props , prop);
7787
+ propSet.set("" + getSymbolId(prop) , prop);
7788
7788
checkFlags |= (isReadonlySymbol(prop) ? CheckFlags.Readonly : 0) |
7789
7789
(!(modifiers & ModifierFlags.NonPublicAccessibilityModifier) ? CheckFlags.ContainsPublic : 0) |
7790
7790
(modifiers & ModifierFlags.Protected ? CheckFlags.ContainsProtected : 0) |
@@ -7806,6 +7806,7 @@ namespace ts {
7806
7806
}
7807
7807
}
7808
7808
}
7809
+ const props = arrayFrom(propSet.values());
7809
7810
if (!props) {
7810
7811
return undefined;
7811
7812
}
You can’t perform that action at this time.
0 commit comments