Common interfaces and types for AST generation
IAstNode
interface is a fundamental part of this design, allowing code to be represented as structured objects while also supporting generic code blocks when needed for more specialized implementations.
IAstNode
interface is a cornerstone of Amplication’s code generation system. It defines the common contract that all AST nodes must implement, regardless of the target language.
IAstNode
interface:
IAstNode
from “@amplication/ast-types”IFile<IAstNode>
that references your AST nodecontext.files.set()