OLD | NEW |
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.util; | 5 library test.services.completion.util; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analysis_server/plugin/protocol/protocol.dart' as protocol | 9 import 'package:analysis_server/plugin/protocol/protocol.dart' as protocol |
10 show Element, ElementKind; | 10 show Element, ElementKind; |
(...skipping 3753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3764 return computeFull((bool result) { | 3764 return computeFull((bool result) { |
3765 assertSuggestInvocationMethod('nextBool', 'Random', 'bool'); | 3765 assertSuggestInvocationMethod('nextBool', 'Random', 'bool'); |
3766 assertSuggestInvocationMethod('nextDouble', 'Random', 'double'); | 3766 assertSuggestInvocationMethod('nextDouble', 'Random', 'double'); |
3767 assertSuggestInvocationMethod('nextInt', 'Random', 'int'); | 3767 assertSuggestInvocationMethod('nextInt', 'Random', 'int'); |
3768 assertNotSuggested('Random'); | 3768 assertNotSuggested('Random'); |
3769 assertNotSuggested('Object'); | 3769 assertNotSuggested('Object'); |
3770 assertNotSuggested('A'); | 3770 assertNotSuggested('A'); |
3771 }); | 3771 }); |
3772 } | 3772 } |
3773 | 3773 |
| 3774 test_parameterName_excludeTypes() { |
| 3775 addTestSource('m(int ^) {}'); |
| 3776 return computeFull((bool result) { |
| 3777 assertNotSuggested('int'); |
| 3778 assertNotSuggested('bool'); |
| 3779 }); |
| 3780 } |
| 3781 |
3774 test_partFile_TypeName() { | 3782 test_partFile_TypeName() { |
3775 // SimpleIdentifier TypeName ConstructorName | 3783 // SimpleIdentifier TypeName ConstructorName |
3776 addSource( | 3784 addSource( |
3777 '/testB.dart', | 3785 '/testB.dart', |
3778 ''' | 3786 ''' |
3779 lib B; | 3787 lib B; |
3780 int T1; | 3788 int T1; |
3781 F1() { } | 3789 F1() { } |
3782 class X {X.c(); X._d(); z() {}}'''); | 3790 class X {X.c(); X._d(); z() {}}'''); |
3783 addSource( | 3791 addSource( |
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4704 assertNotSuggested('bar2'); | 4712 assertNotSuggested('bar2'); |
4705 assertNotSuggested('_B'); | 4713 assertNotSuggested('_B'); |
4706 assertSuggestLocalClass('Y'); | 4714 assertSuggestLocalClass('Y'); |
4707 assertSuggestLocalClass('C'); | 4715 assertSuggestLocalClass('C'); |
4708 assertSuggestLocalVariable('f', null); | 4716 assertSuggestLocalVariable('f', null); |
4709 assertNotSuggested('x'); | 4717 assertNotSuggested('x'); |
4710 assertNotSuggested('e'); | 4718 assertNotSuggested('e'); |
4711 }); | 4719 }); |
4712 } | 4720 } |
4713 } | 4721 } |
OLD | NEW |