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:
Max Schaefer
2019-02-28 14:30:06 +00:00
parent 5478e0da62
commit c4fa29dd0f
304 changed files with 30389 additions and 30395 deletions

View File

@@ -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;
}
}