| 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 '../common.dart'; |
| 8 import '../core_types.dart' show CommonElements; | 8 import '../core_types.dart' show CommonElements; |
| 9 import '../dart_types.dart'; | 9 import '../elements/resolution_types.dart'; |
| 10 import '../elements/elements.dart'; | 10 import '../elements/elements.dart'; |
| 11 import '../elements/modelx.dart'; | 11 import '../elements/modelx.dart'; |
| 12 import '../tokens/keyword.dart' show Keyword; | 12 import '../tokens/keyword.dart' show Keyword; |
| 13 import '../tokens/precedence.dart'; | 13 import '../tokens/precedence.dart'; |
| 14 import '../tokens/precedence_constants.dart' as Precedence; | 14 import '../tokens/precedence_constants.dart' as Precedence; |
| 15 import '../tokens/token.dart'; | 15 import '../tokens/token.dart'; |
| 16 import '../tree/tree.dart'; | 16 import '../tree/tree.dart'; |
| 17 import '../util/util.dart'; | 17 import '../util/util.dart'; |
| 18 | 18 |
| 19 // TODO(johnniwinther): Merge functionality with the `TreePrinter`. | 19 // TODO(johnniwinther): Merge functionality with the `TreePrinter`. |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 EnumMethodElementX toString = new EnumMethodElementX( | 309 EnumMethodElementX toString = new EnumMethodElementX( |
| 310 'toString', enumClass, Modifiers.EMPTY, toStringNode); | 310 'toString', enumClass, Modifiers.EMPTY, toStringNode); |
| 311 FunctionSignatureX toStringSignature = | 311 FunctionSignatureX toStringSignature = |
| 312 new FunctionSignatureX(type: new FunctionType(toString, stringType)); | 312 new FunctionSignatureX(type: new FunctionType(toString, stringType)); |
| 313 toString.functionSignature = toStringSignature; | 313 toString.functionSignature = toStringSignature; |
| 314 enumClass.addMember(toString, reporter); | 314 enumClass.addMember(toString, reporter); |
| 315 | 315 |
| 316 enumClass.enumValues = enumValues; | 316 enumClass.enumValues = enumValues; |
| 317 } | 317 } |
| 318 } | 318 } |
| OLD | NEW |