mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Deprecated ASTVisitor.leave(IASTComment), which has never worked.
This commit is contained in:
parent
a95edcdcdf
commit
903a55f94c
1 changed files with 25 additions and 21 deletions
|
@ -25,6 +25,19 @@ import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTVisitor;
|
|||
* and/or {@link ICPPASTVisitor} in addition to deriving from this class.
|
||||
*/
|
||||
public abstract class ASTVisitor {
|
||||
/**
|
||||
* Skip the traversal of children of this node, don't call leave on this node.
|
||||
*/
|
||||
public final static int PROCESS_SKIP = 1;
|
||||
/**
|
||||
* Abort the entire traversal.
|
||||
*/
|
||||
public final static int PROCESS_ABORT = 2;
|
||||
/**
|
||||
* Continue with traversing the children of this node.
|
||||
*/
|
||||
public final static int PROCESS_CONTINUE = 3;
|
||||
|
||||
/**
|
||||
* Set this flag to visit names.
|
||||
*/
|
||||
|
@ -99,21 +112,6 @@ public abstract class ASTVisitor {
|
|||
public boolean shouldVisitTemplateParameters = false;
|
||||
|
||||
|
||||
/**
|
||||
* Skip the traversal of children of this node, don't call leave on this node.
|
||||
*/
|
||||
public final static int PROCESS_SKIP = 1;
|
||||
|
||||
/**
|
||||
* Abort the entire traversal.
|
||||
*/
|
||||
public final static int PROCESS_ABORT = 2;
|
||||
|
||||
/**
|
||||
* Continue with traversing the children of this node.
|
||||
*/
|
||||
public final static int PROCESS_CONTINUE = 3;
|
||||
|
||||
// visit methods
|
||||
public int visit(IASTTranslationUnit tu) {
|
||||
return PROCESS_CONTINUE;
|
||||
|
@ -163,11 +161,6 @@ public abstract class ASTVisitor {
|
|||
return PROCESS_CONTINUE;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public int visit( IASTComment comment){
|
||||
return PROCESS_CONTINUE;
|
||||
}
|
||||
|
||||
// leave methods
|
||||
public int leave(IASTTranslationUnit tu) {
|
||||
return PROCESS_CONTINUE;
|
||||
|
@ -217,6 +210,17 @@ public abstract class ASTVisitor {
|
|||
return PROCESS_CONTINUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link IASTTranslationUnit#getComments()}, instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public int visit( IASTComment comment){
|
||||
return PROCESS_CONTINUE;
|
||||
}
|
||||
/**
|
||||
* @deprecated use {@link IASTTranslationUnit#getComments()}, instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public int leave( IASTComment comment){
|
||||
return PROCESS_CONTINUE;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue