Index: pkg/compiler/lib/src/universe/world_impact.dart |
diff --git a/pkg/compiler/lib/src/universe/world_impact.dart b/pkg/compiler/lib/src/universe/world_impact.dart |
index f6bc6665b0137356c716271cda382f3f4f095b3a..45dcba579dc1ebaa7c2f58bada1b20d0947faf7d 100644 |
--- a/pkg/compiler/lib/src/universe/world_impact.dart |
+++ b/pkg/compiler/lib/src/universe/world_impact.dart |
@@ -4,23 +4,16 @@ |
library dart2js.universe.world_impact; |
-import '../elements/elements.dart' show |
- Element, |
- LocalFunctionElement, |
- MethodElement; |
-import '../util/util.dart' show |
- Setlet; |
- |
-import 'use.dart' show |
- DynamicUse, |
- StaticUse, |
- TypeUse; |
+import '../elements/elements.dart' |
+ show Element, LocalFunctionElement, MethodElement; |
+import '../util/util.dart' show Setlet; |
+ |
+import 'use.dart' show DynamicUse, StaticUse, TypeUse; |
class WorldImpact { |
const WorldImpact(); |
- Iterable<DynamicUse> get dynamicUses => |
- const <DynamicUse>[]; |
+ Iterable<DynamicUse> get dynamicUses => const <DynamicUse>[]; |
Iterable<StaticUse> get staticUses => const <StaticUse>[]; |
@@ -75,8 +68,7 @@ class WorldImpactBuilder { |
} |
Iterable<DynamicUse> get dynamicUses { |
- return _dynamicUses != null |
- ? _dynamicUses : const <DynamicUse>[]; |
+ return _dynamicUses != null ? _dynamicUses : const <DynamicUse>[]; |
} |
void registerTypeUse(TypeUse typeUse) { |
@@ -88,8 +80,7 @@ class WorldImpactBuilder { |
} |
Iterable<TypeUse> get typeUses { |
- return _typeUses != null |
- ? _typeUses : const <TypeUse>[]; |
+ return _typeUses != null ? _typeUses : const <TypeUse>[]; |
} |
void registerStaticUse(StaticUse staticUse) { |
@@ -118,8 +109,7 @@ class TransformedWorldImpact implements WorldImpact { |
@override |
Iterable<DynamicUse> get dynamicUses { |
- return _dynamicUses != null |
- ? _dynamicUses : worldImpact.dynamicUses; |
+ return _dynamicUses != null ? _dynamicUses : worldImpact.dynamicUses; |
} |
void registerDynamicUse(DynamicUse dynamicUse) { |
@@ -140,8 +130,7 @@ class TransformedWorldImpact implements WorldImpact { |
@override |
Iterable<TypeUse> get typeUses { |
- return _typeUses != null |
- ? _typeUses : worldImpact.typeUses; |
+ return _typeUses != null ? _typeUses : worldImpact.typeUses; |
} |
void registerStaticUse(StaticUse staticUse) { |
@@ -185,10 +174,8 @@ class ImpactStrategy { |
const ImpactStrategy(); |
/// Applies [impact] to [visitor] for the [impactUseCase] of [element]. |
- void visitImpact(Element element, |
- WorldImpact impact, |
- WorldImpactVisitor visitor, |
- ImpactUseCase impactUseCase) { |
+ void visitImpact(Element element, WorldImpact impact, |
+ WorldImpactVisitor visitor, ImpactUseCase impactUseCase) { |
// Apply unconditionally. |
impact.apply(visitor); |
} |
@@ -217,8 +204,8 @@ class WorldImpactVisitorImpl implements WorldImpactVisitor { |
WorldImpactVisitorImpl( |
{VisitUse<StaticUse> visitStaticUse, |
- VisitUse<DynamicUse> visitDynamicUse, |
- VisitUse<TypeUse> visitTypeUse}) |
+ VisitUse<DynamicUse> visitDynamicUse, |
+ VisitUse<TypeUse> visitTypeUse}) |
: _visitStaticUse = visitStaticUse, |
_visitDynamicUse = visitDynamicUse, |
_visitTypeUse = visitTypeUse; |
@@ -244,4 +231,3 @@ class WorldImpactVisitorImpl implements WorldImpactVisitor { |
} |
} |
} |
- |