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

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

Issue 2975253002: Format analyzer, analysis_server, analyzer_plugin, front_end and kernel with the latest dartfmt. (Closed)
Patch Set: Created 3 years, 5 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/dart/local_library_contributor_test.dart
diff --git a/pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart
index ce5b62b620bd007cd218be7e580e2dd7e1ad0b05..9d776dce62ee58bef486e60be60679fdcfc79b24 100644
--- a/pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart
@@ -24,16 +24,12 @@ class LocalLibraryContributorTest extends DartCompletionContributorTest {
test_partFile_Constructor() async {
// SimpleIdentifier TypeName ConstructorName
- addSource(
- '/testB.dart',
- '''
+ addSource('/testB.dart', '''
lib B;
int T1;
F1() { }
class X {X.c(); X._d(); z() {}}''');
- addSource(
- '/testA.dart',
- '''
+ addSource('/testA.dart', '''
library libA;
import "/testB.dart";
part "$testFile";
@@ -63,16 +59,12 @@ class LocalLibraryContributorTest extends DartCompletionContributorTest {
test_partFile_Constructor2() async {
// SimpleIdentifier TypeName ConstructorName
- addSource(
- '/testB.dart',
- '''
+ addSource('/testB.dart', '''
lib B;
int T1;
F1() { }
class X {X.c(); X._d(); z() {}}''');
- addSource(
- '/testA.dart',
- '''
+ addSource('/testA.dart', '''
part of libA;
class B { }''');
addTestSource('''
@@ -102,16 +94,12 @@ class LocalLibraryContributorTest extends DartCompletionContributorTest {
test_partFile_InstanceCreationExpression_assignment_filter() async {
// ConstructorName InstanceCreationExpression VariableDeclarationList
- addSource(
- '/testB.dart',
- '''
+ addSource('/testB.dart', '''
lib B;
int T1;
F1() { }
class X {X.c(); X._d(); z() {}}''');
- addSource(
- '/testA.dart',
- '''
+ addSource('/testA.dart', '''
part of libA;
class A {} class B extends A {} class C implements A {} class D {}
''');
@@ -157,16 +145,12 @@ class LocalLibraryContributorTest extends DartCompletionContributorTest {
test_partFile_InstanceCreationExpression_variable_declaration_filter() async {
// ConstructorName InstanceCreationExpression VariableDeclarationList
- addSource(
- '/testB.dart',
- '''
+ addSource('/testB.dart', '''
lib B;
int T1;
F1() { }
class X {X.c(); X._d(); z() {}}''');
- addSource(
- '/testA.dart',
- '''
+ addSource('/testA.dart', '''
part of libA;
class A {} class B extends A {} class C implements A {} class D {}
''');
@@ -209,16 +193,12 @@ class LocalLibraryContributorTest extends DartCompletionContributorTest {
}
test_partFile_TypeName() async {
- addSource(
- '/testB.dart',
- '''
+ addSource('/testB.dart', '''
lib B;
int T1;
F1() { }
class X {X.c(); X._d(); z() {}}''');
- addSource(
- '/testA.dart',
- '''
+ addSource('/testA.dart', '''
library libA;
import "/testB.dart";
part "$testFile";
@@ -256,16 +236,12 @@ class LocalLibraryContributorTest extends DartCompletionContributorTest {
}
test_partFile_TypeName2() async {
- addSource(
- '/testB.dart',
- '''
+ addSource('/testB.dart', '''
lib B;
int T1;
F1() { }
class X {X.c(); X._d(); z() {}}''');
- addSource(
- '/testA.dart',
- '''
+ addSource('/testA.dart', '''
part of libA;
class B { var b1; b2(){}}
int bf() => 0;

Powered by Google App Engine
This is Rietveld 408576698