mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-10 12:03:16 +02:00
Implemented isSameType for PDOMCTypedef for 164696.
This commit is contained in:
parent
00b44da134
commit
7395254810
1 changed files with 19 additions and 1 deletions
|
@ -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;}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue