MG: fixed property completion of stored fuctions

git-svn-id: trunk@1633 -
This commit is contained in:
lazarus 2002-04-24 14:31:16 +00:00
parent 93afe8a598
commit f7aa303653

View File

@ -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))