Index: pkg/compiler/lib/src/types/value_type_mask.dart |
diff --git a/pkg/compiler/lib/src/types/value_type_mask.dart b/pkg/compiler/lib/src/types/value_type_mask.dart |
index ffe1e3bc64f7ece9cca14d1caf4973b22dd0c8d2..ba40f24f026c2e2099b10dcf5b992e02b53417cb 100644 |
--- a/pkg/compiler/lib/src/types/value_type_mask.dart |
+++ b/pkg/compiler/lib/src/types/value_type_mask.dart |
@@ -11,9 +11,7 @@ class ValueTypeMask extends ForwardingTypeMask { |
ValueTypeMask(this.forwardTo, this.value); |
TypeMask nullable() { |
- return isNullable |
- ? this |
- : new ValueTypeMask(forwardTo.nullable(), value); |
+ return isNullable ? this : new ValueTypeMask(forwardTo.nullable(), value); |
} |
TypeMask nonNullable() { |
@@ -32,12 +30,10 @@ class ValueTypeMask extends ForwardingTypeMask { |
TypeMask intersection(TypeMask other, ClassWorld classWorld) { |
TypeMask forwardIntersection = forwardTo.intersection(other, classWorld); |
if (forwardIntersection.isEmptyOrNull) return forwardIntersection; |
- return forwardIntersection.isNullable |
- ? nullable() |
- : nonNullable(); |
+ return forwardIntersection.isNullable ? nullable() : nonNullable(); |
} |
- bool operator==(other) => super == other; |
+ bool operator ==(other) => super == other; |
int get hashCode { |
return computeHashCode(value, isNullable, forwardTo); |