MetalamaAPI documentationAdvanced APIMetalama.​CompilerMetalama­Compiler­AnnotationsCreate­Generated­Code­Annotation
Open sandboxFocus

MetalamaCompilerAnnotations.CreateGeneratedCodeAnnotation Method

CreateGeneratedCodeAnnotation(String)

Creates a Microsoft.CodeAnalysis.SyntaxAnnotation that can be added to syntax nodes to mean that they have been generated by some component, typically by an aspect.

Declaration
public static SyntaxAnnotation CreateGeneratedCodeAnnotation(string origin)
Parameters
Type Name Description
System.String origin

A human-readable text that identifies the originating component (typically an aspect).

Returns
Type Description
Microsoft.CodeAnalysis.SyntaxAnnotation

A Microsoft.CodeAnalysis.SyntaxAnnotation that can be added to syntax.