codetools: methodjump: ignore initialization section

git-svn-id: trunk@42201 -
This commit is contained in:
mattias 2013-07-25 12:28:05 +00:00
parent d88afd8de1
commit 9a19939660
2 changed files with 3 additions and 2 deletions

View File

@ -334,7 +334,8 @@ begin
{$IFDEF CTDEBUG}
DebugLn('TMethodJumpingCodeTool.FindJumpPoint START CursorPos=',dbgs(CursorPos.X),',',dbgs(CursorPos.Y));
{$ENDIF}
BuildTreeAndGetCleanPos(CursorPos,CleanCursorPos);
BuildTreeAndGetCleanPos(trTillRange,lsrInitializationStart,
CursorPos,CleanCursorPos);
{debugln(['TMethodJumpingCodeTool.FindJumpPoint Clean Src START:']);
debugln(DbgText(Src));
debugln(['TMethodJumpingCodeTool.FindJumpPoint Clean Src END']);

View File

@ -236,7 +236,7 @@ type
procedure BuildTreeAndGetCleanPos(TreeRange: TTreeRange;
ScanRange: TLinkScannerRange;
const CursorPos: TCodeXYPosition; out CleanCursorPos: integer;
BuildTreeFlags: TBuildTreeFlags);
BuildTreeFlags: TBuildTreeFlags = []);
procedure BuildTreeAndGetCleanPos(const CursorPos: TCodeXYPosition;
out CleanCursorPos: integer; BuildTreeFlags: TBuildTreeFlags = []);
procedure BuildSubTreeForBeginBlock(BeginNode: TCodeTreeNode); virtual;