OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 part of js_backend; | 5 import '../compiler.dart' show Compiler; |
| 6 import '../constants/values.dart'; |
| 7 import '../dart_types.dart'; |
| 8 import '../elements/elements.dart'; |
| 9 import '../enqueue.dart' show Enqueuer, ResolutionEnqueuer; |
| 10 import '../universe/use.dart' |
| 11 show DynamicUse, StaticUse, StaticUseKind, TypeUse, TypeUseKind; |
| 12 |
| 13 import 'backend.dart'; |
6 | 14 |
7 /** | 15 /** |
8 * Support for Custom Elements. | 16 * Support for Custom Elements. |
9 * | 17 * |
10 * The support for custom elements the compiler builds a table that maps the | 18 * The support for custom elements the compiler builds a table that maps the |
11 * custom element class's [Type] to the interceptor for the class and the | 19 * custom element class's [Type] to the interceptor for the class and the |
12 * constructor(s) for the class. | 20 * constructor(s) for the class. |
13 * | 21 * |
14 * We want the table to contain only the custom element classes used, and we | 22 * We want the table to contain only the custom element classes used, and we |
15 * want to avoid resolving and compiling constructors that are not used since | 23 * want to avoid resolving and compiling constructors that are not used since |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 if (parameters.requiredParameterCount == 0) { | 204 if (parameters.requiredParameterCount == 0) { |
197 result.add(member); | 205 result.add(member); |
198 } | 206 } |
199 } | 207 } |
200 } | 208 } |
201 classElement.forEachMember(selectGenerativeConstructors, | 209 classElement.forEachMember(selectGenerativeConstructors, |
202 includeBackendMembers: false, includeSuperAndInjectedMembers: false); | 210 includeBackendMembers: false, includeSuperAndInjectedMembers: false); |
203 return result; | 211 return result; |
204 } | 212 } |
205 } | 213 } |
OLD | NEW |