From 0ea01f7424ac387125b291fde36bae6569d8ca9d Mon Sep 17 00:00:00 2001 From: acolyer Date: Wed, 26 Feb 2003 22:09:54 +0000 Subject: [PATCH] Use ***sourceStart*** (to avoid navigating to top of comments), but "declarationSourceEnd" --- .../org/aspectj/ajdt/internal/core/builder/AsmBuilder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmBuilder.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmBuilder.java index 116ce05b3..5824f2b2f 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmBuilder.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmBuilder.java @@ -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); -- 2.39.5