| 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 |
| 10 Registry; |
| 11 import '../compiler.dart' show |
| 12 Compiler; |
| 9 import '../constants/values.dart'; | 13 import '../constants/values.dart'; |
| 10 import '../dart2jslib.dart'; | |
| 11 import '../dart_types.dart'; | 14 import '../dart_types.dart'; |
| 12 import '../diagnostic_listener.dart'; | 15 import '../diagnostic_listener.dart'; |
| 16 import '../diagnostics/spannable.dart' show |
| 17 NO_LOCATION_SPANNABLE, |
| 18 Spannable; |
| 13 import '../enqueue.dart' show | 19 import '../enqueue.dart' show |
| 14 Enqueuer, | 20 Enqueuer, |
| 15 ResolutionEnqueuer; | 21 ResolutionEnqueuer; |
| 16 import '../elements/elements.dart'; | 22 import '../elements/elements.dart'; |
| 17 import '../elements/modelx.dart' show | 23 import '../elements/modelx.dart' show |
| 18 BaseClassElementX, | 24 BaseClassElementX, |
| 19 ElementX, | 25 ElementX, |
| 20 FunctionElementX, | 26 FunctionElementX, |
| 21 LibraryElementX; | 27 LibraryElementX; |
| 22 import '../js/js.dart' as js; | 28 import '../js/js.dart' as js; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 String quotedName = cls.nativeTagInfo; | 69 String quotedName = cls.nativeTagInfo; |
| 64 return quotedName.substring(1, quotedName.length - 1).split(','); | 70 return quotedName.substring(1, quotedName.length - 1).split(','); |
| 65 } | 71 } |
| 66 | 72 |
| 67 List<String> nativeTagsOfClass(ClassElement cls) { | 73 List<String> nativeTagsOfClass(ClassElement cls) { |
| 68 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList(); | 74 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList(); |
| 69 } | 75 } |
| 70 | 76 |
| 71 bool nativeTagsForcedNonLeaf(ClassElement cls) => | 77 bool nativeTagsForcedNonLeaf(ClassElement cls) => |
| 72 nativeTagsOfClassRaw(cls).contains('!nonleaf'); | 78 nativeTagsOfClassRaw(cls).contains('!nonleaf'); |
| OLD | NEW |