mirror of
https://github.com/github/codeql.git
synced 2026-07-12 23:15:40 +02:00
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
This commit is contained in:
@@ -1,30 +1,26 @@
|
||||
package com.semmle.js.ast;
|
||||
|
||||
/**
|
||||
* A while loop.
|
||||
*/
|
||||
/** A while loop. */
|
||||
public class WhileStatement extends Loop {
|
||||
private final Expression test;
|
||||
private final Expression test;
|
||||
|
||||
public WhileStatement(SourceLocation loc, Expression test, Statement body) {
|
||||
super("WhileStatement", loc, body);
|
||||
this.test = test;
|
||||
}
|
||||
public WhileStatement(SourceLocation loc, Expression test, Statement body) {
|
||||
super("WhileStatement", loc, body);
|
||||
this.test = test;
|
||||
}
|
||||
|
||||
@Override
|
||||
public <Q, A> A accept(Visitor<Q, A> v, Q q) {
|
||||
return v.visit(this, q);
|
||||
}
|
||||
@Override
|
||||
public <Q, A> A accept(Visitor<Q, A> v, Q q) {
|
||||
return v.visit(this, q);
|
||||
}
|
||||
|
||||
/**
|
||||
* The test expression of this while loop.
|
||||
*/
|
||||
public Expression getTest() {
|
||||
return test;
|
||||
}
|
||||
/** The test expression of this while loop. */
|
||||
public Expression getTest() {
|
||||
return test;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Node getContinueTarget() {
|
||||
return test;
|
||||
}
|
||||
@Override
|
||||
public Node getContinueTarget() {
|
||||
return test;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user