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

Unified Diff: pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart

Issue 1527613008: cleanup LocalLibraryContributor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge 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
« no previous file with comments | « pkg/analysis_server/lib/src/services/completion/dart_completion_cache.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/test/services/completion/dart/local_library_contributor_test.dart
diff --git a/pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart
index 8b2459f8344302b1360ff56a68c4b0b8cfafa8b8..71eda5c3d96c9d8396c47bc8375e0850446f3175 100644
--- a/pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart
@@ -79,6 +79,7 @@ class LocalLibraryContributorTest extends DartCompletionContributorTest {
part "$testFile";
class A { var a1; a2(){}}
var m;
+ typedef t1(int blue);
int af() {return 0;}''');
addTestSource('''
part of libA;
@@ -93,6 +94,8 @@ class LocalLibraryContributorTest extends DartCompletionContributorTest {
relevance: DART_RELEVANCE_LOCAL_FUNCTION);
assertSuggestTopLevelVar('m', null,
relevance: DART_RELEVANCE_LOCAL_TOP_LEVEL_VARIABLE);
+ assertSuggestFunctionTypeAlias('t1', null,
+ relevance: DART_RELEVANCE_LOCAL_FUNCTION);
assertNotSuggested('a1');
assertNotSuggested('a2');
// Suggested by LocalConstructorContributor
@@ -160,6 +163,7 @@ class LocalLibraryContributorTest extends DartCompletionContributorTest {
part of libA;
class B { var b1; b2(){}}
int bf() => 0;
+ typedef t1(int blue);
var n;''');
addTestSource('''
library libA;
@@ -177,6 +181,8 @@ class LocalLibraryContributorTest extends DartCompletionContributorTest {
relevance: DART_RELEVANCE_LOCAL_FUNCTION);
assertSuggestTopLevelVar('n', null,
relevance: DART_RELEVANCE_LOCAL_TOP_LEVEL_VARIABLE);
+ assertSuggestFunctionTypeAlias('t1', null,
+ relevance: DART_RELEVANCE_LOCAL_FUNCTION);
assertNotSuggested('b1');
assertNotSuggested('b2');
// Suggested by ConstructorContributor
« no previous file with comments | « pkg/analysis_server/lib/src/services/completion/dart_completion_cache.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698