mirror of
https://github.com/github/codeql.git
synced 2026-07-20 18:58:36 +02:00
No special settings; command: find javascript/extractor/src -name "*.java" | xargs java -jar /path/to/google-java-format-1.7-all-deps.jar --replace
22 lines
479 B
Java
22 lines
479 B
Java
package com.semmle.js.ast;
|
|
|
|
/** A <code>throw</code> statement. */
|
|
public class ThrowStatement extends Statement {
|
|
private final Expression argument;
|
|
|
|
public ThrowStatement(SourceLocation loc, Expression argument) {
|
|
super("ThrowStatement", loc);
|
|
this.argument = argument;
|
|
}
|
|
|
|
@Override
|
|
public <Q, A> A accept(Visitor<Q, A> v, Q q) {
|
|
return v.visit(this, q);
|
|
}
|
|
|
|
/** The thrown expression. */
|
|
public Expression getArgument() {
|
|
return argument;
|
|
}
|
|
}
|