Sign in Join
FPDoc Onlineexperiment

TPascalCodeGenerator.SimpleMethodBody procedure

Member of TPascalCodeGeneratorpublicIn unit PasCodeGen

Generate simple method body

Declaration

pascal
procedure SimpleMethodBody(Lines: Array of string = string); virtual

Arguments

Lines

Array of lines for method body

Description

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.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.