Java: Rename Block -> BlockStmt

This commit is contained in:
Jonas Jensen
2020-09-08 08:19:18 +02:00
parent ab90f06ddf
commit 464d3630a2
25 changed files with 95 additions and 68 deletions

View File

@@ -51,9 +51,9 @@ class ImpureStmt extends Stmt {
/**
* Get any non-block stmt in the block, including those nested within blocks.
*/
private Stmt getANestedStmt(Block block) {
private Stmt getANestedStmt(BlockStmt block) {
// Any non-block statement
not result instanceof Block and result = block.getAStmt()
not result instanceof BlockStmt and result = block.getAStmt()
or
// Or any statement nested in a block
result = getANestedStmt(block.getAStmt())