AI Distiller uses the tree-sitter-c-sharp parser to extract the structure of .NET codebases, supporting modern C# features up to C# 12. The distillation process aims to preserve strong typing, generic constraints, and object-oriented design while optimizing the output for AI consumption.
Key capabilities include support for:
- File-scoped namespaces (
namespace Foo;) - Nullable reference types (
#nullable enable/disable) - Init-only properties (
{ get; init; }) - User-defined operators
- Tuples (named and unnamed)
- Attributes on methods, classes, properties, and parameters
- Enums with explicit base types
- Async and extension methods