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

Unified Diff: pkg/analyzer/test/generated/compile_time_error_code_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/generated/compile_time_error_code_test.dart
diff --git a/pkg/analyzer/test/generated/compile_time_error_code_test.dart b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
index bc09e54f06e5c4b4e26f75e4652b1193dfd8a679..4a9fd0c7d0a95ba4c20d2d156e4c326e0a83d8d6 100644
--- a/pkg/analyzer/test/generated/compile_time_error_code_test.dart
+++ b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
@@ -203,14 +203,10 @@ String name(E e) {
library L;
export 'lib1.dart';
export 'lib2.dart';''');
- addNamedSource(
- "/lib1.dart",
- r'''
+ addNamedSource("/lib1.dart", r'''
library lib1;
class N {}''');
- addNamedSource(
- "/lib2.dart",
- r'''
+ addNamedSource("/lib2.dart", r'''
library lib2;
class N {}''');
await computeAnalysisResult(source);
@@ -237,9 +233,7 @@ main() {
}
test_annotationWithNotClass_prefixed() async {
- addNamedSource(
- "/annotations.dart",
- r'''
+ addNamedSource("/annotations.dart", r'''
class Property {
final int value;
const Property(this.value);
@@ -511,9 +505,7 @@ f() async {
}
test_async_used_as_identifier_in_suffix() async {
- addNamedSource(
- "/lib1.dart",
- r'''
+ addNamedSource("/lib1.dart", r'''
library lib1;
int async;
''');
@@ -1545,9 +1537,7 @@ f() {
test_constWithNonType_fromLibrary() async {
Source source1 = addNamedSource("/lib.dart", "");
- Source source2 = addNamedSource(
- "/lib2.dart",
- r'''
+ Source source2 = addNamedSource("/lib2.dart", r'''
import 'lib.dart' as lib;
void f() {
const lib.A();
@@ -1683,22 +1673,16 @@ class A {
}
test_duplicateDefinition_acrossLibraries() async {
- Source librarySource = addNamedSource(
- "/lib.dart",
- r'''
+ Source librarySource = addNamedSource("/lib.dart", r'''
library lib;
part 'a.dart';
part 'b.dart';''');
- Source sourceA = addNamedSource(
- "/a.dart",
- r'''
+ Source sourceA = addNamedSource("/a.dart", r'''
part of lib;
class A {}''');
- Source sourceB = addNamedSource(
- "/b.dart",
- r'''
+ Source sourceB = addNamedSource("/b.dart", r'''
part of lib;
class A {}''');
@@ -1754,15 +1738,11 @@ class A {
}
test_duplicateDefinition_inPart() async {
- Source librarySource = addNamedSource(
- "/lib.dart",
- r'''
+ Source librarySource = addNamedSource("/lib.dart", r'''
library test;
part 'a.dart';
class A {}''');
- Source sourceA = addNamedSource(
- "/a.dart",
- r'''
+ Source sourceA = addNamedSource("/a.dart", r'''
part of test;
class A {}''');
await computeAnalysisResult(librarySource);
@@ -2898,9 +2878,7 @@ class B extends A {
library lib;
import 'part.dart';
A a;''');
- addNamedSource(
- "/part.dart",
- r'''
+ addNamedSource("/part.dart", r'''
part of lib;
class A{}''');
await computeAnalysisResult(source);
@@ -3174,9 +3152,7 @@ main() {
}
test_invalidAnnotation_importWithPrefix_getter() async {
- addNamedSource(
- "/lib.dart",
- r'''
+ addNamedSource("/lib.dart", r'''
library lib;
get V => 0;''');
Source source = addSource(r'''
@@ -3190,9 +3166,7 @@ main() {
}
test_invalidAnnotation_importWithPrefix_notConstantVariable() async {
- addNamedSource(
- "/lib.dart",
- r'''
+ addNamedSource("/lib.dart", r'''
library lib;
final V = 0;''');
Source source = addSource(r'''
@@ -3206,9 +3180,7 @@ main() {
}
test_invalidAnnotation_importWithPrefix_notVariableOrConstructorInvocation() async {
- addNamedSource(
- "/lib.dart",
- r'''
+ addNamedSource("/lib.dart", r'''
library lib;
typedef V();''');
Source source = addSource(r'''
@@ -4823,15 +4795,11 @@ var b = const B();''');
test_nonConstValueInInitializer_instanceCreation_inDifferentFile() async {
resetWith(options: new AnalysisOptionsImpl()..strongMode = true);
- Source source = addNamedSource(
- '/a.dart',
- r'''
+ Source source = addNamedSource('/a.dart', r'''
import 'b.dart';
const v = const MyClass();
''');
- addNamedSource(
- '/b.dart',
- r'''
+ addNamedSource('/b.dart', r'''
class MyClass {
const MyClass([p = foo]);
}
@@ -5106,9 +5074,7 @@ f() {
}
test_prefix_conditionalPropertyAccess_call() async {
- addNamedSource(
- '/lib.dart',
- '''
+ addNamedSource('/lib.dart', '''
library lib;
g() {}
''');
@@ -5125,9 +5091,7 @@ f() {
}
test_prefix_conditionalPropertyAccess_call_loadLibrary() async {
- addNamedSource(
- '/lib.dart',
- '''
+ addNamedSource('/lib.dart', '''
library lib;
''');
Source source = addSource('''
@@ -5143,9 +5107,7 @@ f() {
}
test_prefix_conditionalPropertyAccess_get() async {
- addNamedSource(
- '/lib.dart',
- '''
+ addNamedSource('/lib.dart', '''
library lib;
var x;
''');
@@ -5162,9 +5124,7 @@ f() {
}
test_prefix_conditionalPropertyAccess_get_loadLibrary() async {
- addNamedSource(
- '/lib.dart',
- '''
+ addNamedSource('/lib.dart', '''
library lib;
''');
Source source = addSource('''
@@ -5180,9 +5140,7 @@ f() {
}
test_prefix_conditionalPropertyAccess_set() async {
- addNamedSource(
- '/lib.dart',
- '''
+ addNamedSource('/lib.dart', '''
library lib;
var x;
''');
@@ -5199,9 +5157,7 @@ f() {
}
test_prefix_conditionalPropertyAccess_set_loadLibrary() async {
- addNamedSource(
- '/lib.dart',
- '''
+ addNamedSource('/lib.dart', '''
library lib;
''');
Source source = addSource('''
@@ -5247,9 +5203,7 @@ f() {
}
test_prefixCollidesWithTopLevelMembers_functionTypeAlias() async {
- addNamedSource(
- "/lib.dart",
- r'''
+ addNamedSource("/lib.dart", r'''
library lib;
class A{}''');
Source source = addSource(r'''
@@ -5263,9 +5217,7 @@ p.A a;''');
}
test_prefixCollidesWithTopLevelMembers_topLevelFunction() async {
- addNamedSource(
- "/lib.dart",
- r'''
+ addNamedSource("/lib.dart", r'''
library lib;
class A{}''');
Source source = addSource(r'''
@@ -5279,9 +5231,7 @@ p.A a;''');
}
test_prefixCollidesWithTopLevelMembers_topLevelVariable() async {
- addNamedSource(
- "/lib.dart",
- r'''
+ addNamedSource("/lib.dart", r'''
library lib;
class A{}''');
Source source = addSource(r'''
@@ -5295,9 +5245,7 @@ p.A a;''');
}
test_prefixCollidesWithTopLevelMembers_type() async {
- addNamedSource(
- "/lib.dart",
- r'''
+ addNamedSource("/lib.dart", r'''
library lib;
class A{}''');
Source source = addSource(r'''
@@ -5339,9 +5287,7 @@ f() {
}
test_prefixNotFollowedByDot_conditionalMethodInvocation() async {
- addNamedSource(
- '/lib.dart',
- '''
+ addNamedSource('/lib.dart', '''
library lib;
g() {}
''');
@@ -6667,9 +6613,7 @@ class A {
Future<Null> _privateCollisionInMixinApplicationTest(String testCode) async {
resetWith(options: new AnalysisOptionsImpl()..strongMode = true);
- addNamedSource(
- '/lib1.dart',
- '''
+ addNamedSource('/lib1.dart', '''
class A {
int _x;
}
« no previous file with comments | « pkg/analyzer/test/generated/all_the_rest_test.dart ('k') | pkg/analyzer/test/generated/element_resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698