Generate simple method body
Source position: pascodegen.pp line 100
public procedure TPascalCodeGenerator.SimpleMethodBody( |
Lines: array of string |
); virtual; |
Lines |
|
Array of lines for method body |
SimpleMethodBody generates a complete method body with begin/end block and proper indentation. It adds an empty line, then 'begin', indents and adds the provided lines, undents and adds 'end;', followed by another empty line.
|
Add line to source code with current indentation |
|
|
Increase indentation level |
|
|
Decrease indentation level |