GeneratedCodeAnnotation
Gets the SyntaxAnnotation that must be applied to all code generated by the weaver.
Declaration
public SyntaxAnnotation GeneratedCodeAnnotation { get; }Property Value
| Type | Description |
|---|---|
| SyntaxAnnotation |
Remarks
Apply this annotation to generated syntax nodes using WithGeneratedCodeAnnotation<T>(T?, SyntaxAnnotation).
This annotation enables Metalama to distinguish generated code from source code for formatting, diff views, and IDE features.
For source code nodes within generated code, use WithSourceCodeAnnotation<T>(T?) instead.