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:
parent
1d6a584519
commit
153639e016
3 changed files with 15 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue