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

Side by Side Diff: pkg/compiler/lib/src/constants/constructors.dart

Issue 1348063002: Make the universe parts into small libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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) 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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/constants/constant_constructors.dart ('k') | pkg/compiler/lib/src/constants/evaluation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698