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

Unified Diff: pkg/compiler/lib/src/deferred_load.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
« no previous file with comments | « pkg/compiler/lib/src/core_types.dart ('k') | pkg/compiler/lib/src/elements/common.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/deferred_load.dart
diff --git a/pkg/compiler/lib/src/deferred_load.dart b/pkg/compiler/lib/src/deferred_load.dart
index 01f03ef84e057de986e84e3e398aa59425224b67..5359f61ba64bb6c00d568eb3e9f11bf44f486ad4 100644
--- a/pkg/compiler/lib/src/deferred_load.dart
+++ b/pkg/compiler/lib/src/deferred_load.dart
@@ -278,27 +278,27 @@ class DeferredLoadTask extends CompilerTask {
}
/// Recursively collects all the dependencies of [type].
- void collectTypeDependencies(DartType type) {
+ void collectTypeDependencies(ResolutionDartType type) {
// TODO(het): we would like to separate out types that are only needed for
// rti from types that are needed for their members.
if (type is GenericType) {
type.typeArguments.forEach(collectTypeDependencies);
}
- if (type is FunctionType) {
- for (DartType argumentType in type.parameterTypes) {
+ if (type is ResolutionFunctionType) {
+ for (ResolutionDartType argumentType in type.parameterTypes) {
collectTypeDependencies(argumentType);
}
- for (DartType argumentType in type.optionalParameterTypes) {
+ for (ResolutionDartType argumentType in type.optionalParameterTypes) {
collectTypeDependencies(argumentType);
}
- for (DartType argumentType in type.namedParameterTypes) {
+ for (ResolutionDartType argumentType in type.namedParameterTypes) {
collectTypeDependencies(argumentType);
}
collectTypeDependencies(type.returnType);
- } else if (type is TypedefType) {
+ } else if (type is ResolutionTypedefType) {
elements.add(type.element);
collectTypeDependencies(type.unaliased);
- } else if (type is InterfaceType) {
+ } else if (type is ResolutionInterfaceType) {
elements.add(type.element);
}
}
@@ -338,7 +338,7 @@ class DeferredLoadTask extends CompilerTask {
default:
}
}, visitTypeUse: (TypeUse typeUse) {
- DartType type = typeUse.type;
+ ResolutionDartType type = typeUse.type;
switch (typeUse.kind) {
case TypeUseKind.TYPE_LITERAL:
if (type.isTypedef || type.isInterfaceType) {
« no previous file with comments | « pkg/compiler/lib/src/core_types.dart ('k') | pkg/compiler/lib/src/elements/common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698