Files
codeql/javascript/extractor/src/com/semmle/js/ast/Loop.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

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();
}