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

Side by Side Diff: pkg/compiler/lib/src/resolution/registry.dart

Issue 1916053003: Add toStructuredText to ConstantExpression and align method names with ConstantValue (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: dartfmt Created 4 years, 7 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 unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/class_hierarchy.dart ('k') | pkg/compiler/lib/src/resolution/resolution_result.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698