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

Unified Diff: pkg/analyzer/lib/src/generated/ast.dart

Issue 1287413003: Add forwarding for DefaultFormalParameter metadata (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/ast.dart
diff --git a/pkg/analyzer/lib/src/generated/ast.dart b/pkg/analyzer/lib/src/generated/ast.dart
index ca83bdd39446d9c4cd39b28aad47853ec22ff615..7940662d36610f9447dc5ea6ba2708aeabaa117a 100644
--- a/pkg/analyzer/lib/src/generated/ast.dart
+++ b/pkg/analyzer/lib/src/generated/ast.dart
@@ -6021,6 +6021,9 @@ class DefaultFormalParameter extends FormalParameter {
@override
bool get isFinal => _parameter != null && _parameter.isFinal;
+ @override
+ NodeList<Annotation> get metadata => _parameter.metadata;
+
/**
* Return the formal parameter with which the default value is associated.
*/
@@ -7525,6 +7528,11 @@ abstract class FormalParameter extends AstNode {
* Return the kind of this parameter.
*/
ParameterKind get kind;
+
+ /**
+ * Return the annotations associated with this parameter.
+ */
+ NodeList<Annotation> get metadata;
}
/**
@@ -13731,9 +13739,7 @@ abstract class NormalFormalParameter extends FormalParameter {
return ParameterKind.REQUIRED;
}
- /**
- * Return the annotations associated with this parameter.
- */
+ @override
NodeList<Annotation> get metadata => _metadata;
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698