Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2013-02-19 01:44:39 +0000
committerSergey Prigogin2013-02-19 01:44:39 +0000
commite2cbee5c2b2dcddfff6f322bef32728df172d2af (patch)
tree510baa5066236f22b0be86b9bd3d724650e5a91c /core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTBinaryExpression.java
parente4966b7c0c0fc0c3841340a7c8f586d514eac9f1 (diff)
downloadorg.eclipse.cdt-e2cbee5c2b2dcddfff6f322bef32728df172d2af.tar.gz
org.eclipse.cdt-e2cbee5c2b2dcddfff6f322bef32728df172d2af.tar.xz
org.eclipse.cdt-e2cbee5c2b2dcddfff6f322bef32728df172d2af.zip
Cosmetics.
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTBinaryExpression.java')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTBinaryExpression.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTBinaryExpression.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTBinaryExpression.java
index e69f6acad4d..f8d836931c9 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTBinaryExpression.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTBinaryExpression.java
@@ -38,7 +38,7 @@ public class CPPASTBinaryExpression extends ASTNode implements ICPPASTBinaryExpr
private int op;
private ICPPASTExpression operand1;
private ICPPASTInitializerClause operand2;
-
+
private ICPPEvaluation evaluation;
private IASTImplicitName[] implicitNames = null;
@@ -55,7 +55,7 @@ public class CPPASTBinaryExpression extends ASTNode implements ICPPASTBinaryExpr
public CPPASTBinaryExpression copy() {
return copy(CopyStyle.withoutLocations);
}
-
+
@Override
public CPPASTBinaryExpression copy(CopyStyle style) {
CPPASTBinaryExpression copy = new CPPASTBinaryExpression();
@@ -99,7 +99,7 @@ public class CPPASTBinaryExpression extends ASTNode implements ICPPASTBinaryExpr
if (expression != null) {
if (!(expression instanceof ICPPASTExpression))
throw new IllegalArgumentException(expression.getClass().getName());
-
+
expression.setParent(this);
expression.setPropertyInParent(OPERAND_ONE);
}
@@ -148,7 +148,7 @@ public class CPPASTBinaryExpression extends ASTNode implements ICPPASTBinaryExpr
if (operand1 instanceof IASTBinaryExpression || operand2 instanceof IASTBinaryExpression) {
return acceptWithoutRecursion(this, action);
}
-
+
if (action.shouldVisitExpressions) {
switch (action.visit(this)) {
case ASTVisitor.PROCESS_ABORT: return false;
@@ -230,13 +230,13 @@ public class CPPASTBinaryExpression extends ASTNode implements ICPPASTBinaryExpr
if (op2 != null && !op2.accept(action))
return false;
}
-
+
if (action.shouldVisitExpressions && action.leave(expr) == ASTVisitor.PROCESS_ABORT)
return false;
-
+
stack= stack.fNext;
}
-
+
return true;
}
@@ -262,22 +262,22 @@ public class CPPASTBinaryExpression extends ASTNode implements ICPPASTBinaryExpr
return ((EvalBinary) eval).getOverload(this);
return null;
}
-
+
@Override
public ICPPEvaluation getEvaluation() {
- if (evaluation == null)
+ if (evaluation == null)
evaluation= computeEvaluation();
-
+
return evaluation;
}
-
+
private ICPPEvaluation computeEvaluation() {
if (operand1 == null || operand2 == null)
return EvalFixed.INCOMPLETE;
-
+
return new EvalBinary(op, operand1.getEvaluation(), operand2.getEvaluation());
}
-
+
@Override
public IType getExpressionType() {
return getEvaluation().getTypeOrFunctionSet(this);

Back to the top