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 '../resolution/members.dart' show | 35 import '../parser/listener.dart' show |
36 ResolverVisitor; | |
37 import '../scanner/listener.dart' show | |
38 ElementListener, | 36 ElementListener, |
39 Listener, | 37 Listener, |
40 PartialMetadataAnnotation; | 38 PartialMetadataAnnotation; |
41 import '../scanner/token.dart' show | 39 import '../resolution/members.dart' show |
| 40 ResolverVisitor; |
| 41 import '../ssa/ssa.dart'; |
| 42 import '../tokens/token.dart' show |
42 BeginGroupToken, | 43 BeginGroupToken, |
43 EOF_TOKEN, | 44 EOF_TOKEN, |
44 STRING_TOKEN, | 45 STRING_TOKEN, |
45 Token; | 46 Token; |
46 import '../ssa/ssa.dart'; | |
47 import '../tree/tree.dart'; | 47 import '../tree/tree.dart'; |
48 import '../universe/universe.dart' show SideEffects; | 48 import '../universe/universe.dart' show SideEffects; |
49 import '../util/util.dart'; | 49 import '../util/util.dart'; |
50 | 50 |
51 part 'behavior.dart'; | 51 part 'behavior.dart'; |
52 part 'enqueue.dart'; | 52 part 'enqueue.dart'; |
53 part 'js.dart'; | 53 part 'js.dart'; |
54 part 'scanner.dart'; | 54 part 'scanner.dart'; |
55 part 'ssa.dart'; | 55 part 'ssa.dart'; |
56 | 56 |
(...skipping 24 matching lines...) Expand all Loading... |
81 String quotedName = cls.nativeTagInfo; | 81 String quotedName = cls.nativeTagInfo; |
82 return quotedName.substring(1, quotedName.length - 1).split(','); | 82 return quotedName.substring(1, quotedName.length - 1).split(','); |
83 } | 83 } |
84 | 84 |
85 List<String> nativeTagsOfClass(ClassElement cls) { | 85 List<String> nativeTagsOfClass(ClassElement cls) { |
86 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList(); | 86 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList(); |
87 } | 87 } |
88 | 88 |
89 bool nativeTagsForcedNonLeaf(ClassElement cls) => | 89 bool nativeTagsForcedNonLeaf(ClassElement cls) => |
90 nativeTagsOfClassRaw(cls).contains('!nonleaf'); | 90 nativeTagsOfClassRaw(cls).contains('!nonleaf'); |
OLD | NEW |