| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 | 4 |
| 5 library dart2js.mirrors_used; | 5 library dart2js.mirrors_used; |
| 6 | 6 |
| 7 import 'compile_time_constants.dart' show | 7 import 'compile_time_constants.dart' show |
| 8 ConstantCompiler; | 8 ConstantCompiler; |
| 9 import 'constants/expressions.dart'; | 9 import 'constants/expressions.dart'; |
| 10 import 'constants/values.dart' show | 10 import 'constants/values.dart' show |
| 11 ConstantValue, | 11 ConstantValue, |
| 12 ConstructedConstantValue, | 12 ConstructedConstantValue, |
| 13 ListConstantValue, | 13 ListConstantValue, |
| 14 StringConstantValue, | 14 StringConstantValue, |
| 15 TypeConstantValue; | 15 TypeConstantValue; |
| 16 |
| 16 import 'dart_types.dart' show | 17 import 'dart_types.dart' show |
| 17 DartType, | 18 DartType, |
| 18 InterfaceType, | 19 InterfaceType, |
| 19 TypeKind; | 20 TypeKind; |
| 21 |
| 20 import 'dart2jslib.dart' show | 22 import 'dart2jslib.dart' show |
| 21 Compiler, | 23 Compiler, |
| 22 CompilerTask, | 24 CompilerTask, |
| 25 MessageKind, |
| 26 TreeElements, |
| 23 invariant; | 27 invariant; |
| 28 |
| 24 import 'elements/elements.dart' show | 29 import 'elements/elements.dart' show |
| 25 ClassElement, | 30 ClassElement, |
| 26 Element, | 31 Element, |
| 27 LibraryElement, | 32 LibraryElement, |
| 28 MetadataAnnotation, | 33 MetadataAnnotation, |
| 29 ScopeContainerElement, | 34 ScopeContainerElement, |
| 30 VariableElement; | 35 VariableElement; |
| 31 import 'messages.dart' show | 36 |
| 32 MessageKind; | |
| 33 import 'resolution/resolution.dart' show | |
| 34 TreeElements; | |
| 35 import 'tree/tree.dart' show | 37 import 'tree/tree.dart' show |
| 36 Import, | 38 Import, |
| 37 LibraryTag, | 39 LibraryTag, |
| 38 NamedArgument, | 40 NamedArgument, |
| 39 NewExpression, | 41 NewExpression, |
| 40 Node; | 42 Node; |
| 43 |
| 41 import 'util/util.dart' show | 44 import 'util/util.dart' show |
| 42 Link, | 45 Link, |
| 43 Spannable; | 46 Spannable; |
| 44 | 47 |
| 45 /** | 48 /** |
| 46 * Compiler task that analyzes MirrorsUsed annotations. | 49 * Compiler task that analyzes MirrorsUsed annotations. |
| 47 * | 50 * |
| 48 * When importing 'dart:mirrors', it is possible to annotate the import with | 51 * When importing 'dart:mirrors', it is possible to annotate the import with |
| 49 * MirrorsUsed annotation. This is a way to declare what elements will be | 52 * MirrorsUsed annotation. This is a way to declare what elements will be |
| 50 * reflected on at runtime. Such elements, even they would normally be | 53 * reflected on at runtime. Such elements, even they would normally be |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 // @MirrorsUsed(targets: fisk) | 590 // @MirrorsUsed(targets: fisk) |
| 588 // ^^^^ | 591 // ^^^^ |
| 589 // | 592 // |
| 590 // Instead of saying 'fisk' should pretty print the problematic constant | 593 // Instead of saying 'fisk' should pretty print the problematic constant |
| 591 // value. | 594 // value. |
| 592 return spannable; | 595 return spannable; |
| 593 } | 596 } |
| 594 return node; | 597 return node; |
| 595 } | 598 } |
| 596 } | 599 } |
| OLD | NEW |