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() { public ICPPScope getUnknownScope() {
if( unknownScope == null ) { 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; return unknownScope;
} }

View file

@ -40,7 +40,11 @@ public class CPPTemplateTypeParameter extends CPPTemplateParameter implements
public ICPPScope getUnknownScope() { public ICPPScope getUnknownScope() {
if( unknownScope == null ) { 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; return unknownScope;
} }

View file

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