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

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

Issue 1097973002: suggest types in var declaration when partial type name supplied (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 5 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/analysis_server/test/completion_test.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 e9391126764d213054b38285a131bc9c4ad50af5..c9d88bcdf847e12d82a9b32e79e9f25549782cd7 100644
--- a/pkg/analysis_server/lib/src/services/completion/optype.dart
+++ b/pkg/analysis_server/lib/src/services/completion/optype.dart
@@ -605,7 +605,7 @@ class _OpTypeAstVisitor extends GeneralizingAstVisitor {
@override
void visitVariableDeclarationList(VariableDeclarationList node) {
if ((node.keyword == null || node.keyword.lexeme != 'var') &&
- (node.type == null)) {
+ (node.type == null || identical(entity, node.type))) {
optype.includeTypeNameSuggestions = true;
}
}
« no previous file with comments | « no previous file | pkg/analysis_server/test/completion_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698