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

Unified Diff: sdk/lib/_internal/compiler/implementation/inferrer/type_graph_inferrer.dart

Issue 614993002: Rename Constant to ConstantValue and ConstExp to ConstantExpression. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/inferrer/type_graph_inferrer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/inferrer/type_graph_inferrer.dart b/sdk/lib/_internal/compiler/implementation/inferrer/type_graph_inferrer.dart
index 86aff81c27b3a2e82981f05d4b7d3eaeda43f76e..4fe4e171392162649f92c6054546c19ea5393dd1 100644
--- a/sdk/lib/_internal/compiler/implementation/inferrer/type_graph_inferrer.dart
+++ b/sdk/lib/_internal/compiler/implementation/inferrer/type_graph_inferrer.dart
@@ -778,12 +778,12 @@ class TypeGraphInferrerEngine
if (type is! ListTypeInformation && type is! MapTypeInformation) {
// For non-container types, the constant handler does
// constant folding that could give more precise results.
- ConstExp constant = compiler.backend.constants
+ ConstantExpression constant = compiler.backend.constants
.getConstantForVariable(element);
if (constant != null) {
- Constant value = constant.value;
+ ConstantValue value = constant.value;
if (value.isFunction) {
- FunctionConstant functionConstant = value;
+ FunctionConstantValue functionConstant = value;
type = types.allocateClosure(node, functionConstant.element);
} else {
// Although we might find a better type, we have to keep

Powered by Google App Engine
This is Rietveld 408576698