JavaScript: Open-source extractor.

This commit is contained in:
Max Schaefer
2018-11-06 08:25:02 +00:00
parent e03b4f0cb6
commit 4c4920c3a9
992 changed files with 134506 additions and 0 deletions

View File

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