Files
codeql/javascript/extractor/src/com/semmle/js/ast/DoWhileStatement.java
Max Schaefer c4fa29dd0f JavaScript: Autoformat extractor sources using google-java-format.
No special settings; command:

  find javascript/extractor/src -name "*.java" | xargs java -jar /path/to/google-java-format-1.7-all-deps.jar --replace
2019-02-28 14:30:06 +00:00

27 lines
597 B
Java

package com.semmle.js.ast;
/** A do-while statement of the form <code>do { ... } while(...);</code>. */
public class DoWhileStatement extends Loop {
private final Expression test;
public DoWhileStatement(SourceLocation loc, Expression test, Statement body) {
super("DoWhileStatement", loc, body);
this.test = test;
}
@Override
public <Q, A> A accept(Visitor<Q, A> v, Q q) {
return v.visit(this, q);
}
/** The test expression of this loop. */
public Expression getTest() {
return test;
}
@Override
public Node getContinueTarget() {
return test;
}
}