Metalama 1.0 / / Metalama Documentation / Advanced API / Metalama.​Compiler / Metalama­Compiler­Annotations / Generated­Code­Annotation­Kind

Field GeneratedCodeAnnotationKind

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