mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +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,43 +1,35 @@
|
||||
package com.semmle.js.ast;
|
||||
|
||||
/**
|
||||
* A block in a comprehension expression.
|
||||
*/
|
||||
/** A block in a comprehension expression. */
|
||||
public class ComprehensionBlock extends Expression {
|
||||
private final IPattern left;
|
||||
private final Expression right;
|
||||
private final boolean of;
|
||||
private final IPattern left;
|
||||
private final Expression right;
|
||||
private final boolean of;
|
||||
|
||||
public ComprehensionBlock(SourceLocation loc, IPattern left, Expression right, Boolean of) {
|
||||
super("ComprehensionBlock", loc);
|
||||
this.left = left;
|
||||
this.right = right;
|
||||
this.of = of != Boolean.FALSE;
|
||||
}
|
||||
public ComprehensionBlock(SourceLocation loc, IPattern left, Expression right, Boolean of) {
|
||||
super("ComprehensionBlock", loc);
|
||||
this.left = left;
|
||||
this.right = right;
|
||||
this.of = of != Boolean.FALSE;
|
||||
}
|
||||
|
||||
@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 iterator variable of this comprehension block.
|
||||
*/
|
||||
public IPattern getLeft() {
|
||||
return left;
|
||||
}
|
||||
/** The iterator variable of this comprehension block. */
|
||||
public IPattern getLeft() {
|
||||
return left;
|
||||
}
|
||||
|
||||
/**
|
||||
* The expression this comprehension block iterates over.
|
||||
*/
|
||||
public Expression getRight() {
|
||||
return right;
|
||||
}
|
||||
/** The expression this comprehension block iterates over. */
|
||||
public Expression getRight() {
|
||||
return right;
|
||||
}
|
||||
|
||||
/**
|
||||
* Is this a <code>for-of</code> comprehension block?
|
||||
*/
|
||||
public boolean isOf() {
|
||||
return of;
|
||||
}
|
||||
/** Is this a <code>for-of</code> comprehension block? */
|
||||
public boolean isOf() {
|
||||
return of;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user