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

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

Issue 2603263002: Prefix resolution_types with Resolution. (Closed)
Patch Set: Rebased 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
Index: pkg/compiler/lib/src/constants/constructors.dart
diff --git a/pkg/compiler/lib/src/constants/constructors.dart b/pkg/compiler/lib/src/constants/constructors.dart
index 1b5f744fa28e7b67be7261506b29e19f1479ef75..8199bbcf982cdbabd1496eb591ef7e2b7cd2522b 100644
--- a/pkg/compiler/lib/src/constants/constructors.dart
+++ b/pkg/compiler/lib/src/constants/constructors.dart
@@ -23,7 +23,7 @@ abstract class ConstantConstructor {
/// Computes the type of the instance created in a const constructor
/// invocation with type [newType].
- InterfaceType computeInstanceType(InterfaceType newType);
+ ResolutionInterfaceType computeInstanceType(ResolutionInterfaceType newType);
/// Computes the constant expressions of the fields of the created instance
/// in a const constructor invocation with [arguments].
@@ -49,7 +49,7 @@ abstract class ConstantConstructorVisitor<R, A> {
/// A generative constant constructor.
class GenerativeConstantConstructor implements ConstantConstructor {
- final InterfaceType type;
+ final ResolutionInterfaceType type;
final Map<dynamic /*int|String*/, ConstantExpression> defaultValues;
final Map<FieldElement, ConstantExpression> fieldMap;
final ConstructedConstantExpression superConstructorInvocation;
@@ -59,7 +59,7 @@ class GenerativeConstantConstructor implements ConstantConstructor {
ConstantConstructorKind get kind => ConstantConstructorKind.GENERATIVE;
- InterfaceType computeInstanceType(InterfaceType newType) {
+ ResolutionInterfaceType computeInstanceType(ResolutionInterfaceType newType) {
return type.substByContext(newType);
}
@@ -152,7 +152,7 @@ class RedirectingGenerativeConstantConstructor implements ConstantConstructor {
return ConstantConstructorKind.REDIRECTING_GENERATIVE;
}
- InterfaceType computeInstanceType(InterfaceType newType) {
+ ResolutionInterfaceType computeInstanceType(ResolutionInterfaceType newType) {
return thisConstructorInvocation
.computeInstanceType()
.substByContext(newType);
@@ -207,7 +207,7 @@ class RedirectingFactoryConstantConstructor implements ConstantConstructor {
return ConstantConstructorKind.REDIRECTING_FACTORY;
}
- InterfaceType computeInstanceType(InterfaceType newType) {
+ ResolutionInterfaceType computeInstanceType(ResolutionInterfaceType newType) {
return targetConstructorInvocation
.computeInstanceType()
.substByContext(newType);
« no previous file with comments | « pkg/compiler/lib/src/constants/constant_system.dart ('k') | pkg/compiler/lib/src/constants/expressions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698