Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2016-09-25 18:22:05 +0000
committerSergey Prigogin2016-09-25 18:22:05 +0000
commit53ec9571cb132f17266802903b2f9e22bc726dae (patch)
tree060de01bb824700ac4b106aa0b50ed7f7f15d04c /core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTCastExpression.java
parentd758c73e31961d0968517e4764ccab7bad4b3371 (diff)
downloadorg.eclipse.cdt-53ec9571cb132f17266802903b2f9e22bc726dae.tar.gz
org.eclipse.cdt-53ec9571cb132f17266802903b2f9e22bc726dae.tar.xz
org.eclipse.cdt-53ec9571cb132f17266802903b2f9e22bc726dae.zip
Cosmetics.
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTCastExpression.java')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTCastExpression.java30
1 files changed, 15 insertions, 15 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTCastExpression.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTCastExpression.java
index 1b631469581..cf4807b0388 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTCastExpression.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTCastExpression.java
@@ -42,18 +42,18 @@ public class CPPASTCastExpression extends ASTNode implements ICPPASTCastExpressi
public CPPASTCastExpression() {
}
-
+
public CPPASTCastExpression(int operator, IASTTypeId typeId, IASTExpression operand) {
fOperator = operator;
setOperand(operand);
setTypeId(typeId);
}
-
+
@Override
public CPPASTCastExpression copy() {
return copy(CopyStyle.withoutLocations);
}
-
+
@Override
public CPPASTCastExpression copy(CopyStyle style) {
CPPASTCastExpression copy = new CPPASTCastExpression();
@@ -78,7 +78,7 @@ public class CPPASTCastExpression extends ASTNode implements ICPPASTCastExpressi
public IASTTypeId getTypeId() {
return fTypeId;
}
-
+
@Override
public int getOperator() {
return fOperator;
@@ -104,7 +104,7 @@ public class CPPASTCastExpression extends ASTNode implements ICPPASTCastExpressi
expression.setPropertyInParent(OPERAND);
}
}
-
+
@Override
public IASTImplicitDestructorName[] getImplicitDestructorNames() {
if (fImplicitDestructorNames == null) {
@@ -123,11 +123,11 @@ public class CPPASTCastExpression extends ASTNode implements ICPPASTCastExpressi
default: break;
}
}
-
+
if (fTypeId != null && !fTypeId.accept(action)) return false;
IASTExpression op = getOperand();
if (op != null && !op.accept(action)) return false;
-
+
if (action.shouldVisitImplicitDestructorNames && !acceptByNodes(getImplicitDestructorNames(), action))
return false;
@@ -149,25 +149,25 @@ public class CPPASTCastExpression extends ASTNode implements ICPPASTCastExpressi
fOperand = (ICPPASTExpression) other;
}
}
-
-
+
+
@Override
public ICPPEvaluation getEvaluation() {
- if (fEvaluation == null)
+ if (fEvaluation == null)
fEvaluation= computeEvaluation();
-
+
return fEvaluation;
}
-
+
private ICPPEvaluation computeEvaluation() {
if (fOperand == null)
return EvalFixed.INCOMPLETE;
-
+
IType type= CPPVisitor.createType(getTypeId());
if (type == null || type instanceof IProblemType)
return EvalFixed.INCOMPLETE;
-
- return new EvalTypeId(type, this, false, ((ICPPEvaluationOwner)fOperand).getEvaluation());
+
+ return new EvalTypeId(type, this, false, ((ICPPEvaluationOwner) fOperand).getEvaluation());
}
@Override

Back to the top