diff options
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/EvalUnaryTypeID.java')
-rw-r--r-- | core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/EvalUnaryTypeID.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/EvalUnaryTypeID.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/EvalUnaryTypeID.java index 2e3beb57384..a13c16fad6a 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/EvalUnaryTypeID.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/EvalUnaryTypeID.java @@ -137,6 +137,16 @@ public class EvalUnaryTypeID extends CPPDependentEvaluation { } @Override + public boolean isEquivalentTo(ICPPEvaluation other) { + if (!(other instanceof EvalUnaryTypeID)) { + return false; + } + EvalUnaryTypeID o = (EvalUnaryTypeID) other; + return fOperator == o.fOperator + && fOrigType.isSameType(o.fOrigType); + } + + @Override public IType getType() { if (fType == null) fType= computeType(); |