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

Side by Side Diff: pkg/compiler/lib/src/resolution/resolution_result.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) 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 '../elements/resolution_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/call_structure.dart' show CallStructure; 11 import '../universe/call_structure.dart' show CallStructure;
12 12
13 enum ResultKind { 13 enum ResultKind {
14 NONE, 14 NONE,
15 ELEMENT, 15 ELEMENT,
16 TYPE, 16 TYPE,
17 ASSERT, 17 ASSERT,
18 CONSTANT, 18 CONSTANT,
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 /// Returns the list of [ConstantExpression]s for each of the arguments. If 126 /// Returns the list of [ConstantExpression]s for each of the arguments. If
127 /// [isValidAsConstant] is `false`, `null` is returned. 127 /// [isValidAsConstant] is `false`, `null` is returned.
128 List<ConstantExpression> get constantArguments { 128 List<ConstantExpression> get constantArguments {
129 if (!isValidAsConstant) return null; 129 if (!isValidAsConstant) return null;
130 return argumentResults.map((ResolutionResult result) { 130 return argumentResults.map((ResolutionResult result) {
131 return result.constant; 131 return result.constant;
132 }).toList(); 132 }).toList();
133 } 133 }
134 } 134 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution.dart ('k') | pkg/compiler/lib/src/resolution/scope.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698