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

Unified Diff: pkg/analysis_server/test/plugin/protocol_dart_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/plugin/protocol_dart_test.dart
diff --git a/pkg/analysis_server/test/plugin/protocol_dart_test.dart b/pkg/analysis_server/test/plugin/protocol_dart_test.dart
index 3f666b4f8d86932de9e367fbf50667b1c2b090ed..b4e10a5c05c7a77ac53507f147a1dfa44d422eae 100644
--- a/pkg/analysis_server/test/plugin/protocol_dart_test.dart
+++ b/pkg/analysis_server/test/plugin/protocol_dart_test.dart
@@ -104,9 +104,7 @@ class ElementTest extends AbstractContextTest {
}
test_fromElement_CLASS() async {
- engine.Source source = addSource(
- '/test.dart',
- '''
+ engine.Source source = addSource('/test.dart', '''
@deprecated
abstract class _A {}
class B<K, V> {}''');
@@ -145,9 +143,7 @@ class B<K, V> {}''');
}
test_fromElement_CONSTRUCTOR() async {
- engine.Source source = addSource(
- '/test.dart',
- '''
+ engine.Source source = addSource('/test.dart', '''
class A {
const A.myConstructor(int a, [String b]);
}''');
@@ -185,9 +181,7 @@ class A {
}
test_fromElement_ENUM() async {
- engine.Source source = addSource(
- '/test.dart',
- '''
+ engine.Source source = addSource('/test.dart', '''
@deprecated
enum _E1 { one, two }
enum E2 { three, four }''');
@@ -226,9 +220,7 @@ enum E2 { three, four }''');
}
test_fromElement_ENUM_CONSTANT() async {
- engine.Source source = addSource(
- '/test.dart',
- '''
+ engine.Source source = addSource('/test.dart', '''
@deprecated
enum _E1 { one, two }
enum E2 { three, four }''');
@@ -316,9 +308,7 @@ enum E2 { three, four }''');
}
test_fromElement_FIELD() async {
- engine.Source source = addSource(
- '/test.dart',
- '''
+ engine.Source source = addSource('/test.dart', '''
class A {
static const myField = 42;
}''');
@@ -342,9 +332,7 @@ class A {
}
test_fromElement_FUNCTION_TYPE_ALIAS() async {
- engine.Source source = addSource(
- '/test.dart',
- '''
+ engine.Source source = addSource('/test.dart', '''
typedef int F<T>(String x);
''');
engine.CompilationUnit unit = await resolveLibraryUnit(source);
@@ -369,9 +357,7 @@ typedef int F<T>(String x);
}
test_fromElement_GETTER() async {
- engine.Source source = addSource(
- '/test.dart',
- '''
+ engine.Source source = addSource('/test.dart', '''
class A {
String get myGetter => 42;
}''');
@@ -396,9 +382,7 @@ class A {
}
test_fromElement_LABEL() async {
- engine.Source source = addSource(
- '/test.dart',
- '''
+ engine.Source source = addSource('/test.dart', '''
main() {
myLabel:
while (true) {
@@ -425,9 +409,7 @@ myLabel:
}
test_fromElement_METHOD() async {
- engine.Source source = addSource(
- '/test.dart',
- '''
+ engine.Source source = addSource('/test.dart', '''
class A {
static List<String> myMethod(int a, {String b, int c}) {
return null;
@@ -453,9 +435,7 @@ class A {
}
test_fromElement_SETTER() async {
- engine.Source source = addSource(
- '/test.dart',
- '''
+ engine.Source source = addSource('/test.dart', '''
class A {
set mySetter(String x) {}
}''');
« no previous file with comments | « pkg/analysis_server/test/mock_sdk.dart ('k') | pkg/analysis_server/test/search/element_references_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698