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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/interceptor_emitter.dart

Issue 614993002: Rename Constant to ConstantValue and ConstExp to ConstantExpression. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 3 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
Index: sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/interceptor_emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/interceptor_emitter.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/interceptor_emitter.dart
index d2b744cbdb7996852e0425c3391c94f113a3f301..f643acfc640bcedbcd3a6633ccd471238cf144a5 100644
--- a/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/interceptor_emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/interceptor_emitter.dart
@@ -391,11 +391,11 @@ class InterceptorEmitter extends CodeEmitterHelper {
List<jsAst.Expression> elements = <jsAst.Expression>[];
JavaScriptConstantCompiler handler = backend.constants;
- List<Constant> constants =
+ List<ConstantValue> constants =
handler.getConstantsForEmission(emitter.compareConstants);
- for (Constant constant in constants) {
- if (constant is TypeConstant) {
- TypeConstant typeConstant = constant;
+ for (ConstantValue constant in constants) {
+ if (constant is TypeConstantValue) {
+ TypeConstantValue typeConstant = constant;
Element element = typeConstant.representedType.element;
if (element is ClassElement) {
ClassElement classElement = element;

Powered by Google App Engine
This is Rietveld 408576698