@@ -134,16 +134,16 @@ namespace ts {
134
134
const neverType = createIntrinsicType(TypeFlags.Never, "never");
135
135
const silentNeverType = createIntrinsicType(TypeFlags.Never, "never");
136
136
137
- const emptyObjectType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined);
138
- const emptyGenericType = <GenericType><ObjectType>createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined);
137
+ const emptyObjectType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined, undefined );
138
+ const emptyGenericType = <GenericType><ObjectType>createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined, undefined );
139
139
emptyGenericType.instantiations = createMap<TypeReference>();
140
140
141
- const anyFunctionType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined);
141
+ const anyFunctionType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined, undefined );
142
142
// The anyFunctionType contains the anyFunctionType by definition. The flag is further propagated
143
143
// in getPropagatingFlagsOfTypes, and it is checked in inferFromTypes.
144
144
anyFunctionType.flags |= TypeFlags.ContainsAnyFunctionType;
145
145
146
- const noConstraintType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined);
146
+ const noConstraintType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined, undefined );
147
147
148
148
const anySignature = createSignature(undefined, undefined, undefined, emptyArray, anyType, /*typePredicate*/ undefined, 0, /*hasRestParameter*/ false, /*hasLiteralTypes*/ false);
149
149
const unknownSignature = createSignature(undefined, undefined, undefined, emptyArray, unknownType, /*typePredicate*/ undefined, 0, /*hasRestParameter*/ false, /*hasLiteralTypes*/ false);
@@ -1618,7 +1618,7 @@ namespace ts {
1618
1618
return <ResolvedType>type;
1619
1619
}
1620
1620
1621
- function createAnonymousType(symbol: Symbol, members: SymbolTable, callSignatures: Signature[], constructSignatures: Signature[], stringIndexInfo: IndexInfo, numberIndexInfo: IndexInfo, isObjectLiteral? : boolean): ResolvedType {
1621
+ function createAnonymousType(symbol: Symbol, members: SymbolTable, callSignatures: Signature[], constructSignatures: Signature[], stringIndexInfo: IndexInfo, numberIndexInfo: IndexInfo, isObjectLiteral: boolean): ResolvedType {
1622
1622
const t = createObjectType(TypeFlags.Anonymous, symbol);
1623
1623
if (isObjectLiteral) {
1624
1624
t.isObjectLiteral = true;
@@ -3176,7 +3176,7 @@ namespace ts {
3176
3176
symbol.bindingElement = e;
3177
3177
members[symbol.name] = symbol;
3178
3178
});
3179
- const result = createAnonymousType(undefined, members, emptyArray, emptyArray, undefined, undefined);
3179
+ const result = createAnonymousType(undefined, members, emptyArray, emptyArray, undefined, undefined, undefined );
3180
3180
if (includePatternInType) {
3181
3181
result.pattern = pattern;
3182
3182
}
@@ -12492,7 +12492,7 @@ namespace ts {
12492
12492
function getInferredClassType(symbol: Symbol) {
12493
12493
const links = getSymbolLinks(symbol);
12494
12494
if (!links.inferredClassType) {
12495
- links.inferredClassType = createAnonymousType(symbol, symbol.members, emptyArray, emptyArray, /*stringIndexType*/ undefined, /*numberIndexType*/ undefined);
12495
+ links.inferredClassType = createAnonymousType(symbol, symbol.members, emptyArray, emptyArray, /*stringIndexType*/ undefined, /*numberIndexType*/ undefined, /*isObjectLiteral*/ undefined );
12496
12496
}
12497
12497
return links.inferredClassType;
12498
12498
}
0 commit comments