Refactoring: CFG.LexicalScope --> CFG.BlockScope #KT-11965 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-04-19 18:41:12 +03:00
parent cda4d2dcce
commit a5b428d9ce
29 changed files with 168 additions and 168 deletions
@@ -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);
}