SyntaxToken.WithAdditionalAnnotations Method

Definition

Overloads

WithAdditionalAnnotations(SyntaxAnnotation[])

Adds this annotation to a given syntax token, creating a new syntax token of the same type with the annotation on it.

WithAdditionalAnnotations(IEnumerable<SyntaxAnnotation>)

Adds this annotation to a given syntax token, creating a new syntax token of the same type with the annotation on it.

WithAdditionalAnnotations(SyntaxAnnotation[])

Adds this annotation to a given syntax token, creating a new syntax token of the same type with the annotation on it.

public:
 Microsoft::CodeAnalysis::SyntaxToken WithAdditionalAnnotations(... cli::array <Microsoft::CodeAnalysis::SyntaxAnnotation ^> ^ annotations);
public Microsoft.CodeAnalysis.SyntaxToken WithAdditionalAnnotations (params Microsoft.CodeAnalysis.SyntaxAnnotation[] annotations);
member this.WithAdditionalAnnotations : Microsoft.CodeAnalysis.SyntaxAnnotation[] -> Microsoft.CodeAnalysis.SyntaxToken
Public Function WithAdditionalAnnotations (ParamArray annotations As SyntaxAnnotation()) As SyntaxToken

Parameters

annotations
SyntaxAnnotation[]

Returns

SyntaxToken

Applies to

WithAdditionalAnnotations(IEnumerable<SyntaxAnnotation>)

Adds this annotation to a given syntax token, creating a new syntax token of the same type with the annotation on it.

public:
 Microsoft::CodeAnalysis::SyntaxToken WithAdditionalAnnotations(System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxAnnotation ^> ^ annotations);
public Microsoft.CodeAnalysis.SyntaxToken WithAdditionalAnnotations (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxAnnotation> annotations);
member this.WithAdditionalAnnotations : seq<Microsoft.CodeAnalysis.SyntaxAnnotation> -> Microsoft.CodeAnalysis.SyntaxToken
Public Function WithAdditionalAnnotations (annotations As IEnumerable(Of SyntaxAnnotation)) As SyntaxToken

Parameters

Returns

SyntaxToken

Applies to