mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
find constructors
This commit is contained in:
parent
b7f7126ca2
commit
274efaabb9
1 changed files with 5 additions and 1 deletions
|
@ -189,8 +189,12 @@ public class CPPClassScope extends CPPScope implements ICPPClassScope {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IScope#find(java.lang.String)
|
* @see org.eclipse.cdt.core.dom.ast.IScope#find(java.lang.String)
|
||||||
*/
|
*/
|
||||||
public IBinding[] find(String name) {
|
public IBinding[] find(String name) throws DOMException {
|
||||||
char [] n = name.toCharArray();
|
char [] n = name.toCharArray();
|
||||||
|
ICPPASTCompositeTypeSpecifier compType = (ICPPASTCompositeTypeSpecifier) getPhysicalNode();
|
||||||
|
if( CharArrayUtils.equals( n, compType.getName().toCharArray() ) ){
|
||||||
|
return (IBinding[]) ArrayUtil.addAll( IBinding.class, null, getConstructors() );
|
||||||
|
}
|
||||||
if( bindings.containsKey( n ) ){
|
if( bindings.containsKey( n ) ){
|
||||||
Object o = bindings.get( n );
|
Object o = bindings.get( n );
|
||||||
if( o instanceof IBinding[] )
|
if( o instanceof IBinding[] )
|
||||||
|
|
Loading…
Add table
Reference in a new issue