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

Unified Diff: pkg/front_end/lib/src/fasta/source/diet_listener.dart

Issue 2963703002: Add type inference of annotations. (Closed)
Patch Set: Created 3 years, 6 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/front_end/lib/src/fasta/source/diet_listener.dart
diff --git a/pkg/front_end/lib/src/fasta/source/diet_listener.dart b/pkg/front_end/lib/src/fasta/source/diet_listener.dart
index ef900d29806d4829d4d0c6f1edb2520bb0564112..adc96322035338edd4ae5cc237d6d1b37d1c5814 100644
--- a/pkg/front_end/lib/src/fasta/source/diet_listener.dart
+++ b/pkg/front_end/lib/src/fasta/source/diet_listener.dart
@@ -466,7 +466,7 @@ class DietListener extends StackListener {
StackListener listener = createListener(classBuilder, memberScope, false);
Parser parser = new Parser(listener);
parser.parseMetadataStar(metadata);
- List metadataConstants = listener.pop();
+ List metadataConstants = listener.finishMetadata();
Class cls = classBuilder.target;
metadataConstants.forEach(cls.addAnnotation);
}

Powered by Google App Engine
This is Rietveld 408576698