| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 library test.class_location; | 4 library test.class_location; |
| 5 | 5 |
| 6 @MirrorsUsed(targets: "test.class_location") | 6 @MirrorsUsed(targets: "test.class_location") |
| 7 import "dart:mirrors"; | 7 import "dart:mirrors"; |
| 8 import "package:expect/expect.dart"; | 8 import "package:expect/expect.dart"; |
| 9 | 9 |
| 10 part 'class_mirror_location_other.dart'; | 10 part 'class_mirror_location_other.dart'; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 // Another part. | 61 // Another part. |
| 62 expectLocation(reflectClass(ClassInOtherFile), otherSuffix, 7, 1); | 62 expectLocation(reflectClass(ClassInOtherFile), otherSuffix, 7, 1); |
| 63 expectLocation(reflectClass(SpaceIndentedInOtherFile), otherSuffix, 9, 3); | 63 expectLocation(reflectClass(SpaceIndentedInOtherFile), otherSuffix, 9, 3); |
| 64 expectLocation(reflectClass(TabIndentedInOtherFile), otherSuffix, 11, 2); | 64 expectLocation(reflectClass(TabIndentedInOtherFile), otherSuffix, 11, 2); |
| 65 | 65 |
| 66 // Synthetic classes. | 66 // Synthetic classes. |
| 67 Expect.isNull(reflectClass(MA).superclass.location); | 67 Expect.isNull(reflectClass(MA).superclass.location); |
| 68 Expect.isNull((reflect(main) as ClosureMirror).type.location); | 68 Expect.isNull((reflect(main) as ClosureMirror).type.location); |
| 69 } | 69 } |
| OLD | NEW |