SyntaxList<TNode> Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A list of SyntaxNode.
generic <typename TNode>
where TNode : SyntaxNodepublic value class SyntaxList : IEquatable<Microsoft::CodeAnalysis::SyntaxList<TNode>>, System::Collections::Generic::IEnumerable<TNode>, System::Collections::Generic::IReadOnlyCollection<TNode>, System::Collections::Generic::IReadOnlyList<TNode>
public readonly struct SyntaxList<TNode> : IEquatable<Microsoft.CodeAnalysis.SyntaxList<TNode>>, System.Collections.Generic.IEnumerable<TNode>, System.Collections.Generic.IReadOnlyCollection<TNode>, System.Collections.Generic.IReadOnlyList<TNode> where TNode : SyntaxNode
type SyntaxList<'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 SyntaxList(Of TNode)
Implements IEnumerable(Of TNode), IEquatable(Of SyntaxList(Of TNode)), IReadOnlyCollection(Of TNode), IReadOnlyList(Of TNode)
- TNode
- Inheritance
-
SyntaxList<TNode>
- Implements
-
IEnumerable<T> IEnumerable<TNode> IReadOnlyCollection<T> IReadOnlyCollection<TNode> IReadOnlyList<TNode> IEnumerable IEquatable<SyntaxList<TNode>>
Syntax |
Creates a list of syntax nodes. |
Syntax |
Creates a singleton list of syntax nodes. |
Count |
The number of nodes in the list. |
Full |
The absolute span of the list elements in characters, including the leading and trailing trivia of the first and last elements. |
Item[Int32] |
Gets the node at the specified index. |
Span |
The absolute span of the list elements in characters, not including the leading and trailing trivia of the first and last elements. |
Add(TNode) |
Creates a new list with the specified node added at the end. |
Add |
Creates a new list with the specified nodes added at the end. |
Any() |
True if the list has at least one node. |
Equals(Object) | |
Equals(Syntax |
|
First() |
The first node in the list. |
First |
The first node in the list or default if the list is empty. |
Get |
Get's the enumerator for this list. |
Get |
|
Index |
|
Index |
The index of the node in this list, or -1 if the node is not in the list. |
Insert(Int32, TNode) |
Creates a new list with the specified node inserted at the index. |
Insert |
Creates a new list with the specified nodes inserted at the index. |
Last() |
The last node in the list. |
Last |
|
Last |
|
Last |
The last node in the list or default if the list is empty. |
Remove(TNode) |
Creates a new list with the element removed. |
Remove |
Creates a new list with the element at specified index removed. |
Replace(TNode, TNode) |
Creates a new list with the specified element replaced with the new node. |
Replace |
Creates a new list with the specified element replaced with new nodes. |
To |
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. |
To |
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. |
Any<TNode>(Syntax |
True if the list has at least one node of the specified kind. |
Index |
Returns the index of the first node of a specified kind in the node list. |
Any<TNode>(Syntax |
Tests whether a list contains node of a particular kind. |
Index |
Returns the index of the first node of a specified kind in the node list. |
Продукт | Версии |
---|---|
Roslyn | 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0 |
Обратна връзка за .NET
.NET е проект с отворен код. Изберете връзка, за да предоставите обратна връзка: