| 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/src/analysis_server.dart'; | 9 import 'package:analysis_server/src/analysis_server.dart'; |
| 10 import 'package:analysis_server/src/protocol.dart' as protocol | 10 import 'package:analysis_server/src/protocol.dart' as protocol |
| (...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 if (contributor is PrefixedElementContributor) { | 627 if (contributor is PrefixedElementContributor) { |
| 628 return assertSuggestGetter(name, returnType, | 628 return assertSuggestGetter(name, returnType, |
| 629 relevance: relevance, isDeprecated: isDeprecated); | 629 relevance: relevance, isDeprecated: isDeprecated); |
| 630 } else { | 630 } else { |
| 631 return assertNotSuggested(name); | 631 return assertNotSuggested(name); |
| 632 } | 632 } |
| 633 } | 633 } |
| 634 | 634 |
| 635 CompletionSuggestion assertSuggestInvocationMethod( | 635 CompletionSuggestion assertSuggestInvocationMethod( |
| 636 String name, String declaringType, String returnType, | 636 String name, String declaringType, String returnType, |
| 637 [int relevance = DART_RELEVANCE_DEFAULT]) { | 637 {int relevance: DART_RELEVANCE_DEFAULT}) { |
| 638 if (contributor is PrefixedElementContributor) { | 638 if (contributor is PrefixedElementContributor) { |
| 639 return assertSuggestMethod(name, declaringType, returnType, | 639 return assertSuggestMethod(name, declaringType, returnType, |
| 640 relevance: relevance); | 640 relevance: relevance); |
| 641 } else { | 641 } else { |
| 642 return assertNotSuggested(name); | 642 return assertNotSuggested(name); |
| 643 } | 643 } |
| 644 } | 644 } |
| 645 | 645 |
| 646 CompletionSuggestion assertSuggestInvocationSetter(String name, | 646 CompletionSuggestion assertSuggestInvocationSetter(String name, |
| 647 [int relevance = DART_RELEVANCE_DEFAULT]) { | 647 [int relevance = DART_RELEVANCE_DEFAULT]) { |
| (...skipping 3698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4346 assertNotSuggested('bar2'); | 4346 assertNotSuggested('bar2'); |
| 4347 assertNotSuggested('_B'); | 4347 assertNotSuggested('_B'); |
| 4348 assertSuggestLocalClass('Y'); | 4348 assertSuggestLocalClass('Y'); |
| 4349 assertSuggestLocalClass('C'); | 4349 assertSuggestLocalClass('C'); |
| 4350 assertSuggestLocalVariable('f', null); | 4350 assertSuggestLocalVariable('f', null); |
| 4351 assertNotSuggested('x'); | 4351 assertNotSuggested('x'); |
| 4352 assertNotSuggested('e'); | 4352 assertNotSuggested('e'); |
| 4353 }); | 4353 }); |
| 4354 } | 4354 } |
| 4355 } | 4355 } |
| OLD | NEW |