mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-26 12:42:09 +01: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)
|
if (NewNode.Desc in AllIdentifierDefinitions)
|
||||||
and (PositionInDefinitionName(NewNode,CleanPos)) then
|
and (PositionInDefinitionName(NewNode,CleanPos)) then
|
||||||
Result:=true
|
Result:=true
|
||||||
else if (NewNode.Desc=ctnProcedure)
|
else if (NewNode.Desc in [ctnProcedure,ctnProcedureHead])
|
||||||
and (PositionInProcName(NewNode,false,CleanPos)) then
|
and (PositionInProcName(NewNode,false,CleanPos)) then
|
||||||
Result:=true
|
Result:=true
|
||||||
else if (NewNode.Desc=ctnProperty)
|
else if (NewNode.Desc=ctnProperty)
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -28,7 +28,7 @@ unit CodeHelp;
|
|||||||
|
|
||||||
{$mode objfpc}{$H+}
|
{$mode objfpc}{$H+}
|
||||||
|
|
||||||
{off $IFDEF VerboseLazDoc}
|
{off $DEFINE VerboseLazDoc}
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
||||||
@ -1327,7 +1327,12 @@ begin
|
|||||||
//DebugLn(['TCodeHelpManager.GetElementChain GetDeclarationChain...']);
|
//DebugLn(['TCodeHelpManager.GetElementChain GetDeclarationChain...']);
|
||||||
// get the declaration chain
|
// get the declaration chain
|
||||||
Result:=GetDeclarationChain(Code,X,Y,ListOfPCodeXYPosition,CacheWasUsed);
|
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);
|
if (not CacheWasUsed) and (not Complete) then exit(chprParsing);
|
||||||
|
|
||||||
{$IFDEF VerboseLazDoc}
|
{$IFDEF VerboseLazDoc}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user