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

Unified Diff: pkg/compiler/lib/src/universe/world_impact.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/universe/use.dart ('k') | pkg/compiler/lib/src/use_unused_api.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
}
}
}
-
« no previous file with comments | « pkg/compiler/lib/src/universe/use.dart ('k') | pkg/compiler/lib/src/use_unused_api.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698