OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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.common.resolution; | 5 library dart2js.common.resolution; |
6 | 6 |
7 import '../common.dart'; | 7 import '../common.dart'; |
8 import '../compiler.dart' show Compiler; | 8 import '../compiler.dart' show Compiler; |
9 import '../constants/expressions.dart' show ConstantExpression; | 9 import '../constants/expressions.dart' show ConstantExpression; |
10 import '../core_types.dart' show CoreTypes; | 10 import '../core_types.dart' show CoreTypes; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 class ResolutionImpact extends WorldImpact { | 50 class ResolutionImpact extends WorldImpact { |
51 const ResolutionImpact(); | 51 const ResolutionImpact(); |
52 | 52 |
53 Iterable<Feature> get features => const <Feature>[]; | 53 Iterable<Feature> get features => const <Feature>[]; |
54 Iterable<MapLiteralUse> get mapLiterals => const <MapLiteralUse>[]; | 54 Iterable<MapLiteralUse> get mapLiterals => const <MapLiteralUse>[]; |
55 Iterable<ListLiteralUse> get listLiterals => const <ListLiteralUse>[]; | 55 Iterable<ListLiteralUse> get listLiterals => const <ListLiteralUse>[]; |
56 Iterable<String> get constSymbolNames => const <String>[]; | 56 Iterable<String> get constSymbolNames => const <String>[]; |
57 Iterable<ConstantExpression> get constantLiterals { | 57 Iterable<ConstantExpression> get constantLiterals { |
58 return const <ConstantExpression>[]; | 58 return const <ConstantExpression>[]; |
59 } | 59 } |
| 60 |
| 61 Iterable<dynamic> get nativeData => const <dynamic>[]; |
60 } | 62 } |
61 | 63 |
62 /// A language feature seen during resolution. | 64 /// A language feature seen during resolution. |
63 // TODO(johnniwinther): Should mirror usage be part of this? | 65 // TODO(johnniwinther): Should mirror usage be part of this? |
64 enum Feature { | 66 enum Feature { |
65 /// Invocation of a generative construction on an abstract class. | 67 /// Invocation of a generative construction on an abstract class. |
66 ABSTRACT_CLASS_INSTANTIATION, | 68 ABSTRACT_CLASS_INSTANTIATION, |
67 | 69 |
68 /// An assert statement with no message. | 70 /// An assert statement with no message. |
69 ASSERT, | 71 ASSERT, |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 if (cls.isPatch) { | 308 if (cls.isPatch) { |
307 patchParser.parsePatchClassNode(cls); | 309 patchParser.parsePatchClassNode(cls); |
308 } | 310 } |
309 }); | 311 }); |
310 } | 312 } |
311 | 313 |
312 @override | 314 @override |
313 ScannerOptions getScannerOptionsFor(Element element) => new ScannerOptions( | 315 ScannerOptions getScannerOptionsFor(Element element) => new ScannerOptions( |
314 canUseNative: backend.canLibraryUseNative(element.library)); | 316 canUseNative: backend.canLibraryUseNative(element.library)); |
315 } | 317 } |
OLD | NEW |