Click or drag to resize

SyntaxNodeOrTokenList Class



A list of SyntaxNodeOrToken structures.
Inheritance Hierarchy
SystemValueType
  Microsoft.CodeAnalysisSyntaxNodeOrTokenList

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 SyntaxNodeOrTokenList : ValueType, 
	IEquatable, IReadOnlyCollection, IEnumerable, IEnumerable

The SyntaxNodeOrTokenList type exposes the following members.

Properties
  NameDescription
Public propertyCount
Gets the count of nodes in this 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 SyntaxNodeOrToken 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 SyntaxNodeOrTokenList with the specified node or token added to the end.
Public methodAddRange
Public methodAny
Indicates whether there is any element in the list.
Public methodEquals(Object)
Determines whether the specified Object is equal to this instance.
Public methodEquals(SyntaxNodeOrTokenList)
Indicates whether the current object is equal to another object of the same type.
Public methodFirst
Gets the first SyntaxNodeOrToken structure from this list.
Public methodFirstOrDefault
Gets the first SyntaxNodeOrToken structure from this list if present, else default(SyntaxNodeOrToken).
Public methodGetEnumerator
Gets the enumerator.
Public methodGetHashCode
Returns a hash code for this instance.
Public methodIndexOf
Returns the index from the list for the given SyntaxNodeOrToken.
Public methodInsert
Creates a new SyntaxNodeOrTokenList with the specified node or token inserted at the index.
Public methodInsertRange
Public methodLast
Gets the last SyntaxNodeOrToken structure from this list.
Public methodLastOrDefault
Gets the last SyntaxNodeOrToken structure from this list if present, else default(SyntaxNodeOrToken).
Public methodRemove
Creates a new SyntaxNodeOrTokenList with the specified element removed.
Public methodRemoveAt
Creates a new SyntaxNodeOrTokenList with the element at the specified index removed.
Public methodReplace
Creates a new SyntaxNodeOrTokenList with the specified element replaced with a new node or token.
Public methodReplaceRange
Public methodToFullString
Returns the full string representation of the nodes and tokens in this list including the first node or token's leading trivia and the last node or token's trailing trivia.
Public methodToString
Returns the string representation of the nodes and tokens in this list, not including the first node or token's leading trivia and the last node or token's trailing trivia.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Implements the operator ==.
Public operatorStatic memberInequality
Implements the operator !=.
Top
See Also