TPascalCodeGenerator.Comment¶
Add comment to source code
Declaration¶
Source position: pascodegen.pp line 95
public
procedure Comment(const AComment: string; Curly: Boolean=False);
procedure Comment(const AComment: Array of string = string);
procedure Comment(const AComment: TStrings);
Description¶
Comment adds comments to the generated source code. It supports single line comments (using // or { }) and multi-line comments using curly braces. For single strings, the Curly parameter determines the comment style. For arrays of strings or string lists, multi-line curly brace comments are generated.
See also¶
| Name | Description |
|---|---|
| TPascalCodeGenerator.AddLn | Add line to source code with current indentation |