1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 01:45:33 +02:00

Added toString() method

Change-Id: Ieb9e66af1bd290ebe5f8bdce82d0778ea6da2809
This commit is contained in:
Sergey Prigogin 2017-03-13 19:57:06 -07:00
parent fc6fad911b
commit 8bfd2cdc22

View file

@ -99,4 +99,16 @@ public class CPPFunctionSet implements ICPPTwoPhaseBinding {
fName.setBinding(new CPPDeferredFunction(null, fName.toCharArray(), fBindings));
}
}
/** For debugging only */
@Override
public String toString() {
if (fName != null)
return fName.toString();
try {
return String.join("::", fBindings[0].getQualifiedName()); //$NON-NLS-1$
} catch (DOMException e) {
return super.toString();
}
}
}