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

Unified Diff: pkg/analysis_server/test/services/completion/invocation_computer_test.dart

Issue 969113002: Reformat (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/test/services/completion/invocation_computer_test.dart
diff --git a/pkg/analysis_server/test/services/completion/invocation_computer_test.dart b/pkg/analysis_server/test/services/completion/invocation_computer_test.dart
index f2be3fd1a198e4f9823f1ae2887585f7464cf2f8..3cd9d6785cad92601e070605c733eec9ddacf6ec 100644
--- a/pkg/analysis_server/test/services/completion/invocation_computer_test.dart
+++ b/pkg/analysis_server/test/services/completion/invocation_computer_test.dart
@@ -4,7 +4,6 @@
library test.services.completion.invocation;
-
import 'dart:async';
import 'package:analysis_server/src/protocol.dart';
@@ -22,15 +21,11 @@ main() {
@reflectiveTest
class InvocationComputerTest extends AbstractSelectorSuggestionTest {
-
@override
CompletionSuggestion assertSuggestInvocationField(String name, String type,
{int relevance: DART_RELEVANCE_DEFAULT, bool isDeprecated: false}) {
- return assertSuggestField(
- name,
- type,
- relevance: relevance,
- isDeprecated: isDeprecated);
+ return assertSuggestField(name, type,
+ relevance: relevance, isDeprecated: isDeprecated);
}
/**
@@ -39,8 +34,8 @@ class InvocationComputerTest extends AbstractSelectorSuggestionTest {
* purposes of what is shown during completion. [shouldBeShadowed] indicates
* whether shadowing is expected.
*/
- Future check_shadowing(String shadower, String shadowee,
- bool shouldBeShadowed) {
+ Future check_shadowing(
+ String shadower, String shadowee, bool shouldBeShadowed) {
addTestSource('''
class Base {
$shadowee
@@ -53,8 +48,9 @@ void f(Derived d) {
}
''');
return computeFull((bool result) {
- List<CompletionSuggestion> suggestionsForX = request.suggestions.where(
- (CompletionSuggestion s) => s.completion == 'x').toList();
+ List<CompletionSuggestion> suggestionsForX = request.suggestions
+ .where((CompletionSuggestion s) => s.completion == 'x')
+ .toList();
if (shouldBeShadowed) {
expect(suggestionsForX, hasLength(1));
expect(suggestionsForX[0].declaringType, 'Derived');

Powered by Google App Engine
This is Rietveld 408576698