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 native; | 5 library native; |
6 | 6 |
7 import 'dart:collection' show Queue; | 7 import 'dart:collection' show Queue; |
8 | 8 |
9 import '../common/backend_api.dart' show | 9 import '../common/backend_api.dart' show |
10 ForeignResolver; | 10 ForeignResolver; |
11 import '../common/registry.dart' show | 11 import '../common/registry.dart' show |
12 Registry; | 12 Registry; |
13 import '../common/resolution.dart' show | 13 import '../common/resolution.dart' show |
14 Parsing, | 14 Parsing, |
15 Resolution; | 15 Resolution; |
16 import '../compiler.dart' show | 16 import '../compiler.dart' show |
17 Compiler; | 17 Compiler; |
18 import '../constants/values.dart'; | 18 import '../constants/values.dart'; |
| 19 import '../core_types.dart' show |
| 20 CoreTypes; |
19 import '../dart_types.dart'; | 21 import '../dart_types.dart'; |
20 import '../diagnostics/diagnostic_listener.dart'; | 22 import '../diagnostics/diagnostic_listener.dart' show |
| 23 DiagnosticReporter; |
21 import '../diagnostics/messages.dart' show | 24 import '../diagnostics/messages.dart' show |
22 MessageKind; | 25 MessageKind; |
23 import '../diagnostics/spannable.dart' show | 26 import '../diagnostics/spannable.dart' show |
24 NO_LOCATION_SPANNABLE, | 27 NO_LOCATION_SPANNABLE, |
25 Spannable; | 28 Spannable; |
26 import '../enqueue.dart' show | 29 import '../enqueue.dart' show |
27 Enqueuer, | 30 Enqueuer, |
28 ResolutionEnqueuer; | 31 ResolutionEnqueuer; |
29 import '../elements/elements.dart'; | 32 import '../elements/elements.dart'; |
30 import '../elements/modelx.dart' show | 33 import '../elements/modelx.dart' show |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 String quotedName = cls.nativeTagInfo; | 91 String quotedName = cls.nativeTagInfo; |
89 return quotedName.substring(1, quotedName.length - 1).split(','); | 92 return quotedName.substring(1, quotedName.length - 1).split(','); |
90 } | 93 } |
91 | 94 |
92 List<String> nativeTagsOfClass(ClassElement cls) { | 95 List<String> nativeTagsOfClass(ClassElement cls) { |
93 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList(); | 96 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList(); |
94 } | 97 } |
95 | 98 |
96 bool nativeTagsForcedNonLeaf(ClassElement cls) => | 99 bool nativeTagsForcedNonLeaf(ClassElement cls) => |
97 nativeTagsOfClassRaw(cls).contains('!nonleaf'); | 100 nativeTagsOfClassRaw(cls).contains('!nonleaf'); |
OLD | NEW |