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

Side by Side Diff: pkg/analysis_server/test/services/completion/dart/imported_reference_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.imported_ref; 5 library test.services.completion.contributor.dart.imported_ref;
6 6
7 import 'package:analysis_server/plugin/protocol/protocol.dart' 7 import 'package:analysis_server/plugin/protocol/protocol.dart'
8 hide Element, ElementKind; 8 hide Element, ElementKind;
9 import 'package:analysis_server/src/protocol_server.dart'; 9 import 'package:analysis_server/src/protocol_server.dart';
10 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart'; 10 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart';
(...skipping 4503 matching lines...) Expand 10 before | Expand all | Expand 10 after
4514 @reflectiveTest 4514 @reflectiveTest
4515 class ImportedReferenceContributorTest_Driver 4515 class ImportedReferenceContributorTest_Driver
4516 extends ImportedReferenceContributorTest { 4516 extends ImportedReferenceContributorTest {
4517 @override 4517 @override
4518 bool get enableNewAnalysisDriver => true; 4518 bool get enableNewAnalysisDriver => true;
4519 4519
4520 @override 4520 @override
4521 test_enum_deprecated() { 4521 test_enum_deprecated() {
4522 // TODO(scheglov) remove it? 4522 // TODO(scheglov) remove it?
4523 } 4523 }
4524
4525 /// Sanity check. Permutations tested in local_ref_contributor.
4526 test_ArgDefaults_function_with_required_named() async {
4527 addMetaPackageSource();
4528
4529 resolveSource(
4530 '/testB.dart',
4531 '''
4532 lib B;
4533 import 'package:meta/meta.dart';
4534
4535 bool foo(int bar, {bool boo, @required int baz}) => false;
4536 ''');
4537
4538 addTestSource('''
4539 import "/testB.dart";
4540
4541 void main() {f^}''');
4542 await computeSuggestions();
4543
4544 assertSuggestFunction('foo', 'bool',
4545 defaultArgListString: 'bar, baz: null');
4546 }
4524 } 4547 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698