OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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.resolution.registry; | 5 library dart2js.resolution.registry; |
6 | 6 |
7 import '../common.dart'; | 7 import '../common.dart'; |
8 import '../common/backend_api.dart' | 8 import '../common/backend_api.dart' |
9 show Backend, ForeignResolver, NativeRegistry; | 9 show Backend, ForeignResolver, NativeRegistry; |
10 import '../common/resolution.dart' show ResolutionImpact, Target; | 10 import '../common/resolution.dart' show ResolutionImpact, Target; |
(...skipping 18 matching lines...) Expand all Loading... |
29 final String name; | 29 final String name; |
30 EnumSet<Feature> _features; | 30 EnumSet<Feature> _features; |
31 Setlet<MapLiteralUse> _mapLiterals; | 31 Setlet<MapLiteralUse> _mapLiterals; |
32 Setlet<ListLiteralUse> _listLiterals; | 32 Setlet<ListLiteralUse> _listLiterals; |
33 Setlet<String> _constSymbolNames; | 33 Setlet<String> _constSymbolNames; |
34 Setlet<ConstantExpression> _constantLiterals; | 34 Setlet<ConstantExpression> _constantLiterals; |
35 Setlet<dynamic> _nativeData; | 35 Setlet<dynamic> _nativeData; |
36 | 36 |
37 ResolutionWorldImpactBuilder(this.name); | 37 ResolutionWorldImpactBuilder(this.name); |
38 | 38 |
| 39 @override |
| 40 bool get isEmpty => false; |
| 41 |
39 void registerMapLiteral(MapLiteralUse mapLiteralUse) { | 42 void registerMapLiteral(MapLiteralUse mapLiteralUse) { |
40 assert(mapLiteralUse != null); | 43 assert(mapLiteralUse != null); |
41 if (_mapLiterals == null) { | 44 if (_mapLiterals == null) { |
42 _mapLiterals = new Setlet<MapLiteralUse>(); | 45 _mapLiterals = new Setlet<MapLiteralUse>(); |
43 } | 46 } |
44 _mapLiterals.add(mapLiteralUse); | 47 _mapLiterals.add(mapLiteralUse); |
45 } | 48 } |
46 | 49 |
47 @override | 50 @override |
48 Iterable<MapLiteralUse> get mapLiterals { | 51 Iterable<MapLiteralUse> get mapLiterals { |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 @override | 431 @override |
429 void registerInstantiatedType(InterfaceType type) { | 432 void registerInstantiatedType(InterfaceType type) { |
430 registry.registerInstantiation(type); | 433 registry.registerInstantiation(type); |
431 } | 434 } |
432 | 435 |
433 @override | 436 @override |
434 DartType resolveTypeFromString(Node node, String typeName) { | 437 DartType resolveTypeFromString(Node node, String typeName) { |
435 return visitor.resolveTypeFromString(node, typeName); | 438 return visitor.resolveTypeFromString(node, typeName); |
436 } | 439 } |
437 } | 440 } |
OLD | NEW |