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

Unified Diff: pkg/compiler/lib/src/kernel/kernel.dart

Issue 2874973003: Add more equivalence tests for ElementEnvironment (Closed)
Patch Set: Created 3 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
Index: pkg/compiler/lib/src/kernel/kernel.dart
diff --git a/pkg/compiler/lib/src/kernel/kernel.dart b/pkg/compiler/lib/src/kernel/kernel.dart
index f8bf39f66179f83d8590563775e31b6b393c5863..4e45653c41125ec58d0c7377daf73b4f5756562b 100644
--- a/pkg/compiler/lib/src/kernel/kernel.dart
+++ b/pkg/compiler/lib/src/kernel/kernel.dart
@@ -254,7 +254,7 @@ class Kernel {
});
});
addWork(cls.declaration, () {
- for (MetadataAnnotation metadata in cls.declaration.metadata) {
+ for (MetadataAnnotation metadata in cls.implementation.metadata) {
classNode.addAnnotation(
const ConstantVisitor().visit(metadata.constant, this));
}
@@ -476,7 +476,7 @@ class Kernel {
});
});
addWork(function.declaration, () {
- for (MetadataAnnotation metadata in function.declaration.metadata) {
+ for (MetadataAnnotation metadata in function.implementation.metadata) {
member.addAnnotation(
const ConstantVisitor().visit(metadata.constant, this));
}
@@ -552,7 +552,7 @@ class Kernel {
}
});
addWork(field.declaration, () {
- for (MetadataAnnotation metadata in field.declaration.metadata) {
+ for (MetadataAnnotation metadata in field.implementation.metadata) {
fieldNode.addAnnotation(
const ConstantVisitor().visit(metadata.constant, this));
}

Powered by Google App Engine
This is Rietveld 408576698