Skip to content

Commit 663ee44

Browse files
committed
Rename isObjectLiteralPatternWithComputedProperties
1 parent 99cbd1f commit 663ee44

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/compiler/checker.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3179,7 +3179,7 @@ namespace ts {
31793179
result.pattern = pattern;
31803180
}
31813181
if (hasComputedProperties) {
3182-
result.inObjectLiteralPatternWithComputedProperties = hasComputedProperties;
3182+
result.isObjectLiteralPatternWithComputedProperties = hasComputedProperties;
31833183
}
31843184
return result;
31853185
}
@@ -6650,7 +6650,7 @@ namespace ts {
66506650

66516651
function hasExcessProperties(source: FreshObjectLiteralType, target: Type, reportErrors: boolean): boolean {
66526652
if (maybeTypeOfKind(target, TypeFlags.ObjectType) &&
6653-
(!(target.flags & TypeFlags.ObjectType) || !(target as ObjectType).inObjectLiteralPatternWithComputedProperties)) {
6653+
(!(target.flags & TypeFlags.ObjectType) || !(target as ObjectType).isObjectLiteralPatternWithComputedProperties)) {
66546654
for (const prop of getPropertiesOfObjectType(source)) {
66556655
if (!isKnownProperty(target, prop.name)) {
66566656
if (reportErrors) {
@@ -10311,7 +10311,7 @@ namespace ts {
1031110311
}
1031210312
}
1031310313
else if (contextualTypeHasPattern &&
10314-
!(contextualType.flags & TypeFlags.ObjectType && (contextualType as ObjectType).inObjectLiteralPatternWithComputedProperties)) {
10314+
!(contextualType.flags & TypeFlags.ObjectType && (contextualType as ObjectType).isObjectLiteralPatternWithComputedProperties)) {
1031510315
// If object literal is contextually typed by the implied type of a binding pattern, and if the
1031610316
// binding pattern specifies a default value for the property, make the property optional.
1031710317
const impliedProp = getPropertyOfType(contextualType, member.name);
@@ -10378,7 +10378,7 @@ namespace ts {
1037810378
const freshObjectLiteralFlag = compilerOptions.suppressExcessPropertyErrors ? 0 : TypeFlags.FreshLiteral;
1037910379
result.flags |= TypeFlags.ObjectLiteral | TypeFlags.ContainsObjectLiteral | freshObjectLiteralFlag | (typeFlags & TypeFlags.PropagatingFlags);
1038010380
if (patternWithComputedProperties) {
10381-
result.inObjectLiteralPatternWithComputedProperties = patternWithComputedProperties;
10381+
result.isObjectLiteralPatternWithComputedProperties = patternWithComputedProperties;
1038210382
}
1038310383
if (inDestructuringPattern) {
1038410384
result.pattern = node;

src/compiler/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2462,7 +2462,7 @@ namespace ts {
24622462

24632463
// Object types (TypeFlags.ObjectType)
24642464
export interface ObjectType extends Type {
2465-
inObjectLiteralPatternWithComputedProperties?: boolean;
2465+
isObjectLiteralPatternWithComputedProperties?: boolean;
24662466
}
24672467

24682468
// Class and interface types (TypeFlags.Class and TypeFlags.Interface)

0 commit comments

Comments
 (0)