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

Unified Diff: pkg/compiler/lib/src/resolution/registry.dart

Issue 1901683002: Support deserialization of ResolutionImpact for members of unnamed mixin applications (Closed) Base URL: https://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/compiler.dart ('k') | pkg/compiler/lib/src/serialization/equivalence.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/registry.dart
diff --git a/pkg/compiler/lib/src/resolution/registry.dart b/pkg/compiler/lib/src/resolution/registry.dart
index ed6db6ca2a122896fe82b00638776d3baee6c695..d433ed24f51333d654cf2e7b74a6dff4ce13c3d6 100644
--- a/pkg/compiler/lib/src/resolution/registry.dart
+++ b/pkg/compiler/lib/src/resolution/registry.dart
@@ -20,7 +20,7 @@ import '../util/util.dart' show Setlet;
import '../universe/call_structure.dart' show CallStructure;
import '../universe/selector.dart' show Selector;
import '../universe/use.dart' show DynamicUse, StaticUse, TypeUse;
-import '../universe/world_impact.dart' show WorldImpactBuilder;
+import '../universe/world_impact.dart' show WorldImpact, WorldImpactBuilder;
import '../util/enumset.dart' show EnumSet;
import '../world.dart' show World;
@@ -104,7 +104,39 @@ class _ResolutionWorldImpact extends ResolutionImpact with WorldImpactBuilder {
: const <ConstantExpression>[];
}
- String toString() => '_ResolutionWorldImpact($name)';
+ String toString() {
+ StringBuffer sb = new StringBuffer();
+ sb.write('_ResolutionWorldImpact($name)');
+ WorldImpact.printOn(sb, this);
+ if (_features != null) {
+ sb.write('\n features:');
+ for (Feature feature in _features.iterable(Feature.values)) {
+ sb.write('\n $feature');
+ }
+ }
+ if (_mapLiterals != null) {
+ sb.write('\n map-literals:');
+ for (MapLiteralUse use in _mapLiterals) {
+ sb.write('\n $use');
+ }
+ }
+ if (_listLiterals != null) {
+ sb.write('\n list-literals:');
+ for (ListLiteralUse use in _listLiterals) {
+ sb.write('\n $use');
+ }
+ }
+ if (_constantLiterals != null) {
+ sb.write('\n const-literals:');
+ for (ConstantExpression constant in _constantLiterals) {
+ sb.write('\n ${constant.getText()}');
+ }
+ }
+ if (_constSymbolNames != null) {
+ sb.write('\n const-symbol-names: $_constSymbolNames');
+ }
+ return sb.toString();
+ }
}
/// [ResolutionRegistry] collects all resolution information. It stores node
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/serialization/equivalence.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698