Better support for forced resolve while debugging
This commit is contained in:
@@ -83,19 +83,21 @@ public class ForceResolveUtil {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void forceResolveAllContents(@Nullable JetType type) {
|
@Nullable
|
||||||
if (type == null) return;
|
public static JetType forceResolveAllContents(@Nullable JetType type) {
|
||||||
|
if (type == null) return null;
|
||||||
|
|
||||||
if (type instanceof FlexibleType) {
|
if (type instanceof FlexibleType) {
|
||||||
FlexibleType flexibleType = (FlexibleType) type;
|
FlexibleType flexibleType = (FlexibleType) type;
|
||||||
forceResolveAllContents(flexibleType.getLowerBound());
|
forceResolveAllContents(flexibleType.getLowerBound());
|
||||||
forceResolveAllContents(flexibleType.getUpperBound());
|
forceResolveAllContents(flexibleType.getUpperBound());
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
forceResolveAllContents(type.getConstructor());
|
forceResolveAllContents(type.getConstructor());
|
||||||
for (TypeProjection projection : type.getArguments()) {
|
for (TypeProjection projection : type.getArguments()) {
|
||||||
forceResolveAllContents(projection.getType());
|
forceResolveAllContents(projection.getType());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user