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

Side by Side 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: Review tweaks. Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.services.completion.contributor.dart.constructor; 5 library test.services.completion.contributor.dart.constructor;
6 6
7 import 'package:analysis_server/plugin/protocol/protocol.dart' as protocol 7 import 'package:analysis_server/plugin/protocol/protocol.dart' as protocol
8 show Element, ElementKind; 8 show Element, ElementKind;
9 import 'package:analysis_server/plugin/protocol/protocol.dart' 9 import 'package:analysis_server/plugin/protocol/protocol.dart'
10 hide Element, ElementKind; 10 hide Element, ElementKind;
(...skipping 4135 matching lines...) Expand 10 before | Expand all | Expand 10 after
4146 assertNotSuggested('x'); 4146 assertNotSuggested('x');
4147 assertNotSuggested('e'); 4147 assertNotSuggested('e');
4148 } 4148 }
4149 } 4149 }
4150 4150
4151 @reflectiveTest 4151 @reflectiveTest
4152 class LocalConstructorContributorTest_Driver 4152 class LocalConstructorContributorTest_Driver
4153 extends LocalConstructorContributorTest { 4153 extends LocalConstructorContributorTest {
4154 @override 4154 @override
4155 bool get enableNewAnalysisDriver => true; 4155 bool get enableNewAnalysisDriver => true;
4156
4157 /// Sanity check. Permutations tested in local_ref_contributor.
4158 test_ArgDefaults_cons_with_required_named() async {
4159 addMetaPackageSource();
4160 addTestSource('''
4161 import 'package:meta/meta.dart';
4162
4163 class A {
4164 A(int bar, {bool boo, @required int baz});
4165 baz() {
4166 new A^
4167 }
4168 }''');
4169 await computeSuggestions();
4170
4171 assertSuggestConstructor('A',
4172 defaultArgListString: 'bar, baz: null');
4173 }
4156 } 4174 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698