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

implement getQualifiedName for unknown template bindings

This commit is contained in:
Andrew Niefer 2005-06-03 14:33:42 +00:00
parent 1d6a584519
commit 153639e016
3 changed files with 15 additions and 10 deletions

View file

@ -59,7 +59,11 @@ public class CPPTemplateTemplateParameter extends CPPTemplateParameter implement
public ICPPScope getUnknownScope() {
if( unknownScope == null ) {
unknownScope = new CPPUnknownScope( this, null );
IASTName n = null;
IASTNode[] nodes = getDeclarations();
if( nodes != null && nodes.length > 0 )
n = (IASTName) nodes[0];
unknownScope = new CPPUnknownScope( this, n );
}
return unknownScope;
}

View file

@ -40,7 +40,11 @@ public class CPPTemplateTypeParameter extends CPPTemplateParameter implements
public ICPPScope getUnknownScope() {
if( unknownScope == null ) {
unknownScope = new CPPUnknownScope( this, null );
IASTName n = null;
IASTNode[] nodes = getDeclarations();
if( nodes != null && nodes.length > 0 )
n = (IASTName) nodes[0];
unknownScope = new CPPUnknownScope( this, n );
}
return unknownScope;
}

View file

@ -95,24 +95,21 @@ public class CPPUnknownBinding implements ICPPInternalUnknown {
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.cpp.ICPPBinding#getQualifiedName()
*/
public String[] getQualifiedName() throws DOMException {
// TODO Auto-generated method stub
return null;
public String[] getQualifiedName() {
return CPPVisitor.getQualifiedName( this );
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.cpp.ICPPBinding#getQualifiedNameCharArray()
*/
public char[][] getQualifiedNameCharArray() throws DOMException {
// TODO Auto-generated method stub
return null;
public char[][] getQualifiedNameCharArray() {
return CPPVisitor.getQualifiedNameCharArray( this );
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.cpp.ICPPBinding#isGloballyQualified()
*/
public boolean isGloballyQualified() throws DOMException {
// TODO Auto-generated method stub
public boolean isGloballyQualified() {
return false;
}