SyntaxExtensions.RemoveRange Method
Containing Type: SyntaxExtensions
Assembly: Roslynator.CSharp.dll
Overloads
Method | Summary |
---|---|
RemoveRange(SyntaxTokenList, Int32, Int32) | Creates a new list with tokens in the specified range removed. |
RemoveRange(SyntaxTriviaList, Int32, Int32) | Creates a new list with trivia in the specified range removed. |
RemoveRange<TNode>(SeparatedSyntaxList<TNode>, Int32, Int32) | Creates a new list with elements in the specified range removed. |
RemoveRange<TNode>(SyntaxList<TNode>, Int32, Int32) | Creates a new list with elements in the specified range removed. |
RemoveRange(SyntaxTokenList, Int32, Int32)
Creates a new list with tokens in the specified range removed.
public static Microsoft.CodeAnalysis.SyntaxTokenList RemoveRange(this Microsoft.CodeAnalysis.SyntaxTokenList list, int index, int count)
Parameters
list SyntaxTokenList
index Int32
An index of the first element to remove.
count Int32
A number of elements to remove.
Returns
RemoveRange(SyntaxTriviaList, Int32, Int32)
Creates a new list with trivia in the specified range removed.
public static Microsoft.CodeAnalysis.SyntaxTriviaList RemoveRange(this Microsoft.CodeAnalysis.SyntaxTriviaList list, int index, int count)
Parameters
list SyntaxTriviaList
index Int32
An index of the first element to remove.
count Int32
A number of elements to remove.
Returns
RemoveRange<TNode>(SeparatedSyntaxList<TNode>, Int32, Int32)
Creates a new list with elements in the specified range removed.
public static Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode> RemoveRange<TNode>(this Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode> list, int index, int count) where TNode : Microsoft.CodeAnalysis.SyntaxNode
Type Parameters
TNode
Parameters
list SeparatedSyntaxList<TNode>
index Int32
An index of the first element to remove.
count Int32
A number of elements to remove.
Returns
SeparatedSyntaxList<TNode>
RemoveRange<TNode>(SyntaxList<TNode>, Int32, Int32)
Creates a new list with elements in the specified range removed.
public static Microsoft.CodeAnalysis.SyntaxList<TNode> RemoveRange<TNode>(this Microsoft.CodeAnalysis.SyntaxList<TNode> list, int index, int count) where TNode : Microsoft.CodeAnalysis.SyntaxNode
Type Parameters
TNode
Parameters
list SyntaxList<TNode>
index Int32
An index of the first element to remove.
count Int32
A number of elements to remove.
Returns
SyntaxList<TNode>