| 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 import '../compiler.dart' show Compiler; | 5 import '../compiler.dart' show Compiler; |
| 6 import '../constants/values.dart'; | 6 import '../constants/values.dart'; |
| 7 import '../dart_types.dart'; | 7 import '../dart_types.dart'; |
| 8 import '../elements/elements.dart'; | 8 import '../elements/elements.dart'; |
| 9 import '../enqueue.dart' show Enqueuer; | 9 import '../enqueue.dart' show Enqueuer; |
| 10 import '../universe/use.dart' show StaticUse; | 10 import '../universe/use.dart' show StaticUse; |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 if (member.isGenerativeConstructor) { | 197 if (member.isGenerativeConstructor) { |
| 198 // Ignore constructors that cannot be called with zero arguments. | 198 // Ignore constructors that cannot be called with zero arguments. |
| 199 ConstructorElement constructor = member; | 199 ConstructorElement constructor = member; |
| 200 constructor.computeType(compiler.resolution); | 200 constructor.computeType(compiler.resolution); |
| 201 FunctionSignature parameters = constructor.functionSignature; | 201 FunctionSignature parameters = constructor.functionSignature; |
| 202 if (parameters.requiredParameterCount == 0) { | 202 if (parameters.requiredParameterCount == 0) { |
| 203 result.add(member); | 203 result.add(member); |
| 204 } | 204 } |
| 205 } | 205 } |
| 206 } | 206 } |
| 207 |
| 207 classElement.forEachMember(selectGenerativeConstructors, | 208 classElement.forEachMember(selectGenerativeConstructors, |
| 208 includeBackendMembers: false, includeSuperAndInjectedMembers: false); | 209 includeBackendMembers: false, includeSuperAndInjectedMembers: false); |
| 209 return result; | 210 return result; |
| 210 } | 211 } |
| 211 } | 212 } |
| OLD | NEW |