}
Node parent = node.getParentNode();
if (node instanceof BlockNode && node.getChildren().isEmpty()
&& parent != null) {
// remove empty block
parent.removeChild(node);
}
}
public static void addVariable(VariableNode node) {
variables.put(node.getName(), node);