Metalama / / API Documentation / Aspect API / Metalama.​Compiler / Metalama­Compiler­Annotations / With­Include­In­Reference­Assembly­Annotation

Method WithIncludeInReferenceAssemblyAnnotation

WithIncludeInReferenceAssemblyAnnotation<T>(T)

Adds an annotation that means that the declaration of the target syntax node should be included in a reference assembly, even if it otherwise wouldn't be due to its accessibility.

Declaration
public static T WithIncludeInReferenceAssemblyAnnotation<T>(this T syntaxNode)
where T : SyntaxNode
Parameters
Type Name Description
T syntaxNode
Returns
Type Description
T
Type Parameters
Name Description
T