Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: pkg/compiler/lib/src/types/value_type_mask.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/types/union_type_mask.dart ('k') | pkg/compiler/lib/src/universe/call_structure.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « pkg/compiler/lib/src/types/union_type_mask.dart ('k') | pkg/compiler/lib/src/universe/call_structure.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698