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

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

Issue 2565633002: Reorganize InheritedRefenenceContributor to serve angular completion (Closed)
Patch Set: Fix bad merge. Tests passing. Created 4 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
« no previous file with comments | « pkg/analysis_server/lib/src/services/completion/dart/inherited_reference_contributor.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/completion/dart/optype.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/dart/optype.dart b/pkg/analysis_server/lib/src/services/completion/dart/optype.dart
index 0591ae2c28679e1453025b223c5c99d5bf8acb9e..da0e6a03ef924391f368ac76c93b13d8bb24bead 100644
--- a/pkg/analysis_server/lib/src/services/completion/dart/optype.dart
+++ b/pkg/analysis_server/lib/src/services/completion/dart/optype.dart
@@ -135,6 +135,17 @@ class OpType {
!includeVoidReturnSuggestions;
/**
+ * Return `true` if free standing identifiers should be suggested
+ */
+ bool get includeIdentifiers {
+ return !isPrefixed &&
+ (includeReturnValueSuggestions ||
+ includeTypeNameSuggestions ||
+ includeVoidReturnSuggestions ||
+ includeConstructorSuggestions);
+ }
+
+ /**
* Indicate whether only type names should be suggested
*/
bool get includeOnlyTypeNameSuggestions =>
« no previous file with comments | « pkg/analysis_server/lib/src/services/completion/dart/inherited_reference_contributor.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698