SyntaxTokenList.Insert(Int32, SyntaxToken) Method

Definition

Creates a new SyntaxTokenList with the specified token insert at the index.

public:
 Microsoft::CodeAnalysis::SyntaxTokenList Insert(int index, Microsoft::CodeAnalysis::SyntaxToken token);
public Microsoft.CodeAnalysis.SyntaxTokenList Insert (int index, Microsoft.CodeAnalysis.SyntaxToken token);
member this.Insert : int * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.SyntaxTokenList
Public Function Insert (index As Integer, token As SyntaxToken) As SyntaxTokenList

Parameters

index
Int32

The index to insert the new token.

token
SyntaxToken

The token to insert.

Returns

Applies to