Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: pkg/compiler/lib/src/resolution/enum_creator.dart

Issue 2606253002: Move dart_types to elements/resolution_types (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/constructors.dart ('k') | pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698