mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 06:40:56 +02:00
MG: fixed property completion of stored fuctions
git-svn-id: trunk@1633 -
This commit is contained in:
parent
93afe8a598
commit
f7aa303653
@ -116,7 +116,7 @@ function TCodeCompletionCodeTool.ProcExistsInCodeCompleteClass(
|
|||||||
const NameAndParams: string): boolean;
|
const NameAndParams: string): boolean;
|
||||||
// NameAndParams should be uppercase and contains the proc name and the
|
// NameAndParams should be uppercase and contains the proc name and the
|
||||||
// parameter list without names and default values
|
// parameter list without names and default values
|
||||||
// and should not contain any comments, result types
|
// and should not contain any comments and no result type
|
||||||
var ANodeExt: TCodeTreeNodeExtension;
|
var ANodeExt: TCodeTreeNodeExtension;
|
||||||
begin
|
begin
|
||||||
Result:=false;
|
Result:=false;
|
||||||
@ -732,7 +732,7 @@ var AccessParam, AccessParamPrefix, CleanAccessFunc, AccessFunc,
|
|||||||
AccessParam:=copy(Src,Parts[ppName].StartPos,
|
AccessParam:=copy(Src,Parts[ppName].StartPos,
|
||||||
Parts[ppName].EndPos-Parts[ppName].StartPos)
|
Parts[ppName].EndPos-Parts[ppName].StartPos)
|
||||||
+BeautifyCodeOpts.PropertyStoredIdentPostfix;
|
+BeautifyCodeOpts.PropertyStoredIdentPostfix;
|
||||||
CleanAccessFunc:=UpperCaseStr(AccessParam);
|
CleanAccessFunc:=UpperCaseStr(AccessParam)+';';
|
||||||
// check if procedure exists
|
// check if procedure exists
|
||||||
if (not ProcExistsInCodeCompleteClass(CleanAccessFunc))
|
if (not ProcExistsInCodeCompleteClass(CleanAccessFunc))
|
||||||
and (not VarExistsInCodeCompleteClass(CleanAccessFunc))
|
and (not VarExistsInCodeCompleteClass(CleanAccessFunc))
|
||||||
|
Loading…
Reference in New Issue
Block a user