mirror of
https://github.com/github/codeql.git
synced 2026-07-12 15:05:33 +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
25 lines
617 B
Java
25 lines
617 B
Java
package com.semmle.js.ast;
|
|
|
|
/**
|
|
* A loop statement, that is, a {@link WhileStatement}, a {@link DoWhileStatement}, a {@link
|
|
* ForStatement}, or a {@link EnhancedForStatement}.
|
|
*/
|
|
public abstract class Loop extends Statement {
|
|
protected final Statement body;
|
|
|
|
public Loop(String type, SourceLocation loc, Statement body) {
|
|
super(type, loc);
|
|
this.body = body;
|
|
}
|
|
|
|
/** The loop body. */
|
|
public final Statement getBody() {
|
|
return body;
|
|
}
|
|
|
|
/**
|
|
* The child node of this loop where execution resumes after a <code>continue</code> statement.
|
|
*/
|
|
public abstract Node getContinueTarget();
|
|
}
|