Skip to main content

debugSectionComment()

debugSectionComment(ctx, comment): string

Experimental

Generates a debug comment with a blank line before it. Useful for separating sections in the generated code.


Parametersโ€‹

ctx: GeneratorContextโ€‹

The generator context

comment: stringโ€‹

The comment text


Returns: stringโ€‹

The formatted comment with preceding blank line, or empty string if not in debug mode


Sinceโ€‹

2.0.0