Refactoring: CFG.LexicalScope --> CFG.BlockScope #KT-11965 Fixed
This commit is contained in:
@@ -147,8 +147,8 @@ public abstract class AbstractPseudocodeTest extends KotlinTestWithEnvironment {
|
||||
}
|
||||
|
||||
private static String getDepthInstructionPrefix(@NotNull Instruction instruction, @Nullable Instruction previous) {
|
||||
Integer prevDepth = previous != null ? previous.getLexicalScope().getDepth() : null;
|
||||
int depth = instruction.getLexicalScope().getDepth();
|
||||
Integer prevDepth = previous != null ? previous.getBlockScope().getDepth() : null;
|
||||
int depth = instruction.getBlockScope().getDepth();
|
||||
if (prevDepth == null || depth != prevDepth) {
|
||||
return String.format("%2d ", depth);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user