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

Unified Diff: pkg/analysis_server/lib/src/status/ast_writer.dart

Issue 1493893006: Include tokens of Function/MethodDeclaration into AST view. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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/analysis_server/lib/src/status/ast_writer.dart
diff --git a/pkg/analysis_server/lib/src/status/ast_writer.dart b/pkg/analysis_server/lib/src/status/ast_writer.dart
index 6cb30db6baf721c9669f3e9f181016f2d09ac37f..5488a594cb4c732e8eac2e386ddaae4562dbdea0 100644
--- a/pkg/analysis_server/lib/src/status/ast_writer.dart
+++ b/pkg/analysis_server/lib/src/status/ast_writer.dart
@@ -50,6 +50,9 @@ class AstWriter extends UnifyingAstVisitor with TreeWriter {
} else if (node is ExportDirective) {
properties['element'] = node.element;
properties['source'] = node.source;
+ } else if (node is FunctionDeclaration) {
+ properties['external keyword'] = node.externalKeyword;
+ properties['property keyword'] = node.propertyKeyword;
} else if (node is FunctionExpressionInvocation) {
properties['static element'] = node.staticElement;
properties['static type'] = node.staticType;
@@ -60,6 +63,11 @@ class AstWriter extends UnifyingAstVisitor with TreeWriter {
properties['source'] = node.source;
} else if (node is LibraryDirective) {
properties['element'] = node.element;
+ } else if (node is MethodDeclaration) {
+ properties['external keyword'] = node.externalKeyword;
+ properties['modifier keyword'] = node.modifierKeyword;
+ properties['operator keyword'] = node.operatorKeyword;
+ properties['property keyword'] = node.propertyKeyword;
} else if (node is PartDirective) {
properties['element'] = node.element;
properties['source'] = node.source;
« 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