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

Unified Diff: pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart

Issue 1148343004: Remove ConstantExpression.value (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Update comments. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/mirrors/dart2js_member_mirrors.dart ('k') | pkg/compiler/lib/src/mirrors_used.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart
diff --git a/pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart b/pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart
index 86c95ccf26d7278e7ca0574aab25ee5e021db4a0..51ab110822a6f9bfe708270b64ed7876c4da2064 100644
--- a/pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart
+++ b/pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart
@@ -220,7 +220,9 @@ abstract class Dart2JsElementMirror extends Dart2JsDeclarationMirror {
mirrorSystem.compiler.commentMap[metadata.beginToken]);
metadata.ensureResolved(mirrorSystem.compiler);
_metadata.add(_convertConstantToInstanceMirror(
- mirrorSystem, metadata.constant, metadata.constant.value));
+ mirrorSystem, metadata.constant,
+ mirrorSystem.compiler.constants.getConstantValue(
+ metadata.constant)));
}
_appendCommentTokens(mirrorSystem.compiler.commentMap[getBeginToken()]);
}
« no previous file with comments | « pkg/compiler/lib/src/mirrors/dart2js_member_mirrors.dart ('k') | pkg/compiler/lib/src/mirrors_used.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698