mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-31 09:12:49 +02:00
improved comment
git-svn-id: trunk@9489 -
This commit is contained in:
parent
b4d02ab283
commit
9d1e35fd96
@ -72,9 +72,11 @@ begin
|
||||
MethodName:='NewProc'+IntToStr(i);
|
||||
MethodDefinition:='procedure '+MethodName
|
||||
+'(Sender:TObject; AValue:integer);';
|
||||
// check, that we don't add an already existing method.
|
||||
// Create a search mask: no class name, no 'procedure' keyword, no comments,
|
||||
// no unneeded spaces, no result type, no parameter names, uppercase
|
||||
// check, to not add an already existing method.
|
||||
// Create a search mask: only method names, parameter types and semicolon.
|
||||
// no class name, no 'procedure' keyword, no comments, no defaults,
|
||||
// no unneeded spaces, no result type, no parameter names, uppercase,
|
||||
// no modifiers (e.g. virtual)
|
||||
CleanMethodDefinition:=UpperCase(MethodName+'(:TObject;:integer);');
|
||||
if not Tool.ProcExistsInCodeCompleteClass(CleanMethodDefinition) then
|
||||
Tool.AddClassInsertion(CleanMethodDefinition, MethodDefinition, MethodName,
|
||||
|
Loading…
Reference in New Issue
Block a user