C# AST Library
The C# AST library is used by Blueprint and .NET engine plugins. Node.js plugins use different methods for code generation as detailed in the Node.js Plugin Events documentation.
Key Features
- Class and interface generation
- Method and property declarations
- Type system with generics
- Attributes and documentation
- Namespace management
Scope and Purpose
The C# AST library is not intended to cover all C# language functionality. Instead, it focuses on the elements needed to create foundation and boilerplate code with Amplication plugins. The library provides building blocks for generating well-structured C# code for common patterns and use cases. When more specialized or custom code is needed, theCodeBlock
class can be used as a generic node that can include any code as a string:
Installation
Usage
The C# AST library allows you to build C# code programmatically:Documentation
C# AST API Documentation
Complete reference for the C# AST library. Explore class generation, property declarations, namespaces, and other .NET-specific code generation features.