ModifierList.Insert Method
Containing Type: ModifierList<TNode>
Assembly: Roslynator.CSharp.dll
Overloads
Method | Summary |
---|---|
Insert(TNode, SyntaxKind, IComparer<SyntaxKind>) | Creates a new node with a modifier of the specified kind inserted. |
Insert(TNode, SyntaxToken, IComparer<SyntaxToken>) | Creates a new node with the specified modifier inserted. |
Insert(TNode, SyntaxKind, IComparer<SyntaxKind>)
Creates a new node with a modifier of the specified kind inserted.
public TNode Insert(TNode node, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, System.Collections.Generic.IComparer<Microsoft.CodeAnalysis.CSharp.SyntaxKind>? comparer = null)
Parameters
node TNode
kind SyntaxKind
comparer IComparer<SyntaxKind>
Returns
TNode
Insert(TNode, SyntaxToken, IComparer<SyntaxToken>)
Creates a new node with the specified modifier inserted.
public TNode Insert(TNode node, Microsoft.CodeAnalysis.SyntaxToken modifier, System.Collections.Generic.IComparer<Microsoft.CodeAnalysis.SyntaxToken>? comparer = null)
Parameters
node TNode
modifier SyntaxToken
comparer IComparer<SyntaxToken>
Returns
TNode