| 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/registry.dart' show | 9 import '../common/registry.dart' show |
| 10 Registry; | 10 Registry; |
| 11 import '../common/resolution.dart' show |
| 12 Parsing, |
| 13 Resolution; |
| 11 import '../compiler.dart' show | 14 import '../compiler.dart' show |
| 12 Compiler; | 15 Compiler; |
| 13 import '../constants/values.dart'; | 16 import '../constants/values.dart'; |
| 14 import '../dart_types.dart'; | 17 import '../dart_types.dart'; |
| 15 import '../diagnostics/diagnostic_listener.dart'; | 18 import '../diagnostics/diagnostic_listener.dart'; |
| 16 import '../diagnostics/messages.dart' show | 19 import '../diagnostics/messages.dart' show |
| 17 MessageKind; | 20 MessageKind; |
| 18 import '../diagnostics/spannable.dart' show | 21 import '../diagnostics/spannable.dart' show |
| 19 NO_LOCATION_SPANNABLE, | 22 NO_LOCATION_SPANNABLE, |
| 20 Spannable; | 23 Spannable; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 String quotedName = cls.nativeTagInfo; | 88 String quotedName = cls.nativeTagInfo; |
| 86 return quotedName.substring(1, quotedName.length - 1).split(','); | 89 return quotedName.substring(1, quotedName.length - 1).split(','); |
| 87 } | 90 } |
| 88 | 91 |
| 89 List<String> nativeTagsOfClass(ClassElement cls) { | 92 List<String> nativeTagsOfClass(ClassElement cls) { |
| 90 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList(); | 93 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList(); |
| 91 } | 94 } |
| 92 | 95 |
| 93 bool nativeTagsForcedNonLeaf(ClassElement cls) => | 96 bool nativeTagsForcedNonLeaf(ClassElement cls) => |
| 94 nativeTagsOfClassRaw(cls).contains('!nonleaf'); | 97 nativeTagsOfClassRaw(cls).contains('!nonleaf'); |
| OLD | NEW |