| 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
|
|
|