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

Unified Diff: pkg/compiler/lib/src/constants/expressions.dart

Issue 2653203002: Use entities in CommonElements interface. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/core_types.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/constants/expressions.dart
diff --git a/pkg/compiler/lib/src/constants/expressions.dart b/pkg/compiler/lib/src/constants/expressions.dart
index 2a5b43489d858a17f83284561457802696937d63..ed2143d0bc89377566e4a9927bda7d2a70b4f855 100644
--- a/pkg/compiler/lib/src/constants/expressions.dart
+++ b/pkg/compiler/lib/src/constants/expressions.dart
@@ -236,7 +236,7 @@ class BoolConstantExpression extends PrimitiveConstantExpression {
}
@override
- ResolutionDartType getKnownType(CommonElements commonElements) =>
+ ResolutionInterfaceType getKnownType(CommonElements commonElements) =>
commonElements.boolType;
}
@@ -272,7 +272,7 @@ class IntConstantExpression extends PrimitiveConstantExpression {
}
@override
- ResolutionDartType getKnownType(CommonElements commonElements) =>
+ ResolutionInterfaceType getKnownType(CommonElements commonElements) =>
commonElements.intType;
}
@@ -308,7 +308,7 @@ class DoubleConstantExpression extends PrimitiveConstantExpression {
}
@override
- ResolutionDartType getKnownType(CommonElements commonElements) =>
+ ResolutionInterfaceType getKnownType(CommonElements commonElements) =>
commonElements.doubleType;
}
@@ -344,7 +344,7 @@ class StringConstantExpression extends PrimitiveConstantExpression {
}
@override
- ResolutionDartType getKnownType(CommonElements commonElements) =>
+ ResolutionInterfaceType getKnownType(CommonElements commonElements) =>
commonElements.stringType;
}
@@ -378,7 +378,7 @@ class NullConstantExpression extends PrimitiveConstantExpression {
bool _equals(NullConstantExpression other) => true;
@override
- ResolutionDartType getKnownType(CommonElements commonElements) =>
+ ResolutionInterfaceType getKnownType(CommonElements commonElements) =>
commonElements.nullType;
}
@@ -695,7 +695,7 @@ class ConcatenateConstantExpression extends ConstantExpression {
}
@override
- ResolutionDartType getKnownType(CommonElements commonElements) =>
+ ResolutionInterfaceType getKnownType(CommonElements commonElements) =>
commonElements.stringType;
@override
@@ -736,7 +736,7 @@ class SymbolConstantExpression extends ConstantExpression {
}
@override
- ResolutionDartType getKnownType(CommonElements commonElements) =>
+ ResolutionInterfaceType getKnownType(CommonElements commonElements) =>
commonElements.symbolType;
}
@@ -775,7 +775,7 @@ class TypeConstantExpression extends ConstantExpression {
}
@override
- ResolutionDartType getKnownType(CommonElements commonElements) =>
+ ResolutionInterfaceType getKnownType(CommonElements commonElements) =>
commonElements.typeType;
}
@@ -843,7 +843,7 @@ class FunctionConstantExpression extends ConstantExpression {
}
@override
- ResolutionDartType getKnownType(CommonElements commonElements) =>
+ ResolutionInterfaceType getKnownType(CommonElements commonElements) =>
commonElements.functionType;
}
@@ -894,7 +894,7 @@ class BinaryConstantExpression extends ConstantExpression {
left.apply(arguments), operator, right.apply(arguments));
}
- ResolutionDartType getKnownType(CommonElements commonElements) {
+ ResolutionInterfaceType getKnownType(CommonElements commonElements) {
ResolutionDartType knownLeftType = left.getKnownType(commonElements);
ResolutionDartType knownRightType = right.getKnownType(commonElements);
switch (operator.kind) {
@@ -1036,7 +1036,7 @@ class IdenticalConstantExpression extends ConstantExpression {
}
@override
- ResolutionDartType getKnownType(CommonElements commonElements) =>
+ ResolutionInterfaceType getKnownType(CommonElements commonElements) =>
commonElements.boolType;
@override
@@ -1155,7 +1155,7 @@ class StringLengthConstantExpression extends ConstantExpression {
}
@override
- ResolutionDartType getKnownType(CommonElements commonElements) =>
+ ResolutionInterfaceType getKnownType(CommonElements commonElements) =>
commonElements.intType;
@override
@@ -1408,7 +1408,7 @@ class BoolFromEnvironmentConstantExpression
}
@override
- ResolutionDartType getKnownType(CommonElements commonElements) =>
+ ResolutionInterfaceType getKnownType(CommonElements commonElements) =>
commonElements.boolType;
}
@@ -1474,7 +1474,7 @@ class IntFromEnvironmentConstantExpression
}
@override
- ResolutionDartType getKnownType(CommonElements commonElements) =>
+ ResolutionInterfaceType getKnownType(CommonElements commonElements) =>
commonElements.intType;
}
@@ -1536,7 +1536,7 @@ class StringFromEnvironmentConstantExpression
}
@override
- ResolutionDartType getKnownType(CommonElements commonElements) =>
+ ResolutionInterfaceType getKnownType(CommonElements commonElements) =>
commonElements.stringType;
}
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/core_types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698