mirror of
https://github.com/github/codeql.git
synced 2026-07-13 15:28:16 +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,29 +1,30 @@
|
||||
package com.semmle.js.ast;
|
||||
|
||||
/**
|
||||
* An expression involving an operator and two operands; may be an
|
||||
* {@link AssignmentExpression}, a {@link BinaryExpression} or a {@link LogicalExpression}.
|
||||
* An expression involving an operator and two operands; may be an {@link AssignmentExpression}, a
|
||||
* {@link BinaryExpression} or a {@link LogicalExpression}.
|
||||
*/
|
||||
public abstract class ABinaryExpression extends Expression {
|
||||
private final String operator;
|
||||
private final Expression left, right;
|
||||
private final String operator;
|
||||
private final Expression left, right;
|
||||
|
||||
public ABinaryExpression(SourceLocation loc, String type, String operator, Expression left, Expression right) {
|
||||
super(type, loc);
|
||||
this.operator = operator;
|
||||
this.left = left;
|
||||
this.right = right;
|
||||
}
|
||||
public ABinaryExpression(
|
||||
SourceLocation loc, String type, String operator, Expression left, Expression right) {
|
||||
super(type, loc);
|
||||
this.operator = operator;
|
||||
this.left = left;
|
||||
this.right = right;
|
||||
}
|
||||
|
||||
public String getOperator() {
|
||||
return operator;
|
||||
}
|
||||
public String getOperator() {
|
||||
return operator;
|
||||
}
|
||||
|
||||
public Expression getLeft() {
|
||||
return left;
|
||||
}
|
||||
public Expression getLeft() {
|
||||
return left;
|
||||
}
|
||||
|
||||
public Expression getRight() {
|
||||
return right;
|
||||
}
|
||||
public Expression getRight() {
|
||||
return right;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user