Unit 'pascodegen' Package
[Overview][Constants][Types][Classes][Index] [#fcl]

TPascalCodeGenerator.Comment

Add comment to source code

Declaration

Source position: pascodegen.pp line 95

public procedure TPascalCodeGenerator.Comment(

  const AComment: string;

  Curly: Boolean = False

);

procedure TPascalCodeGenerator.Comment(

  const AComment: array of string

);

procedure TPascalCodeGenerator.Comment(

  const AComment: TStrings

);

Arguments

AComment

  

Comment text

Curly

  

Use curly braces instead of double slash

Arguments

AComment

  

Comment text

Arguments

AComment

  

Comment text

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

TPascalCodeGenerator.AddLn

  

Add line to source code with current indentation


Documentation generated on: Dec 19 2025