]> source.dussan.org Git - aspectj.git/commitdiff
Use ***sourceStart*** (to avoid navigating to top of comments),
authoracolyer <acolyer>
Wed, 26 Feb 2003 22:09:54 +0000 (22:09 +0000)
committeracolyer <acolyer>
Wed, 26 Feb 2003 22:09:54 +0000 (22:09 +0000)
but "declarationSourceEnd"

org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmBuilder.java

index 116ce05b3ca8131d73004c73e5f5c70d2102b6fd..5824f2b2ff254811ef96d8962e0940ea6d3e3bb0 100644 (file)
@@ -380,9 +380,9 @@ public class AsmBuilder extends AbstractSyntaxTreeVisitorAdapter {
        // various ASTNode types. They have no common ancestor in the
        // hierarchy!!
        private int getStartLine( AstNode n){
-               if (  n instanceof AbstractVariableDeclaration ) return getStartLine( (AbstractVariableDeclaration)n);
-               if (  n instanceof AbstractMethodDeclaration ) return getStartLine( (AbstractMethodDeclaration)n);
-               if (  n instanceof TypeDeclaration ) return getStartLine( (TypeDeclaration)n);
+//             if (  n instanceof AbstractVariableDeclaration ) return getStartLine( (AbstractVariableDeclaration)n);
+//             if (  n instanceof AbstractMethodDeclaration ) return getStartLine( (AbstractMethodDeclaration)n);
+//             if (  n instanceof TypeDeclaration ) return getStartLine( (TypeDeclaration)n);
                return ProblemHandler.searchLineNumber(
                        currCompilationResult.lineSeparatorPositions,
                        n.sourceStart);