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

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

Issue 2728653004: Default arg support continued (flutter-intellij#553). (Closed)
Patch Set: Created 3 years, 10 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
Index: pkg/analysis_server/test/services/completion/dart/local_constructor_contributor_test.dart
diff --git a/pkg/analysis_server/test/services/completion/dart/local_constructor_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/local_constructor_contributor_test.dart
index 7ee4457f376a4b4ac74a4633ce793add11779cc9..5443ccebd14eca7ced47ae598a46f137ed9dfd68 100644
--- a/pkg/analysis_server/test/services/completion/dart/local_constructor_contributor_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/local_constructor_contributor_test.dart
@@ -4153,4 +4153,22 @@ class LocalConstructorContributorTest_Driver
extends LocalConstructorContributorTest {
@override
bool get enableNewAnalysisDriver => true;
+
+ // Sanity check. Permutations tested in local_ref_contributor.
scheglov 2017/03/01 21:43:54 ///
pquitslund 2017/03/01 22:59:25 Done.
+ test_ArgDefaults_cons_with_required_named() async {
+ addMetaPackageSource();
+ addTestSource('''
+import 'package:meta/meta.dart';
+
+class A {
+ A(int bar, {bool boo, @required int baz});
+ baz() {
+ new A^
+ }
+}''');
+ await computeSuggestions();
+
+ assertSuggestConstructor('A',
+ defaultArgListString: 'bar, baz: null');
+ }
}

Powered by Google App Engine
This is Rietveld 408576698