@@ -299,6 +299,7 @@ namespace ts {
299
299
let instantiationCount = 0;
300
300
let instantiationDepth = 0;
301
301
let constraintDepth = 0;
302
+ let mapperIdCount = 0;
302
303
let currentNode: Node | undefined;
303
304
304
305
const emptySymbols = createSymbolTable();
@@ -6545,7 +6546,7 @@ namespace ts {
6545
6546
if (type.flags & TypeFlags.Substitution) {
6546
6547
// Trigger resolution of any deferred substiutes that are directly assigned to the alias so they
6547
6548
// are marked as circular and the alias becomes `any`
6548
- void (type as SubstitutionType).substitute;
6549
+ void (type as SubstitutionType).substitute; // tslint:disable-line:no-unused-expression
6549
6550
}
6550
6551
6551
6552
if (popTypeResolution()) {
@@ -9166,7 +9167,7 @@ namespace ts {
9166
9167
const links = getNodeLinks(node);
9167
9168
let cb = links.substituteCallback;
9168
9169
if (!cb) {
9169
- cb = links.substituteCallback = () => getTypeFromTypeAliasReferenceWorker(node, symbol, typeArguments);
9170
+ cb = links.substituteCallback = () => getTypeFromTypeAliasReferenceWorker(node, symbol, typeArguments);
9170
9171
}
9171
9172
return getDeferredSubstitutionType(cb, symbol, typeArguments);
9172
9173
}
@@ -11699,9 +11700,8 @@ namespace ts {
11699
11700
return result;
11700
11701
}
11701
11702
11702
- var mapperIdCount: number;
11703
11703
function getTypeMapperId(mapper: TypeMapper) {
11704
- return mapper.id || (mapper.id = (mapperIdCount = (mapperIdCount || 0) + 1) );
11704
+ return mapper.id || (mapper.id = ++mapperIdCount );
11705
11705
}
11706
11706
11707
11707
function instantiateTypeWorker(type: Type, mapper: TypeMapper): Type {
0 commit comments