IDE: do not complete method declarations if there is code behind, bug #17668

git-svn-id: trunk@29223 -
This commit is contained in:
mattias 2011-01-27 19:45:52 +00:00
parent 0a22192168
commit 6ce70fb207

View File

@ -600,8 +600,8 @@ begin
icvCompleteProcDeclaration:
// create complete procedure declaration
if (AddChar='')
and (not (IdentList.StartAtomBehind.Flag
in [cafEdgedBracketOpen,cafRoundBracketOpen]))
and (IdentList.StartAtomBehind.Flag in [cafEnd,cafWord,cafSemicolon])
and (ilcfEndOfLine in IdentList.ContextFlags)
and (IdentItem.Node<>nil) then begin
ProcHeadFlags:=[phpWithStart,phpWithVarModifiers,phpWithParameterNames,
phpWithDefaultValues,phpWithResultType,phpWithCallingSpecs,