Open sandboxFocus

Method WithOriginalLocationAnnotationFrom

WithOriginalLocationAnnotationFrom<T>(T, SyntaxNode)

Adds a 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
SyntaxNode originalNode
Returns
Type Description
T
Type Parameters
Name Description
T