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

Side by Side Diff: pkg/compiler/lib/src/resolution/resolution_result.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.resolution.result; 5 library dart2js.resolution.result;
6 6
7 import '../constants/expressions.dart'; 7 import '../constants/expressions.dart';
8 import '../dart_types.dart'; 8 import '../dart_types.dart';
9 import '../elements/elements.dart'; 9 import '../elements/elements.dart';
10 import '../tree/tree.dart'; 10 import '../tree/tree.dart';
11 import '../universe/universe.dart' show 11 import '../universe/call_structure.dart' show
12 CallStructure; 12 CallStructure;
13 13
14 enum ResultKind { 14 enum ResultKind {
15 NONE, 15 NONE,
16 ELEMENT, 16 ELEMENT,
17 TYPE, 17 TYPE,
18 ASSERT, 18 ASSERT,
19 CONSTANT, 19 CONSTANT,
20 PREFIX, 20 PREFIX,
21 } 21 }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 /// Returns the list of [ConstantExpression]s for each of the arguments. If 138 /// Returns the list of [ConstantExpression]s for each of the arguments. If
139 /// [isValidAsConstant] is `false`, `null` is returned. 139 /// [isValidAsConstant] is `false`, `null` is returned.
140 List<ConstantExpression> get constantArguments { 140 List<ConstantExpression> get constantArguments {
141 if (!isValidAsConstant) return null; 141 if (!isValidAsConstant) return null;
142 return argumentResults.map((ResolutionResult result) { 142 return argumentResults.map((ResolutionResult result) {
143 return result.constant; 143 return result.constant;
144 }).toList(); 144 }).toList();
145 } 145 }
146 } 146 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/registry.dart ('k') | pkg/compiler/lib/src/resolution/semantic_visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698