| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 dart2js.resolution.constructors; | 5 library dart2js.resolution.constructors; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/resolution.dart' show Resolution; | 8 import '../common/resolution.dart' show Resolution; |
| 9 import '../constants/constructors.dart' | 9 import '../constants/constructors.dart' |
| 10 show | 10 show |
| 11 GenerativeConstantConstructor, | 11 GenerativeConstantConstructor, |
| 12 RedirectingGenerativeConstantConstructor; | 12 RedirectingGenerativeConstantConstructor; |
| 13 import '../constants/expressions.dart'; | 13 import '../constants/expressions.dart'; |
| 14 import '../dart_types.dart'; | 14 import '../elements/resolution_types.dart'; |
| 15 import '../elements/elements.dart'; | 15 import '../elements/elements.dart'; |
| 16 import '../elements/modelx.dart' | 16 import '../elements/modelx.dart' |
| 17 show | 17 show |
| 18 ConstructorElementX, | 18 ConstructorElementX, |
| 19 ErroneousConstructorElementX, | 19 ErroneousConstructorElementX, |
| 20 ErroneousElementX, | 20 ErroneousElementX, |
| 21 ErroneousFieldElementX, | 21 ErroneousFieldElementX, |
| 22 FieldElementX, | 22 FieldElementX, |
| 23 InitializingFormalElementX, | 23 InitializingFormalElementX, |
| 24 ParameterElementX; | 24 ParameterElementX; |
| (...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 // constructors. | 879 // constructors. |
| 880 return null; | 880 return null; |
| 881 } | 881 } |
| 882 // TODO(johnniwinther): Use [Name] for lookup. | 882 // TODO(johnniwinther): Use [Name] for lookup. |
| 883 ConstructorElement constructor = cls.lookupConstructor(constructorName); | 883 ConstructorElement constructor = cls.lookupConstructor(constructorName); |
| 884 if (constructor != null) { | 884 if (constructor != null) { |
| 885 constructor = constructor.declaration; | 885 constructor = constructor.declaration; |
| 886 } | 886 } |
| 887 return constructor; | 887 return constructor; |
| 888 } | 888 } |
| OLD | NEW |