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

Method CreateGeneratedCodeAnnotation

CreateGeneratedCodeAnnotation(String)

Creates a 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
String origin

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

Returns
Type Description
SyntaxAnnotation

A SyntaxAnnotation that can be added to syntax.