Index: tests/language/metadata_test.dart |
diff --git a/tests/language/metadata_test.dart b/tests/language/metadata_test.dart |
index 29f11dcb658d9d2f4c9c7b720febdbe5f85a215b..c8cb7d3c2b8c8678a12dd1b765ea70f9b95d39f8 100644 |
--- a/tests/language/metadata_test.dart |
+++ b/tests/language/metadata_test.dart |
@@ -6,6 +6,7 @@ |
// test cases with illegal metadata annotations. |
library metadata_test.dart; |
+ |
import "package:expect/expect.dart"; |
import "metadata_lib.dart" as Meta; |
@@ -19,17 +20,23 @@ const meta2 = const Tag("meta2"); |
const extern = const Tag("external"); |
-@meta1 var topLevelVar; |
-@Meta.Alien.unspecified() List unknownUnknowns; |
+@meta1 |
+var topLevelVar; |
+@Meta.Alien.unspecified() |
+List unknownUnknowns; |
-@meta1 typedef int DingDong<@meta2 T>(@meta1 event); |
+@meta1 |
+typedef int DingDong<@meta2 T>(@meta1 event); |
-@meta1 class A <@Tag("typeParam") T> { |
- @meta1 @meta2 |
+@meta1 |
+class A<@Tag("typeParam") T> { |
+ @meta1 |
+ @meta2 |
static String staticField; |
- @Meta.Alien("ET") int foo(@meta1 bool fool, {@meta1 @Tag("opt") x: 100}) { |
- @meta2 @meta1 g() => 10; |
+ @Meta.Alien("ET") |
+ int foo(@meta1 bool fool, {@meta1 @Tag("opt") x: 100}) { |
+ g() => 10; |
return x * g(); |
} |
@@ -37,13 +44,19 @@ const extern = const Tag("external"); |
List<int> getNextWeeksLottoNumbers() => [1, 2, 3, 4, 5, 6]; |
} |
-@meta1 main() { |
- @meta1 var a = new A(); |
+@meta1 |
+main() { |
+ @meta1 |
+ var a = new A(); |
Expect.equals(0, a.foo(false, x: 0)); |
- for (@Tag("loopvar") int i = 0; i < 10; i++) { |
+ for (@Tag("loopvar") |
+ int i = 0; |
+ i < 10; |
+ i++) { |
// Do something. |
} |
- @meta1 var s = r'This is a raw \\ string.'; |
+ @meta1 |
+ var s = r'This is a raw \\ string.'; |
} |