MetalamaAPI documentationAdvanced APIMetalama.​CompilerMetalama­Compiler­AnnotationsWith­Original­Location­Annotation­From
Open sandboxFocus

MetalamaCompilerAnnotations.WithOriginalLocationAnnotationFrom Method

WithOriginalLocationAnnotationFrom<T>(T, SyntaxNode)

Adds a Microsoft.CodeAnalysis.SyntaxAnnotation to a node that maps the node to the location of another node in source code.

Declaration
public static T WithOriginalLocationAnnotationFrom<T>(this T node, SyntaxNode originalNode)
where T : SyntaxNode
Parameters
Type Name Description
T node
Microsoft.CodeAnalysis.SyntaxNode originalNode
Returns
Type Description
T
Type Parameters
Name Description
T