|
6 | 6 | // "mixin", "mixin class" or the test should be left at 2.19. |
7 | 7 | // @dart=2.19 |
8 | 8 |
|
| 9 | +// Don't let the formatter change the location of things. |
| 10 | +// dart format off |
| 11 | + |
9 | 12 | library test.class_location; |
10 | 13 |
|
11 | 14 | import "dart:mirrors"; |
@@ -52,21 +55,21 @@ main() { |
52 | 55 | String otherSuffix = 'class_mirror_location_other.dart'; |
53 | 56 |
|
54 | 57 | // This file. |
55 | | - expectLocation(reflectClass(ClassInMainFile), mainSuffix, 12, 1); |
56 | | - expectLocation(reflectClass(SpaceIndentedInMainFile), mainSuffix, 13, 3); |
57 | | - expectLocation(reflectClass(TabIndentedInMainFile), mainSuffix, 14, 2); |
58 | | - expectLocation(reflectClass(AbstractClass), mainSuffix, 16, 1); |
59 | | - expectLocation(reflectType(Predicate), mainSuffix, 17, 1); |
60 | | - expectLocation(reflectClass(MA), mainSuffix, 21, 1); |
61 | | - expectLocation(reflectClass(MA2), mainSuffix, 22, 1); |
62 | | - expectLocation(reflectClass(WithMetadata), mainSuffix, 26, 1); |
63 | | - expectLocation(reflectClass(Enum), mainSuffix, 29, 1); |
64 | | - expectLocation(reflectClass(AnnotatedEnum), mainSuffix, 31, 1); |
| 58 | + expectLocation(reflectClass(ClassInMainFile), mainSuffix, 19, 1); |
| 59 | + expectLocation(reflectClass(SpaceIndentedInMainFile), mainSuffix, 20, 3); |
| 60 | + expectLocation(reflectClass(TabIndentedInMainFile), mainSuffix, 21, 2); |
| 61 | + expectLocation(reflectClass(AbstractClass), mainSuffix, 23, 1); |
| 62 | + expectLocation(reflectType(Predicate), mainSuffix, 24, 1); |
| 63 | + expectLocation(reflectClass(MA), mainSuffix, 28, 1); |
| 64 | + expectLocation(reflectClass(MA2), mainSuffix, 29, 1); |
| 65 | + expectLocation(reflectClass(WithMetadata), mainSuffix, 34, 1); |
| 66 | + expectLocation(reflectClass(Enum), mainSuffix, 36, 1); |
| 67 | + expectLocation(reflectClass(AnnotatedEnum), mainSuffix, 39, 1); |
65 | 68 |
|
66 | 69 | // Another part. |
67 | | - expectLocation(reflectClass(ClassInOtherFile), otherSuffix, 7, 1); |
68 | | - expectLocation(reflectClass(SpaceIndentedInOtherFile), otherSuffix, 9, 3); |
69 | | - expectLocation(reflectClass(TabIndentedInOtherFile), otherSuffix, 11, 2); |
| 70 | + expectLocation(reflectClass(ClassInOtherFile), otherSuffix, 14, 1); |
| 71 | + expectLocation(reflectClass(SpaceIndentedInOtherFile), otherSuffix, 16, 3); |
| 72 | + expectLocation(reflectClass(TabIndentedInOtherFile), otherSuffix, 18, 2); |
70 | 73 |
|
71 | 74 | // Synthetic classes. |
72 | 75 | Expect.isNull(reflectClass(MA).superclass!.location); |
|
0 commit comments