| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library dart2js.resolution.registry; | 5 library dart2js.resolution.registry; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/backend_api.dart' show Backend, ForeignResolver; | 8 import '../common/backend_api.dart' show Backend, ForeignResolver; |
| 9 import '../common/resolution.dart' | 9 import '../common/resolution.dart' |
| 10 show Feature, ListLiteralUse, MapLiteralUse, ResolutionImpact; | 10 show Feature, ListLiteralUse, MapLiteralUse, ResolutionImpact; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 } | 122 } |
| 123 if (_listLiterals != null) { | 123 if (_listLiterals != null) { |
| 124 sb.write('\n list-literals:'); | 124 sb.write('\n list-literals:'); |
| 125 for (ListLiteralUse use in _listLiterals) { | 125 for (ListLiteralUse use in _listLiterals) { |
| 126 sb.write('\n $use'); | 126 sb.write('\n $use'); |
| 127 } | 127 } |
| 128 } | 128 } |
| 129 if (_constantLiterals != null) { | 129 if (_constantLiterals != null) { |
| 130 sb.write('\n const-literals:'); | 130 sb.write('\n const-literals:'); |
| 131 for (ConstantExpression constant in _constantLiterals) { | 131 for (ConstantExpression constant in _constantLiterals) { |
| 132 sb.write('\n ${constant.getText()}'); | 132 sb.write('\n ${constant.toDartText()}'); |
| 133 } | 133 } |
| 134 } | 134 } |
| 135 if (_constSymbolNames != null) { | 135 if (_constSymbolNames != null) { |
| 136 sb.write('\n const-symbol-names: $_constSymbolNames'); | 136 sb.write('\n const-symbol-names: $_constSymbolNames'); |
| 137 } | 137 } |
| 138 return sb.toString(); | 138 return sb.toString(); |
| 139 } | 139 } |
| 140 } | 140 } |
| 141 | 141 |
| 142 /// [ResolutionRegistry] collects all resolution information. It stores node | 142 /// [ResolutionRegistry] collects all resolution information. It stores node |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 @override | 425 @override |
| 426 void registerInstantiatedType(InterfaceType type) { | 426 void registerInstantiatedType(InterfaceType type) { |
| 427 registry.registerInstantiation(type); | 427 registry.registerInstantiation(type); |
| 428 } | 428 } |
| 429 | 429 |
| 430 @override | 430 @override |
| 431 DartType resolveTypeFromString(Node node, String typeName) { | 431 DartType resolveTypeFromString(Node node, String typeName) { |
| 432 return visitor.resolveTypeFromString(node, typeName); | 432 return visitor.resolveTypeFromString(node, typeName); |
| 433 } | 433 } |
| 434 } | 434 } |
| OLD | NEW |