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

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

Issue 643153003: add imported inherited member suggestions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 6 years, 2 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 | « pkg/analysis_server/lib/src/services/completion/suggestion_builder.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/completion_test_util.dart
diff --git a/pkg/analysis_server/test/services/completion/completion_test_util.dart b/pkg/analysis_server/test/services/completion/completion_test_util.dart
index bf65115d1f1687f1cc2c8aac2bb8fc342904ced1..1174254c4019d5129175f85ba2e3c6549481c380 100644
--- a/pkg/analysis_server/test/services/completion/completion_test_util.dart
+++ b/pkg/analysis_server/test/services/completion/completion_test_util.dart
@@ -679,6 +679,32 @@ class AbstractSelectorSuggestionTest extends AbstractCompletionTest {
});
}
+ test_Block_inherited_imported() {
+ // Block BlockFunctionBody MethodDeclaration ClassDeclaration
+ addSource('/testB.dart', '''
+ lib B;
+ class F { var f1; f2() { } }
+ class E extends F { var e1; e2() { } }
+ class I { int i1; i2() { } }
+ class M { var m1; int m2() { } }''');
+ addTestSource('''
+ import "/testB.dart";
+ class A extends E implements I with M {a() {^}}''');
+ computeFast();
+ return computeFull(true).then((_) {
+ assertSuggestImportedGetter('e1', null);
+ assertSuggestImportedGetter('f1', null);
+ assertSuggestImportedGetter('i1', 'int');
+ assertSuggestImportedGetter('m1', null);
+ //TODO (danrubel) include declared type in suggestion
+ assertSuggestImportedMethod('e2', null, null);
+ assertSuggestImportedMethod('f2', null, null);
+ assertSuggestImportedMethod('i2', null, null);
+ //assertSuggestImportedMethod('m2', null, null);
+ assertNotSuggested('==');
+ });
+ }
+
test_Block_inherited_local() {
// Block BlockFunctionBody MethodDeclaration ClassDeclaration
addTestSource('''
« no previous file with comments | « pkg/analysis_server/lib/src/services/completion/suggestion_builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698