MetalamaAPI documentationAdvanced APIMetalama.​CompilerMetalama­Compiler­AnnotationsGenerated­Code­Annotation­Kind
Open sandboxFocus

MetalamaCompilerAnnotations.GeneratedCodeAnnotationKind Field

Name of the annotation that means that the code is generated. Metalama.Compiler uses this this annotation to change error messages when they are reported on generated code. Any syntax node under a node annotated with such annotation is considered as generated, unless it is under a node annotated with SourceCodeAnnotation. The annotation data is a human-readable text saying which component generated the code.

Namespace: Metalama.Compiler
Assembly: Metalama.Compiler.Interface.dll
Syntax
public const string GeneratedCodeAnnotationKind = "Metalama.Compiler.GeneratedCode"
Returns
Type Description
string Name of the annotation that means that the code is generated. Metalama.Compiler uses this this annotation to change error messages when they are reported on generated code. Any syntax node under a node annotated with such annotation is considered as generated, unless it is under a node annotated with . The annotation data is a human-readable text saying which component generated the code.