mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
getSourceElementsAtOffset() was not returning the children
This commit is contained in:
parent
a353701633
commit
d537a34599
1 changed files with 1 additions and 2 deletions
|
@ -149,9 +149,8 @@ public abstract class CElement extends PlatformObject implements ICElement {
|
|||
if (child instanceof Parent) {
|
||||
ICElement[] elements = ((Parent)child).getSourceElementsAtOffset(offset);
|
||||
list.addAll(Arrays.asList(elements));
|
||||
} else {
|
||||
list.add(child);
|
||||
}
|
||||
list.add(child);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue