| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import '../closure.dart'; | 5 import '../closure.dart'; |
| 6 import '../common.dart'; | 6 import '../common.dart'; |
| 7 import '../common_elements.dart'; | 7 import '../common_elements.dart'; |
| 8 import '../compiler.dart'; | 8 import '../compiler.dart'; |
| 9 import '../constants/values.dart'; | 9 import '../constants/values.dart'; |
| 10 import '../elements/elements.dart'; | 10 import '../elements/elements.dart'; |
| 11 import '../elements/entities.dart'; | 11 import '../elements/entities.dart'; |
| 12 import '../elements/names.dart'; |
| 12 import '../elements/types.dart'; | 13 import '../elements/types.dart'; |
| 13 import '../options.dart'; | 14 import '../options.dart'; |
| 14 import '../world.dart'; | 15 import '../world.dart'; |
| 15 import '../universe/world_builder.dart'; | 16 import '../universe/world_builder.dart'; |
| 16 import '../util/emptyset.dart'; | 17 import '../util/emptyset.dart'; |
| 17 import 'constant_handler_javascript.dart'; | 18 import 'constant_handler_javascript.dart'; |
| 18 | 19 |
| 19 abstract class MirrorsData { | 20 abstract class MirrorsData { |
| 20 /// True if a call to preserveMetadataMarker has been seen. This means that | 21 /// True if a call to preserveMetadataMarker has been seen. This means that |
| 21 /// metadata must be retained for dart:mirrors to work correctly. | 22 /// metadata must be retained for dart:mirrors to work correctly. |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 } | 690 } |
| 690 | 691 |
| 691 /// Called when `const Symbol(name)` is seen. | 692 /// Called when `const Symbol(name)` is seen. |
| 692 void registerConstSymbol(String name) { | 693 void registerConstSymbol(String name) { |
| 693 symbolsUsed.add(name); | 694 symbolsUsed.add(name); |
| 694 if (name.endsWith('=')) { | 695 if (name.endsWith('=')) { |
| 695 symbolsUsed.add(name.substring(0, name.length - 1)); | 696 symbolsUsed.add(name.substring(0, name.length - 1)); |
| 696 } | 697 } |
| 697 } | 698 } |
| 698 } | 699 } |
| OLD | NEW |