mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 15:20:49 +02:00
codetools: identifier completion: showing predefined identifiers self and result only at start of operand
git-svn-id: trunk@20890 -
This commit is contained in:
parent
ec10c9cdd2
commit
201de2d822
@ -1131,7 +1131,8 @@ begin
|
||||
AddCompilerProcedure('Write','Args:Arguments');
|
||||
AddCompilerProcedure('WriteLn','Args:Arguments');
|
||||
|
||||
if Context.Tool.NodeIsInAMethod(Context.Node)
|
||||
if (ilcfStartOfOperand in CurrentIdentifierList.ContextFlags)
|
||||
and Context.Tool.NodeIsInAMethod(Context.Node)
|
||||
and (not CurrentIdentifierList.HasIdentifier('Self','')) then begin
|
||||
// method body -> add 'Self'
|
||||
NewItem:=TIdentifierListItem.Create(
|
||||
@ -1146,7 +1147,8 @@ begin
|
||||
CurrentIdentifierList.Add(NewItem);
|
||||
end;
|
||||
ProcNode:=Context.Node.GetNodeOfType(ctnProcedure);
|
||||
if Context.Tool.NodeIsFunction(ProcNode)
|
||||
if (ilcfStartOfOperand in CurrentIdentifierList.ContextFlags)
|
||||
and Context.Tool.NodeIsFunction(ProcNode)
|
||||
and (not CurrentIdentifierList.HasIdentifier('Result','')) then begin
|
||||
// function body -> add 'Result'
|
||||
NewItem:=TIdentifierListItem.Create(
|
||||
|
Loading…
Reference in New Issue
Block a user