Aller au contenu principal

wrapWithDebugComment()

wrapWithDebugComment(ctx, description, lines): string[]

Experimental

Wraps code lines with debug comments indicating the validation being performed. Returns the original lines if not in debug mode.


Parameters​

ctx: GeneratorContext​

The generator context

description: string​

Description of what is being validated

lines: string[]​

The code lines to wrap


Returns: string[]​

Array of code lines, potentially with debug comments


Since​

2.0.0