mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-24 18:11:55 +02:00
codetools: FindDeclarationAndOverload: fixed starting search on proc name
git-svn-id: trunk@13932 -
This commit is contained in:
parent
7456a7ccc2
commit
cd21cbb318
@ -3364,7 +3364,7 @@ var
|
||||
if (NewNode.Desc in AllIdentifierDefinitions)
|
||||
and (PositionInDefinitionName(NewNode,CleanPos)) then
|
||||
Result:=true
|
||||
else if (NewNode.Desc=ctnProcedure)
|
||||
else if (NewNode.Desc in [ctnProcedure,ctnProcedureHead])
|
||||
and (PositionInProcName(NewNode,false,CleanPos)) then
|
||||
Result:=true
|
||||
else if (NewNode.Desc=ctnProperty)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -28,7 +28,7 @@ unit CodeHelp;
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
{off $IFDEF VerboseLazDoc}
|
||||
{off $DEFINE VerboseLazDoc}
|
||||
|
||||
interface
|
||||
|
||||
@ -1327,7 +1327,12 @@ begin
|
||||
//DebugLn(['TCodeHelpManager.GetElementChain GetDeclarationChain...']);
|
||||
// get the declaration chain
|
||||
Result:=GetDeclarationChain(Code,X,Y,ListOfPCodeXYPosition,CacheWasUsed);
|
||||
if Result<>chprSuccess then exit;
|
||||
if Result<>chprSuccess then begin
|
||||
{$IFDEF VerboseLazDoc}
|
||||
DebugLn(['TCodeHelpManager.GetElementChain GetDeclarationChain failed ',Code.Filename,' x=',x,' y=',y]);
|
||||
{$ENDIF}
|
||||
exit;
|
||||
end;
|
||||
if (not CacheWasUsed) and (not Complete) then exit(chprParsing);
|
||||
|
||||
{$IFDEF VerboseLazDoc}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user