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

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

Issue 2622303006: Reapply "Add support for generic function type syntax, part 1" (Closed)
Patch Set: Created 3 years, 11 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/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 1b292d64d6b765cbe5e6c58f3d40bed55d0c15d9..b32886d2b4907e2b90030fb91ba07f7020627d94 100644
--- a/pkg/analysis_server/lib/src/status/ast_writer.dart
+++ b/pkg/analysis_server/lib/src/status/ast_writer.dart
@@ -141,7 +141,7 @@ class AstWriter extends UnifyingAstVisitor with TreeWriter {
properties['value'] = node.value;
} else if (node is SuperConstructorInvocation) {
properties['static element'] = node.staticElement;
- } else if (node is TypeName) {
+ } else if (node is TypeAnnotation) {
properties['type'] = node.type;
} else if (node is VariableDeclarationList) {
properties['keyword'] = node.keyword;
@@ -195,7 +195,7 @@ class AstWriter extends UnifyingAstVisitor with TreeWriter {
return node.name.name;
} else if (node is TopLevelVariableDeclaration) {
return _getNames(node.variables);
- } else if (node is TypeName) {
+ } else if (node is TypeAnnotation) {
return node.toSource();
} else if (node is TypeParameter) {
return node.name.name;

Powered by Google App Engine
This is Rietveld 408576698