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

Unified Diff: pkg/compiler/lib/src/patch_parser.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/native/enqueue.dart ('k') | pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/patch_parser.dart
diff --git a/pkg/compiler/lib/src/patch_parser.dart b/pkg/compiler/lib/src/patch_parser.dart
index 1f03ad4d60e443144fad3b29d1d0d14d141158a5..6957cecf4280d219768b4d5dac82dbeb65d9b4cb 100644
--- a/pkg/compiler/lib/src/patch_parser.dart
+++ b/pkg/compiler/lib/src/patch_parser.dart
@@ -362,8 +362,8 @@ abstract class EagerAnnotationHandler<T> {
/// Checks [element] for metadata matching the [handler]. Return a non-null
/// annotation marker matching metadata was found.
static checkAnnotation(Compiler compiler,
- Element element,
- EagerAnnotationHandler handler) {
+ Element element,
+ EagerAnnotationHandler handler) {
for (Link<MetadataAnnotation> link = element.metadata;
!link.isEmpty;
link = link.tail) {
@@ -375,7 +375,8 @@ abstract class EagerAnnotationHandler<T> {
compiler.enqueuer.resolution.addDeferredAction(element, () {
annotation.ensureResolved(compiler);
handler.validate(
- compiler, element, annotation, annotation.constant.value);
+ compiler, element, annotation,
+ compiler.constants.getConstantValue(annotation.constant));
});
return result;
}
« no previous file with comments | « pkg/compiler/lib/src/native/enqueue.dart ('k') | pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698