package com.semmle.js.ast; import java.util.List; /** A block statement such as { console.log("Hi"); }. */ public class BlockStatement extends Statement { private final List body; public BlockStatement(SourceLocation loc, List body) { super("BlockStatement", loc); this.body = body; } @Override public A accept(Visitor v, Q q) { return v.visit(this, q); } /** The statements in the block. */ public List getBody() { return body; } }