mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-02 13:55:39 +02:00
Cosmetics.
This commit is contained in:
parent
0e152439bd
commit
eb31f64c07
2 changed files with 17 additions and 21 deletions
|
@ -41,12 +41,10 @@ import org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPSemantics;
|
||||||
*/
|
*/
|
||||||
public class CPPASTConstructorChainInitializer extends ASTNode implements
|
public class CPPASTConstructorChainInitializer extends ASTNode implements
|
||||||
ICPPASTConstructorChainInitializer, IASTCompletionContext {
|
ICPPASTConstructorChainInitializer, IASTCompletionContext {
|
||||||
|
|
||||||
private IASTName name;
|
private IASTName name;
|
||||||
private IASTInitializer initializer;
|
private IASTInitializer initializer;
|
||||||
private boolean fIsPackExpansion;
|
private boolean fIsPackExpansion;
|
||||||
|
|
||||||
|
|
||||||
public CPPASTConstructorChainInitializer() {
|
public CPPASTConstructorChainInitializer() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,7 +69,7 @@ public class CPPASTConstructorChainInitializer extends ASTNode implements
|
||||||
public void setMemberInitializerId(IASTName name) {
|
public void setMemberInitializerId(IASTName name) {
|
||||||
assertNotFrozen();
|
assertNotFrozen();
|
||||||
this.name = name;
|
this.name = name;
|
||||||
if(name != null) {
|
if (name != null) {
|
||||||
name.setParent(this);
|
name.setParent(this);
|
||||||
name.setPropertyInParent(MEMBER_ID);
|
name.setPropertyInParent(MEMBER_ID);
|
||||||
}
|
}
|
||||||
|
@ -84,7 +82,7 @@ public class CPPASTConstructorChainInitializer extends ASTNode implements
|
||||||
public void setInitializer(IASTInitializer init) {
|
public void setInitializer(IASTInitializer init) {
|
||||||
assertNotFrozen();
|
assertNotFrozen();
|
||||||
initializer = init;
|
initializer = init;
|
||||||
if(init != null) {
|
if (init != null) {
|
||||||
init.setParent(this);
|
init.setParent(this);
|
||||||
init.setPropertyInParent(INITIALIZER);
|
init.setPropertyInParent(INITIALIZER);
|
||||||
}
|
}
|
||||||
|
@ -93,7 +91,7 @@ public class CPPASTConstructorChainInitializer extends ASTNode implements
|
||||||
@Override
|
@Override
|
||||||
public boolean accept(ASTVisitor action) {
|
public boolean accept(ASTVisitor action) {
|
||||||
if (action.shouldVisitInitializers) {
|
if (action.shouldVisitInitializers) {
|
||||||
switch(action.visit(this)) {
|
switch (action.visit(this)) {
|
||||||
case ASTVisitor.PROCESS_ABORT:
|
case ASTVisitor.PROCESS_ABORT:
|
||||||
return false;
|
return false;
|
||||||
case ASTVisitor.PROCESS_SKIP:
|
case ASTVisitor.PROCESS_SKIP:
|
||||||
|
@ -127,7 +125,6 @@ public class CPPASTConstructorChainInitializer extends ASTNode implements
|
||||||
if ((bindings[i] instanceof ICPPField) || (bindings[i] instanceof ICPPNamespace)) {
|
if ((bindings[i] instanceof ICPPField) || (bindings[i] instanceof ICPPNamespace)) {
|
||||||
continue;
|
continue;
|
||||||
} else if (bindings[i] instanceof ICPPConstructor) {
|
} else if (bindings[i] instanceof ICPPConstructor) {
|
||||||
|
|
||||||
if (baseClasses == null) {
|
if (baseClasses == null) {
|
||||||
baseClasses = getBaseClasses(n);
|
baseClasses = getBaseClasses(n);
|
||||||
}
|
}
|
||||||
|
@ -161,7 +158,6 @@ public class CPPASTConstructorChainInitializer extends ASTNode implements
|
||||||
return specifier.getBaseSpecifiers();
|
return specifier.getBaseSpecifiers();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -67,12 +67,12 @@ public class CPPASTConstructorInitializer extends ASTNode implements ICPPASTCons
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean accept( ASTVisitor action ){
|
public boolean accept(ASTVisitor action) {
|
||||||
if( action.shouldVisitInitializers ){
|
if (action.shouldVisitInitializers) {
|
||||||
switch( action.visit( this ) ){
|
switch (action.visit(this)) {
|
||||||
case ASTVisitor.PROCESS_ABORT : return false;
|
case ASTVisitor.PROCESS_ABORT: return false;
|
||||||
case ASTVisitor.PROCESS_SKIP : return true;
|
case ASTVisitor.PROCESS_SKIP: return true;
|
||||||
default : break;
|
default: break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue