1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 03:53:21 +02:00

Implemented isSameType for PDOMCTypedef for 164696.

This commit is contained in:
Doug Schaefer 2006-11-17 17:28:21 +00:00
parent 00b44da134
commit 7395254810

View file

@ -68,7 +68,25 @@ class PDOMCTypedef extends PDOMBinding implements ITypedef, ITypeContainer {
}
}
public boolean isSameType(IType type) {
try {
if (type instanceof PDOMBinding)
return record == ((PDOMBinding)type).getRecord();
IType myrtype = getType();
if (myrtype == null)
return false;
if (type instanceof ITypedef) {
IType rtype = ((ITypedef)type).getType();
return rtype != null ? myrtype.isSameType(rtype) : false;
}
} catch (DOMException e) {
CCorePlugin.log(e);
}
return false;
}
public void setType(IType type) {fail();}
public boolean isSameType(IType type) {fail(); return false;}
public Object clone() {fail(); return null;}
}