| 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; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 import '../elements/modelx.dart' show | 25 import '../elements/modelx.dart' show |
| 26 BaseClassElementX, | 26 BaseClassElementX, |
| 27 ElementX, | 27 ElementX, |
| 28 FunctionElementX, | 28 FunctionElementX, |
| 29 LibraryElementX; | 29 LibraryElementX; |
| 30 import '../js/js.dart' as js; | 30 import '../js/js.dart' as js; |
| 31 import '../js_backend/js_backend.dart'; | 31 import '../js_backend/js_backend.dart'; |
| 32 import '../js_emitter/js_emitter.dart' show | 32 import '../js_emitter/js_emitter.dart' show |
| 33 CodeEmitterTask, | 33 CodeEmitterTask, |
| 34 NativeEmitter; | 34 NativeEmitter; |
| 35 import '../patch_parser.dart' show |
| 36 checkJsInteropAnnotation; |
| 35 import '../parser/listener.dart' show | 37 import '../parser/listener.dart' show |
| 36 Listener; | 38 Listener; |
| 37 import '../parser/element_listener.dart' show | 39 import '../parser/element_listener.dart' show |
| 38 ElementListener; | 40 ElementListener; |
| 39 import '../parser/partial_elements.dart' show | 41 import '../parser/partial_elements.dart' show |
| 40 PartialMetadataAnnotation; | 42 PartialMetadataAnnotation; |
| 41 import '../resolution/members.dart' show | 43 import '../resolution/members.dart' show |
| 42 ResolverVisitor; | 44 ResolverVisitor; |
| 43 import '../ssa/ssa.dart'; | 45 import '../ssa/ssa.dart'; |
| 44 import '../tokens/token.dart' show | 46 import '../tokens/token.dart' show |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 String quotedName = cls.nativeTagInfo; | 86 String quotedName = cls.nativeTagInfo; |
| 85 return quotedName.substring(1, quotedName.length - 1).split(','); | 87 return quotedName.substring(1, quotedName.length - 1).split(','); |
| 86 } | 88 } |
| 87 | 89 |
| 88 List<String> nativeTagsOfClass(ClassElement cls) { | 90 List<String> nativeTagsOfClass(ClassElement cls) { |
| 89 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList(); | 91 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList(); |
| 90 } | 92 } |
| 91 | 93 |
| 92 bool nativeTagsForcedNonLeaf(ClassElement cls) => | 94 bool nativeTagsForcedNonLeaf(ClassElement cls) => |
| 93 nativeTagsOfClassRaw(cls).contains('!nonleaf'); | 95 nativeTagsOfClassRaw(cls).contains('!nonleaf'); |
| OLD | NEW |