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

Unified Diff: pkg/analyzer/lib/src/fasta/ast_builder.dart

Issue 2798603003: Implement parsing of metadata on local variables. (Closed)
Patch Set: Created 3 years, 8 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 | pkg/compiler/lib/src/parser/node_listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/fasta/ast_builder.dart
diff --git a/pkg/analyzer/lib/src/fasta/ast_builder.dart b/pkg/analyzer/lib/src/fasta/ast_builder.dart
index 5ccbd6283bd620dd3e0bb66eb0c2687cf763a088..51101e20b3e32670f7391d028bfcd2df4256f623 100644
--- a/pkg/analyzer/lib/src/fasta/ast_builder.dart
+++ b/pkg/analyzer/lib/src/fasta/ast_builder.dart
@@ -531,6 +531,8 @@ class AstBuilder extends ScopeListener {
List<VariableDeclaration> variables = popList(count);
TypeAnnotation type = pop();
pop(); // TODO(paulberry): Modifiers.
+ pop(); // Metadata.
+ pop(); // Comment.
push(ast.variableDeclarationStatement(
ast.variableDeclarationList(null, null, null, type, variables),
toAnalyzerToken(endToken)));
@@ -1850,6 +1852,11 @@ class AstBuilder extends ScopeListener {
var references = <CommentReference>[];
return ast.documentationComment(tokens, references);
}
+
+ @override
+ void debugEvent(String name) {
+ // printEvent(name);
+ }
scheglov 2017/04/04 15:57:30 Do we need this? Did you forget to remove this aft
ahe 2017/04/05 14:18:03 It's not needed, but keeping the method here makes
}
/// Data structure placed on the stack to represent a class body.
« no previous file with comments | « no previous file | pkg/compiler/lib/src/parser/node_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698