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

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

Issue 1497773002: improve annotation argument completion - from https://github.com/dart-lang/sdk/pull/25099 (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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/arglist_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/test/services/completion/arglist_contributor_test.dart
diff --git a/pkg/analysis_server/test/services/completion/arglist_contributor_test.dart b/pkg/analysis_server/test/services/completion/arglist_contributor_test.dart
index 9bb8aa73506d61737fc2c7a94cd08b24752f1cfa..3ac4409621f7698e8ceefadf4d25ae6efcbe2ab3 100644
--- a/pkg/analysis_server/test/services/completion/arglist_contributor_test.dart
+++ b/pkg/analysis_server/test/services/completion/arglist_contributor_test.dart
@@ -91,7 +91,6 @@ class ArgListContributorTest extends AbstractCompletionTest {
}
test_Annotation_local_constructor_named_param() {
- //
addTestSource('''
class A { A({int one, String two: 'defaultValue'}) { } }
@A(^) main() { }''');
@@ -101,6 +100,16 @@ class A { A({int one, String two: 'defaultValue'}) { } }
});
}
+ test_Annotation_imported_constructor_named_param() {
+ addSource('/libA.dart', '''
+library libA; class A { A({int one, String two: 'defaultValue'}) { } }''');
+ addTestSource('import "/libA.dart"; @A(^) main() { }');
+ computeFast();
+ return computeFull((bool result) {
+ assertSuggestArguments(namedArguments: ['one','two']);
+ });
+ }
+
test_ArgumentList_getter() {
addTestSource('class A {int get foo => 7; main() {foo(^)}');
computeFast();
« no previous file with comments | « pkg/analysis_server/lib/src/services/completion/arglist_contributor.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698