SeparatedSyntaxList<TNode> Struct

Definition

generic <typename TNode>
 where TNode : SyntaxNodepublic value class SeparatedSyntaxList : IEquatable<Microsoft::CodeAnalysis::SeparatedSyntaxList<TNode>>, System::Collections::Generic::IEnumerable<TNode>, System::Collections::Generic::IReadOnlyCollection<TNode>, System::Collections::Generic::IReadOnlyList<TNode>
public readonly struct SeparatedSyntaxList<TNode> : IEquatable<Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode>>, System.Collections.Generic.IEnumerable<TNode>, System.Collections.Generic.IReadOnlyCollection<TNode>, System.Collections.Generic.IReadOnlyList<TNode> where TNode : SyntaxNode
type SeparatedSyntaxList<'Node (requires 'Node :> SyntaxNode)> = struct
    interface IReadOnlyList<'Node (requires 'Node :> SyntaxNode)>
    interface seq<'Node (requires 'Node :> SyntaxNode)>
    interface IEnumerable
    interface IReadOnlyCollection<'Node (requires 'Node :> SyntaxNode)>
Public Structure SeparatedSyntaxList(Of TNode)
Implements IEnumerable(Of TNode), IEquatable(Of SeparatedSyntaxList(Of TNode)), IReadOnlyCollection(Of TNode), IReadOnlyList(Of TNode)

Type Parameters

TNode
Inheritance
SeparatedSyntaxList<TNode>
Implements

Properties

Count
FullSpan

The absolute span of the list elements in characters, including the leading and trailing trivia of the first and last elements.

Item[Int32]
SeparatorCount
Span

The absolute span of the list elements in characters, not including the leading and trailing trivia of the first and last elements.

Methods

Add(TNode)

Creates a new list with the specified node added to the end.

AddRange(IEnumerable<TNode>)

Creates a new list with the specified nodes added to the end.

Any()
Contains(TNode)
Equals(Object)
Equals(SeparatedSyntaxList<TNode>)
First()
FirstOrDefault()
GetEnumerator()
GetHashCode()
GetSeparator(Int32)

Gets the separator at the given index in this list.

GetSeparators()

Returns the sequence of just the separator tokens.

GetWithSeparators()
IndexOf(Func<TNode,Boolean>)
IndexOf(TNode)
Insert(Int32, TNode)

Creates a new list with the specified node inserted at the index.

InsertRange(Int32, IEnumerable<TNode>)

Creates a new list with the specified nodes inserted at the index.

Last()
LastIndexOf(Func<TNode,Boolean>)
LastIndexOf(TNode)
LastOrDefault()
Remove(TNode)

Creates a new list with specified element removed.

RemoveAt(Int32)

Creates a new list with the element at the specified index removed.

Replace(TNode, TNode)

Creates a new list with the specified element replaced by the new node.

ReplaceRange(TNode, IEnumerable<TNode>)

Creates a new list with the specified element replaced by the new nodes.

ReplaceSeparator(SyntaxToken, SyntaxToken)

Creates a new list with the specified separator token replaced with the new separator.

ToFullString()

Returns the full string representation of the nodes in this list including separators, the first node's leading trivia, and the last node or token's trailing trivia.

ToString()

Returns the string representation of the nodes in this list including separators but not including the first node's leading trivia and the last node or token's trailing trivia.

Operators

Equality(SeparatedSyntaxList<TNode>, SeparatedSyntaxList<TNode>)
Explicit(SeparatedSyntaxList<SyntaxNode> to SeparatedSyntaxList<TNode>)
Implicit(SeparatedSyntaxList<SyntaxNode> to SeparatedSyntaxList<TNode>)
Implicit(SeparatedSyntaxList<TNode> to SeparatedSyntaxList<SyntaxNode>)
Inequality(SeparatedSyntaxList<TNode>, SeparatedSyntaxList<TNode>)

Explicit Interface Implementations

IEnumerable.GetEnumerator()
IEnumerable<TNode>.GetEnumerator()

Extension Methods

Any<TNode>(SeparatedSyntaxList<TNode>, SyntaxKind)

True if the list has at least one node of the specified kind.

IndexOf<TNode>(SeparatedSyntaxList<TNode>, SyntaxKind)

Returns the index of the first node of a specified kind in the node list.

Any<TNode>(SeparatedSyntaxList<TNode>, SyntaxKind)

Tests whether a list contains node of a particular kind.

IndexOf<TNode>(SeparatedSyntaxList<TNode>, SyntaxKind)

Returns the index of the first node of a specified kind in the node list.

Applies to