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

Unified Diff: pkg/analyzer/test/src/task/strong/checker_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/test/src/task/strong/checker_test.dart
diff --git a/pkg/analyzer/test/src/task/strong/checker_test.dart b/pkg/analyzer/test/src/task/strong/checker_test.dart
index bbe48de7aa6cacd086c0e066b30528ef0b3a6b9f..a35ef8cdcab7e80fa617df1d801fd570a5cc81fe 100644
--- a/pkg/analyzer/test/src/task/strong/checker_test.dart
+++ b/pkg/analyzer/test/src/task/strong/checker_test.dart
@@ -446,12 +446,10 @@ void main() {
}
test_conversionAndDynamicInvoke() async {
- addFile(
- '''
+ addFile('''
dynamic toString = (int x) => x + 42;
dynamic hashCode = "hello";
-''',
- name: '/helper.dart');
+''', name: '/helper.dart');
await checkFile('''
import 'helper.dart' as helper;
@@ -3345,8 +3343,7 @@ class D /*error:INVALID_METHOD_OVERRIDE_FROM_BASE*/extends B implements A { }
}
test_privateOverride() async {
- addFile(
- '''
+ addFile('''
import 'main.dart' as main;
class Base {
@@ -3365,8 +3362,7 @@ class GrandChild extends main.Child {
/*error:INVALID_METHOD_OVERRIDE*/String _m1() => null;
}
-''',
- name: '/helper.dart');
+''', name: '/helper.dart');
await checkFile('''
import 'helper.dart' as helper;
@@ -4190,16 +4186,14 @@ void main () {
}
void _addMetaLibrary() {
- addFile(
- r'''
+ addFile(r'''
library meta;
class _Checked { const _Checked(); }
const Object checked = const _Checked();
class _Virtual { const _Virtual(); }
const Object virtual = const _Virtual();
- ''',
- name: '/meta.dart');
+ ''', name: '/meta.dart');
}
}
« no previous file with comments | « pkg/analyzer/test/src/task/options_test.dart ('k') | pkg/analyzer/test/src/task/strong/inferred_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698