tuna-master/joern/src/main/java/ast/statements/CompoundStatement.java
package ast.statements;

import ast.ASTNode;
import ast.walking.ASTNodeVisitor;

import java.util.LinkedList;
import java.util.List;

public class CompoundStatement extends Statement {
    protected static final List<ASTNode> emptyList = new LinkedList<ASTNode>();

    public void addStatement(ASTNode stmt) {
        super.addChild(stmt);
    }

    public List<ASTNode> getStatements() {
        if (children == null)
            return emptyList;
        return children;
    }

    public String getEscapedCodeStr() {
        return "";
    }

    public void accept(ASTNodeVisitor visitor) {
        visitor.visit(this);
    }
}
