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

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

Issue 1394063004: Use common.dart to re-export commonly used entities. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 '../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
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 }
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