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

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

Issue 1533613004: extract InheritedReferenceContributor from imported reference contributor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: include new tests in suite 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
Index: pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart b/pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart
index 3d56c873792562172c17ea61c010e2e8b912eb1f..9199091a64b36e570f34386420a8f23112a61bf3 100644
--- a/pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart
+++ b/pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart
@@ -67,7 +67,8 @@ class _LocalVisitor extends LocalDeclarationVisitor {
bool targetIsFunctionalArgument;
_LocalVisitor(this.request, int offset, this.optype) : super(offset) {
- includeLocalInheritedTypes = !optype.inStaticMethodBody;
+ // Suggestions for inherited members provided by InheritedReferenceContributor
+ includeLocalInheritedTypes = false; // !optype.inStaticMethodBody;
targetIsFunctionalArgument = request.target.isFunctionalArgument();
// If user typed identifier starting with '_'

Powered by Google App Engine
This is Rietveld 408576698