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 | 8 import '../elements/elements.dart' show |
9 ConstructorElement, | 9 ConstructorElement, |
10 FieldElement; | 10 FieldElement; |
11 import '../universe/universe.dart' show CallStructure; | 11 import '../universe/call_structure.dart' show |
| 12 CallStructure; |
12 import '../util/util.dart'; | 13 import '../util/util.dart'; |
13 import 'evaluation.dart'; | 14 import 'evaluation.dart'; |
14 import 'expressions.dart'; | 15 import 'expressions.dart'; |
15 | 16 |
16 enum ConstantConstructorKind { | 17 enum ConstantConstructorKind { |
17 GENERATIVE, | 18 GENERATIVE, |
18 REDIRECTING_GENERATIVE, | 19 REDIRECTING_GENERATIVE, |
19 REDIRECTING_FACTORY, | 20 REDIRECTING_FACTORY, |
20 } | 21 } |
21 | 22 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 } | 246 } |
246 | 247 |
247 String toString() { | 248 String toString() { |
248 StringBuffer sb = new StringBuffer(); | 249 StringBuffer sb = new StringBuffer(); |
249 sb.write("{"); | 250 sb.write("{"); |
250 sb.write("'constructor': ${targetConstructorInvocation.getText()}"); | 251 sb.write("'constructor': ${targetConstructorInvocation.getText()}"); |
251 sb.write("}"); | 252 sb.write("}"); |
252 return sb.toString(); | 253 return sb.toString(); |
253 } | 254 } |
254 } | 255 } |
OLD | NEW |