UNPKG

haystack-codegen

Version:

Project Haystack Core code generation tools

16 lines (15 loc) 359 B
/** * A node that generates code. */ export interface Node { /** * Generate the code. * * @param out A function used to output the code followed by a newline. */ generateCode(out: (code: string) => void): void; /** * The number of extra new lines added after the node has generated code. */ newLines: number; }