OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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.enum_creator; | 5 library dart2js.resolution.enum_creator; |
6 | 6 |
| 7 import '../common.dart'; |
7 import '../core_types.dart' show | 8 import '../core_types.dart' show |
8 CoreTypes; | 9 CoreTypes; |
9 import '../dart_types.dart'; | 10 import '../dart_types.dart'; |
10 import '../diagnostics/diagnostic_listener.dart' show | |
11 DiagnosticReporter; | |
12 import '../elements/elements.dart'; | 11 import '../elements/elements.dart'; |
13 import '../elements/modelx.dart'; | 12 import '../elements/modelx.dart'; |
14 import '../tokens/keyword.dart' show | 13 import '../tokens/keyword.dart' show |
15 Keyword; | 14 Keyword; |
16 import '../tokens/precedence.dart'; | 15 import '../tokens/precedence.dart'; |
17 import '../tokens/precedence_constants.dart' as Precedence; | 16 import '../tokens/precedence_constants.dart' as Precedence; |
18 import '../tokens/token.dart'; | 17 import '../tokens/token.dart'; |
19 import '../tree/tree.dart'; | 18 import '../tree/tree.dart'; |
20 import '../util/util.dart'; | 19 import '../util/util.dart'; |
21 | 20 |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 EnumMethodElementX toString = new EnumMethodElementX('toString', | 302 EnumMethodElementX toString = new EnumMethodElementX('toString', |
304 enumClass, Modifiers.EMPTY, toStringNode); | 303 enumClass, Modifiers.EMPTY, toStringNode); |
305 FunctionSignatureX toStringSignature = new FunctionSignatureX( | 304 FunctionSignatureX toStringSignature = new FunctionSignatureX( |
306 type: new FunctionType(toString, stringType)); | 305 type: new FunctionType(toString, stringType)); |
307 toString.functionSignature = toStringSignature; | 306 toString.functionSignature = toStringSignature; |
308 enumClass.addMember(toString, reporter); | 307 enumClass.addMember(toString, reporter); |
309 | 308 |
310 enumClass.enumValues = enumValues; | 309 enumClass.enumValues = enumValues; |
311 } | 310 } |
312 } | 311 } |
OLD | NEW |