mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Code formatting.
This commit is contained in:
parent
677a3e2eaf
commit
8e979bd30c
1 changed files with 12 additions and 10 deletions
|
@ -34,14 +34,14 @@ import org.eclipse.core.runtime.PlatformObject;
|
||||||
* Binding for a c++ enumerator.
|
* Binding for a c++ enumerator.
|
||||||
*/
|
*/
|
||||||
public class CPPEnumerator extends PlatformObject implements IEnumerator, ICPPInternalBinding {
|
public class CPPEnumerator extends PlatformObject implements IEnumerator, ICPPInternalBinding {
|
||||||
|
|
||||||
private IASTName enumName;
|
private IASTName enumName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param enumerator
|
* @param enumerator
|
||||||
*/
|
*/
|
||||||
public CPPEnumerator( IASTName enumerator ) {
|
public CPPEnumerator(IASTName enumerator) {
|
||||||
this.enumName = enumerator;
|
this.enumName = enumerator;
|
||||||
enumerator.setBinding( this );
|
enumerator.setBinding(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
@ -57,8 +57,10 @@ public class CPPEnumerator extends PlatformObject implements IEnumerator, ICPPIn
|
||||||
public IASTNode getDefinition() {
|
public IASTNode getDefinition() {
|
||||||
return enumName;
|
return enumName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeDeclaration(IASTNode node) {
|
public void removeDeclaration(IASTNode node) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IBinding#getName()
|
* @see org.eclipse.cdt.core.dom.ast.IBinding#getName()
|
||||||
*/
|
*/
|
||||||
|
@ -77,7 +79,7 @@ public class CPPEnumerator extends PlatformObject implements IEnumerator, ICPPIn
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IBinding#getScope()
|
* @see org.eclipse.cdt.core.dom.ast.IBinding#getScope()
|
||||||
*/
|
*/
|
||||||
public IScope getScope() {
|
public IScope getScope() {
|
||||||
return CPPVisitor.getContainingScope( enumName );
|
return CPPVisitor.getContainingScope(enumName);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
@ -101,14 +103,14 @@ public class CPPEnumerator extends PlatformObject implements IEnumerator, ICPPIn
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IBinding#getFullyQualifiedName()
|
* @see org.eclipse.cdt.core.dom.ast.IBinding#getFullyQualifiedName()
|
||||||
*/
|
*/
|
||||||
public String[] getQualifiedName() {
|
public String[] getQualifiedName() {
|
||||||
return CPPVisitor.getQualifiedName( this );
|
return CPPVisitor.getQualifiedName(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IBinding#getFullyQualifiedNameCharArray()
|
* @see org.eclipse.cdt.core.dom.ast.IBinding#getFullyQualifiedNameCharArray()
|
||||||
*/
|
*/
|
||||||
public char[][] getQualifiedNameCharArray() {
|
public char[][] getQualifiedNameCharArray() {
|
||||||
return CPPVisitor.getQualifiedNameCharArray( this );
|
return CPPVisitor.getQualifiedNameCharArray(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
@ -116,8 +118,8 @@ public class CPPEnumerator extends PlatformObject implements IEnumerator, ICPPIn
|
||||||
*/
|
*/
|
||||||
public boolean isGloballyQualified() throws DOMException {
|
public boolean isGloballyQualified() throws DOMException {
|
||||||
IScope scope = getScope();
|
IScope scope = getScope();
|
||||||
while( scope != null ){
|
while (scope != null) {
|
||||||
if( scope instanceof ICPPBlockScope )
|
if (scope instanceof ICPPBlockScope)
|
||||||
return false;
|
return false;
|
||||||
scope = scope.getParent();
|
scope = scope.getParent();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue