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

Unified Diff: pkg/analyzer_plugin/test/utilities/analyzer_converter_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/analyzer_plugin/test/utilities/analyzer_converter_test.dart
diff --git a/pkg/analyzer_plugin/test/utilities/analyzer_converter_test.dart b/pkg/analyzer_plugin/test/utilities/analyzer_converter_test.dart
index 659ed8f05b6541d1668b2497732776db5dc21ba9..38a4f9c732222e7ccc2d1fb1c92bfa5a3c525642 100644
--- a/pkg/analyzer_plugin/test/utilities/analyzer_converter_test.dart
+++ b/pkg/analyzer_plugin/test/utilities/analyzer_converter_test.dart
@@ -181,9 +181,7 @@ class AnalyzerConverterTest extends AbstractContextTest {
}
test_convertElement_class() async {
- analyzer.Source source = addSource(
- testFile,
- '''
+ analyzer.Source source = addSource(testFile, '''
@deprecated
abstract class _A {}
class B<K, V> {}''');
@@ -222,9 +220,7 @@ class B<K, V> {}''');
}
test_convertElement_constructor() async {
- analyzer.Source source = addSource(
- testFile,
- '''
+ analyzer.Source source = addSource(testFile, '''
class A {
const A.myConstructor(int a, [String b]);
}''');
@@ -262,9 +258,7 @@ class A {
}
test_convertElement_enum() async {
- analyzer.Source source = addSource(
- testFile,
- '''
+ analyzer.Source source = addSource(testFile, '''
@deprecated
enum _E1 { one, two }
enum E2 { three, four }''');
@@ -303,9 +297,7 @@ enum E2 { three, four }''');
}
test_convertElement_enumConstant() async {
- analyzer.Source source = addSource(
- testFile,
- '''
+ analyzer.Source source = addSource(testFile, '''
@deprecated
enum _E1 { one, two }
enum E2 { three, four }''');
@@ -396,9 +388,7 @@ enum E2 { three, four }''');
}
test_convertElement_field() async {
- analyzer.Source source = addSource(
- testFile,
- '''
+ analyzer.Source source = addSource(testFile, '''
class A {
static const myField = 42;
}''');
@@ -423,9 +413,7 @@ class A {
}
test_convertElement_functionTypeAlias() async {
- analyzer.Source source = addSource(
- testFile,
- '''
+ analyzer.Source source = addSource(testFile, '''
typedef int F<T>(String x);
''');
analyzer.CompilationUnit unit = await resolveLibraryUnit(source);
@@ -450,9 +438,7 @@ typedef int F<T>(String x);
}
test_convertElement_getter() async {
- analyzer.Source source = addSource(
- testFile,
- '''
+ analyzer.Source source = addSource(testFile, '''
class A {
String get myGetter => 42;
}''');
@@ -477,9 +463,7 @@ class A {
}
test_convertElement_method() async {
- analyzer.Source source = addSource(
- testFile,
- '''
+ analyzer.Source source = addSource(testFile, '''
class A {
static List<String> myMethod(int a, {String b, int c}) {
return null;
@@ -505,9 +489,7 @@ class A {
}
test_convertElement_setter() async {
- analyzer.Source source = addSource(
- testFile,
- '''
+ analyzer.Source source = addSource(testFile, '''
class A {
set mySetter(String x) {}
}''');
@@ -582,9 +564,7 @@ class A {
}
test_fromElement_LABEL() async {
- analyzer.Source source = addSource(
- testFile,
- '''
+ analyzer.Source source = addSource(testFile, '''
main() {
myLabel:
while (true) {

Powered by Google App Engine
This is Rietveld 408576698