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

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

Issue 838053003: suggest fields rather than synthetic getters (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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/services/completion/local_computer.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/local_computer.dart b/pkg/analysis_server/lib/src/services/completion/local_computer.dart
index 2e1aa9e20ce1df861a43fe4fd95f10fa62716948..280b32e0858576f4e43499c50d474e0d14b5b270 100644
--- a/pkg/analysis_server/lib/src/services/completion/local_computer.dart
+++ b/pkg/analysis_server/lib/src/services/completion/local_computer.dart
@@ -108,15 +108,15 @@ class _LocalVisitor extends LocalDeclarationVisitor {
bool isDeprecated = _isDeprecated(fieldDecl) || _isDeprecated(varDecl);
CompletionSuggestion suggestion = _addSuggestion(
varDecl.name,
- fieldDecl.fields.type,
+ null,
fieldDecl.parent,
isDeprecated);
if (suggestion != null) {
suggestion.element = _createElement(
- protocol.ElementKind.GETTER,
+ protocol.ElementKind.FIELD,
varDecl.name,
null,
- fieldDecl.fields.type,
+ null,
false,
isDeprecated);
}

Powered by Google App Engine
This is Rietveld 408576698