Concrete visitor for all AST classes.
Base class for all AST node.
Concrete constant visitor for all AST classes.
Check if variable is used in given block.
bool variable_used(const ast::Node &node, std::string name)
std::string var_name
variable to check usage
void visit_name(const ast::Name &node) override
rename matching variable
VarUsageVisitor()=default
encapsulates code generation backend implementations
static Node * node(Object *)