| 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.constants.constructors; | 5 library dart2js.constants.constructors; |
| 6 | 6 |
| 7 import '../dart_types.dart'; | 7 import '../dart_types.dart'; |
| 8 import '../elements/elements.dart' show ConstructorElement, FieldElement; | 8 import '../elements/elements.dart' show FieldElement; |
| 9 import '../universe/call_structure.dart' show CallStructure; | 9 import '../universe/call_structure.dart' show CallStructure; |
| 10 import '../util/util.dart'; | 10 import '../util/util.dart'; |
| 11 import 'evaluation.dart'; | 11 import 'evaluation.dart'; |
| 12 import 'expressions.dart'; | 12 import 'expressions.dart'; |
| 13 | 13 |
| 14 enum ConstantConstructorKind { | 14 enum ConstantConstructorKind { |
| 15 GENERATIVE, | 15 GENERATIVE, |
| 16 REDIRECTING_GENERATIVE, | 16 REDIRECTING_GENERATIVE, |
| 17 REDIRECTING_FACTORY, | 17 REDIRECTING_FACTORY, |
| 18 } | 18 } |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 } | 235 } |
| 236 | 236 |
| 237 String toString() { | 237 String toString() { |
| 238 StringBuffer sb = new StringBuffer(); | 238 StringBuffer sb = new StringBuffer(); |
| 239 sb.write("{"); | 239 sb.write("{"); |
| 240 sb.write("'constructor': ${targetConstructorInvocation.getText()}"); | 240 sb.write("'constructor': ${targetConstructorInvocation.getText()}"); |
| 241 sb.write("}"); | 241 sb.write("}"); |
| 242 return sb.toString(); | 242 return sb.toString(); |
| 243 } | 243 } |
| 244 } | 244 } |
| OLD | NEW |