Overview of Amplication’s AST libraries for code generation
CodeBlock
can be used as a generic node that can include any code as a string. This flexibility allows you to generate both structured AST-based code and custom code blocks when necessary.
IAstNode
from the AST libraries. Plugins typically:
IFile<IAstNode>
object that references the AST nodecontext.files.set()