`Block` has apparently been deprecated and renamed to `BlockStmt` a while
ago. Support for `Block` was recently removed completely.
this = any(MacroInvocation mi |
mi.getOutermostMacroAccess().getMacroName() = "chunk_from_chars"
/* ignore global static uses of the macro */
- and exists (Block b | mi.getExpr().getEnclosingBlock() = b)
+ and exists (BlockStmt b | mi.getExpr().getEnclosingBlock() = b)
).getExpr()
}
}
}
}
-Block enclosingBlock(Block b) {
+BlockStmt enclosingBlock(BlockStmt b) {
result = b.getEnclosingBlock()
}