1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

Bug 339780 - Source hover for specialization of specialization does not work

This commit is contained in:
Marc-Andre Laperle 2011-03-15 01:03:34 +00:00
parent d2b90dc584
commit 18cae2a524

View file

@ -218,11 +218,14 @@ public class CSourceHover extends AbstractCEditorTextHover {
// in case the binding is a non-explicit specialization we need
// to consider the original binding (bug 281396)
if (names.length == 0 && binding instanceof ICPPSpecialization) {
binding= ((ICPPSpecialization) binding).getSpecializedBinding();
if (!(binding instanceof IProblemBinding)) {
names= findDefsOrDecls(ast, binding);
while (names.length == 0 && binding instanceof ICPPSpecialization) {
IBinding specializedBinding = ((ICPPSpecialization) binding).getSpecializedBinding();
if (specializedBinding == null || specializedBinding instanceof IProblemBinding) {
break;
}
names = findDefsOrDecls(ast, specializedBinding);
binding = specializedBinding;
}
if (names.length > 0) {
for (IName name : names) {