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

Unified Diff: pkg/compiler/lib/src/types/types.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/type_mask.dart ('k') | pkg/compiler/lib/src/types/union_type_mask.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/types/types.dart
diff --git a/pkg/compiler/lib/src/types/types.dart b/pkg/compiler/lib/src/types/types.dart
index 665d144ecb6e59d72ecfdbc73818b7586793bc7b..fcaf7627309a8733cc0c70845b6b10ecd7cc8374 100644
--- a/pkg/compiler/lib/src/types/types.dart
+++ b/pkg/compiler/lib/src/types/types.dart
@@ -5,31 +5,23 @@
library types;
import '../common.dart';
-import '../common/backend_api.dart' show
- Backend;
-import '../common/tasks.dart' show
- CompilerTask;
-import '../compiler.dart' show
- Compiler;
-import '../constants/values.dart' show
- PrimitiveConstantValue;
+import '../common/backend_api.dart' show Backend;
+import '../common/tasks.dart' show CompilerTask;
+import '../compiler.dart' show Compiler;
+import '../constants/values.dart' show PrimitiveConstantValue;
import '../elements/elements.dart';
-import '../inferrer/type_graph_inferrer.dart' show
- TypeGraphInferrer;
+import '../inferrer/type_graph_inferrer.dart' show TypeGraphInferrer;
import '../tree/tree.dart';
import '../util/util.dart';
-import '../universe/selector.dart' show
- Selector;
-import '../universe/universe.dart' show
- ReceiverConstraint,
- UniverseSelectorConstraints,
- SelectorConstraintsStrategy;
-import '../world.dart' show
- ClassWorld,
- World;
-
-import 'abstract_value_domain.dart' show
- AbstractValue;
+import '../universe/selector.dart' show Selector;
+import '../universe/universe.dart'
+ show
+ ReceiverConstraint,
+ UniverseSelectorConstraints,
+ SelectorConstraintsStrategy;
+import '../world.dart' show ClassWorld, World;
+
+import 'abstract_value_domain.dart' show AbstractValue;
part 'container_type_mask.dart';
part 'dictionary_type_mask.dart';
@@ -284,12 +276,11 @@ class TypesTask extends CompilerTask {
bool better(TypeMask type1, TypeMask type2) {
if (type1 == null) return false;
if (type2 == null) {
- return (type1 != null) &&
- (type1 != dynamicType);
+ return (type1 != null) && (type1 != dynamicType);
}
return (type1 != type2) &&
- type2.containsMask(type1, classWorld) &&
- !type1.containsMask(type2, classWorld);
+ type2.containsMask(type1, classWorld) &&
+ !type1.containsMask(type2, classWorld);
}
/**
@@ -320,8 +311,7 @@ class TypesTask extends CompilerTask {
return dynamicType;
}
- TypeMask guaranteedType =
- typesInferrer.getReturnTypeOfElement(element);
+ TypeMask guaranteedType = typesInferrer.getReturnTypeOfElement(element);
return guaranteedType;
}
@@ -338,8 +328,7 @@ class TypesTask extends CompilerTask {
* Return the (inferred) guaranteed type of [selector] or null.
*/
TypeMask getGuaranteedTypeOfSelector(Selector selector, TypeMask mask) {
- TypeMask guaranteedType =
- typesInferrer.getTypeOfSelector(selector, mask);
+ TypeMask guaranteedType = typesInferrer.getTypeOfSelector(selector, mask);
return guaranteedType;
}
}
« no previous file with comments | « pkg/compiler/lib/src/types/type_mask.dart ('k') | pkg/compiler/lib/src/types/union_type_mask.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698