1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

find constructors

This commit is contained in:
Andrew Niefer 2005-03-01 22:39:16 +00:00
parent b7f7126ca2
commit 274efaabb9

View file

@ -189,8 +189,12 @@ public class CPPClassScope extends CPPScope implements ICPPClassScope {
/* (non-Javadoc)
* @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();
ICPPASTCompositeTypeSpecifier compType = (ICPPASTCompositeTypeSpecifier) getPhysicalNode();
if( CharArrayUtils.equals( n, compType.getName().toCharArray() ) ){
return (IBinding[]) ArrayUtil.addAll( IBinding.class, null, getConstructors() );
}
if( bindings.containsKey( n ) ){
Object o = bindings.get( n );
if( o instanceof IBinding[] )