| 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 e8500aa5225ad6baa3cc1816e449c2b416879ed7..148b013867c104aa69b4de06b01aec3c8c72845b 100644
|
| --- a/pkg/analysis_server/test/services/completion/completion_test_util.dart
|
| +++ b/pkg/analysis_server/test/services/completion/completion_test_util.dart
|
| @@ -674,14 +674,19 @@ class AbstractSelectorSuggestionTest extends AbstractCompletionTest {
|
| void baz() { }''');
|
| addTestSource('''
|
| import '/libA.dart'
|
| + class B { }
|
| String bar() => true;
|
| void main() {expect(^)}''');
|
| computeFast();
|
| return computeFull(true).then((_) {
|
| assertSuggestLocalFunction('bar', 'String');
|
| assertSuggestImportedFunction('hasLength', 'bool');
|
| + assertSuggestImportedFunction('identical', 'bool');
|
| + assertSuggestLocalClass('B');
|
| + assertSuggestImportedClass('Object');
|
| assertNotSuggested('main');
|
| assertNotSuggested('baz');
|
| + assertNotSuggested('print');
|
| });
|
| }
|
|
|
| @@ -1596,6 +1601,23 @@ class AbstractSelectorSuggestionTest extends AbstractCompletionTest {
|
| });
|
| }
|
|
|
| + test_FormalParameterList() {
|
| + // FormalParameterList MethodDeclaration
|
| + addTestSource('''
|
| + foo() { }
|
| + void bar() { }
|
| + class A {a(^) { }}''');
|
| + computeFast();
|
| + return computeFull(true).then((_) {
|
| + assertSuggestLocalFunction('foo', null);
|
| + assertSuggestLocalMethod('a', 'A', null);
|
| + assertSuggestLocalClass('A');
|
| + assertSuggestImportedClass('String');
|
| + assertSuggestImportedFunction('identical', 'bool');
|
| + assertNotSuggested('bar');
|
| + });
|
| + }
|
| +
|
| test_MethodInvocation_no_semicolon() {
|
| // MethodInvocation ExpressionStatement Block
|
| addTestSource('''
|
|
|