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

Unified Diff: pkg/analysis_server/lib/src/services/completion/optype.dart

Issue 978923006: add completions after final keyword (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 5 years, 10 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/analysis_server/test/services/completion/completion_test_util.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/completion/optype.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/optype.dart b/pkg/analysis_server/lib/src/services/completion/optype.dart
index 96b89bf64a0b232228f3fb580c7c3911bf9348db..a7c70531d6a994836503e5b0a3b1bdbd1a8067f5 100644
--- a/pkg/analysis_server/lib/src/services/completion/optype.dart
+++ b/pkg/analysis_server/lib/src/services/completion/optype.dart
@@ -508,6 +508,14 @@ class _OpTypeAstVisitor extends GeneralizingAstVisitor {
}
@override
+ void visitVariableDeclarationList(VariableDeclarationList node) {
+ if ((node.keyword == null || node.keyword.lexeme != 'var') &&
+ (node.type == null)) {
+ optype.includeTypeNameSuggestions = true;
+ }
+ }
+
+ @override
void visitVariableDeclarationStatement(VariableDeclarationStatement node) {}
@override
« no previous file with comments | « no previous file | pkg/analysis_server/test/services/completion/completion_test_util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698