Aller au contenu principal

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