mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-08 08:45:44 +02:00
Bug 510706 - Handle UniqueType in SignatureBuilder.marshalType()
Change-Id: I3686e3c32cacbcbad299de333eee32241a4697a5
This commit is contained in:
parent
a3b4bc6852
commit
5fd108cd66
2 changed files with 7 additions and 1 deletions
|
@ -76,6 +76,12 @@ class SignatureBuilder implements ITypeMarshalBuffer {
|
|||
putShort(NULL_TYPE);
|
||||
} else if (type instanceof IBinding) {
|
||||
marshalBinding((IBinding) type);
|
||||
} else if (type instanceof UniqueType) {
|
||||
// UniqueType is not an ISerializableType because there should never be
|
||||
// a need to write it to the index, but it can appear in a signature
|
||||
// during partial ordering of function templates.
|
||||
appendSeparator();
|
||||
fBuffer.append("<UniqueType>"); //$NON-NLS-1$
|
||||
} else {
|
||||
assert false : "Cannot serialize " + ASTTypeUtil.getType(type) + " (" + type.getClass().getName() + ")"; //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$
|
||||
putShort(UNSTORABLE_TYPE);
|
||||
|
|
|
@ -135,7 +135,7 @@ public final class TypeMarshalBuffer implements ITypeMarshalBuffer {
|
|||
} else if (type instanceof IBinding) {
|
||||
marshalBinding((IBinding) type);
|
||||
} else {
|
||||
assert false : "Cannot serialize " + ASTTypeUtil.getType(type) + " (" + type.getClass().getName() + ")"; //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$
|
||||
CCorePlugin.log("Cannot serialize " + ASTTypeUtil.getType(type) + " (" + type.getClass().getName() + ")"); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$
|
||||
putShort(UNSTORABLE_TYPE);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue