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

Unified Diff: pkg/analyzer/lib/src/dart/element/element.dart

Issue 2987983004: Issue 30034. Parse annotations for typedef(s) and resynthesize from Kernel in analyzer. (Closed)
Patch Set: Created 3 years, 5 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/analyzer/lib/src/dart/element/element.dart
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
index ebd1f63a559a4f28940bff5542e05217321b9137..d48a9ee56110ac7a5f57cf6966aa1d70b8680023 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -5027,6 +5027,10 @@ class FunctionTypeAliasElementImpl extends ElementImpl
@override
List<ElementAnnotation> get metadata {
+ if (_kernel != null) {
+ _metadata ??= enclosingUnit._kernelContext
+ .buildAnnotations(enclosingUnit, _kernel.annotations);
+ }
if (_unlinkedTypedef != null) {
return _metadata ??=
_buildAnnotations(enclosingUnit, _unlinkedTypedef.annotations);

Powered by Google App Engine
This is Rietveld 408576698