Click or drag to resize

SyntaxListTNode Class



A list of SyntaxNode.
Inheritance Hierarchy
SystemValueType
  Microsoft.CodeAnalysisSyntaxListTNode

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public sealed class SyntaxList<TNode> : ValueType, 
	IReadOnlyList, IEnumerable, IEnumerable, IReadOnlyCollection, IEquatable
where TNode : SyntaxNode

Type Parameters

TNode

The SyntaxListTNode type exposes the following members.

Properties
  NameDescription
Public propertyCount
The number of nodes in the list.
Public propertyFullSpan
The absolute span of the list elements in characters, including the leading and trailing trivia of the first and last elements.
Public propertyItem
Gets the node at the specified index.
Public propertySpan
The absolute span of the list elements in characters, not including the leading and trailing trivia of the first and last elements.
Top
Methods
  NameDescription
Public methodAdd
Creates a new list with the specified node added at the end.
Public methodAddRange
Public methodAny
True if the list has at least one node.
Public methodEquals(Object)
Public methodEquals(SyntaxListTNode)
Public methodFirst
The first node in the list.
Public methodFirstOrDefault
The first node in the list or default if the list is empty.
Public methodGetEnumerator
Get's the enumerator for this list.
Public methodGetHashCode
Public methodIndexOf(FuncT, TResult)
Public methodIndexOf(TNode)
The index of the node in this list, or -1 if the node is not in the list.
Public methodInsert
Creates a new list with the specified node inserted at the index.
Public methodInsertRange
Public methodLast
The last node in the list.
Public methodLastIndexOf(FuncT, TResult)
Public methodLastIndexOf(TNode)
Public methodLastOrDefault
The last node in the list or default if the list is empty.
Public methodRemove
Creates a new list with the element removed.
Public methodRemoveAt
Creates a new list with the element at specified index removed.
Public methodReplace
Creates a new list with the specified element replaced with the new node.
Public methodReplaceRange
Public methodToFullString
Returns the full string representation of the nodes in this list including the first node's leading trivia and the last node's trailing trivia.
Public methodToString
Returns the string representation of the nodes in this list, not including the first node's leading trivia and the last node's trailing trivia.
Top
Operators
Extension Methods
See Also