From 903a55f94c686983f03370911dc3ed6cf79d2f0a Mon Sep 17 00:00:00 2001 From: Markus Schorn Date: Wed, 19 Mar 2008 14:56:34 +0000 Subject: [PATCH] Deprecated ASTVisitor.leave(IASTComment), which has never worked. --- .../eclipse/cdt/core/dom/ast/ASTVisitor.java | 46 ++++++++++--------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/ASTVisitor.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/ASTVisitor.java index 5c4a0642c3c..8fd6cf1408a 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/ASTVisitor.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/ASTVisitor.java @@ -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. */ @@ -98,22 +111,7 @@ 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; }