Share via


AnnotationExtensions.WithAdditionalAnnotations Method

Definition

Overloads

WithAdditionalAnnotations<TNode>(TNode, SyntaxAnnotation[])

Creates a new node identical to this node with the specified annotations attached.

WithAdditionalAnnotations<TNode>(TNode, IEnumerable<SyntaxAnnotation>)

Creates a new node identical to this node with the specified annotations attached.

WithAdditionalAnnotations<TNode>(TNode, SyntaxAnnotation[])

Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs

Creates a new node identical to this node with the specified annotations attached.

public:
generic <typename TNode>
 where TNode : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
 static TNode WithAdditionalAnnotations(TNode node, ... cli::array <Microsoft::CodeAnalysis::SyntaxAnnotation ^> ^ annotations);
public static TNode WithAdditionalAnnotations<TNode> (this TNode node, params Microsoft.CodeAnalysis.SyntaxAnnotation[] annotations) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member WithAdditionalAnnotations : 'Node * Microsoft.CodeAnalysis.SyntaxAnnotation[] -> 'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function WithAdditionalAnnotations(Of TNode As SyntaxNode) (node As TNode, ParamArray annotations As SyntaxAnnotation()) As TNode

Type Parameters

TNode

Parameters

node
TNode

Original node.

annotations
SyntaxAnnotation[]

Annotations to be added to the new node.

Returns

TNode

Applies to

WithAdditionalAnnotations<TNode>(TNode, IEnumerable<SyntaxAnnotation>)

Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs
Source:
AnnotationExtensions.cs

Creates a new node identical to this node with the specified annotations attached.

public:
generic <typename TNode>
 where TNode : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
 static TNode WithAdditionalAnnotations(TNode node, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxAnnotation ^> ^ annotations);
public static TNode WithAdditionalAnnotations<TNode> (this TNode node, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxAnnotation> annotations) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member WithAdditionalAnnotations : 'Node * seq<Microsoft.CodeAnalysis.SyntaxAnnotation> -> 'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function WithAdditionalAnnotations(Of TNode As SyntaxNode) (node As TNode, annotations As IEnumerable(Of SyntaxAnnotation)) As TNode

Type Parameters

TNode

Parameters

node
TNode

Original node.

annotations
IEnumerable<SyntaxAnnotation>

Annotations to be added to the new node.

Returns

TNode

Applies to