Search Results for

    Show / Hide Table of Contents

    Struct SyntaxList<TNode>

    Implements
    IReadOnlyList<TNode>
    IReadOnlyCollection<TNode>
    IEnumerable<TNode>
    IEnumerable
    IEquatable<SyntaxList<TNode>>
    Inherited Members
    object.GetType()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: Microsoft.CodeAnalysis
    Assembly: Microsoft.CodeAnalysis.dll
    Syntax
    public readonly struct SyntaxList<TNode> : IReadOnlyList<TNode>, IReadOnlyCollection<TNode>, IEnumerable<TNode>, IEnumerable, IEquatable<SyntaxList<TNode>> where TNode : SyntaxNode
    Type Parameters
    Name Description
    TNode

    Constructors

    SyntaxList(IEnumerable<TNode>?)

    Declaration
    public SyntaxList(IEnumerable<TNode>? nodes)
    Parameters
    Type Name Description
    IEnumerable<TNode> nodes

    SyntaxList(TNode?)

    Declaration
    public SyntaxList(TNode? node)
    Parameters
    Type Name Description
    TNode node

    Properties

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int

    FullSpan

    Declaration
    public TextSpan FullSpan { get; }
    Property Value
    Type Description
    TextSpan

    this[int]

    Declaration
    public TNode this[int index] { get; }
    Parameters
    Type Name Description
    int index
    Property Value
    Type Description
    TNode

    Span

    Declaration
    public TextSpan Span { get; }
    Property Value
    Type Description
    TextSpan

    Methods

    Add(TNode)

    Declaration
    public SyntaxList<TNode> Add(TNode node)
    Parameters
    Type Name Description
    TNode node
    Returns
    Type Description
    SyntaxList<TNode>

    AddRange(IEnumerable<TNode>)

    Declaration
    public SyntaxList<TNode> AddRange(IEnumerable<TNode> nodes)
    Parameters
    Type Name Description
    IEnumerable<TNode> nodes
    Returns
    Type Description
    SyntaxList<TNode>

    Any()

    Declaration
    public bool Any()
    Returns
    Type Description
    bool

    Equals(SyntaxList<TNode>)

    Declaration
    public bool Equals(SyntaxList<TNode> other)
    Parameters
    Type Name Description
    SyntaxList<TNode> other
    Returns
    Type Description
    bool

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    ValueType.Equals(object)

    First()

    Declaration
    public TNode First()
    Returns
    Type Description
    TNode

    FirstOrDefault()

    Declaration
    public TNode? FirstOrDefault()
    Returns
    Type Description
    TNode

    GetEnumerator()

    Declaration
    public SyntaxList<TNode>.Enumerator GetEnumerator()
    Returns
    Type Description
    SyntaxList<TNode>.Enumerator

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ValueType.GetHashCode()

    IndexOf(Func<TNode, bool>)

    Declaration
    public int IndexOf(Func<TNode, bool> predicate)
    Parameters
    Type Name Description
    Func<TNode, bool> predicate
    Returns
    Type Description
    int

    IndexOf(TNode)

    Declaration
    public int IndexOf(TNode node)
    Parameters
    Type Name Description
    TNode node
    Returns
    Type Description
    int

    Insert(int, TNode)

    Declaration
    public SyntaxList<TNode> Insert(int index, TNode node)
    Parameters
    Type Name Description
    int index
    TNode node
    Returns
    Type Description
    SyntaxList<TNode>

    InsertRange(int, IEnumerable<TNode>)

    Declaration
    public SyntaxList<TNode> InsertRange(int index, IEnumerable<TNode> nodes)
    Parameters
    Type Name Description
    int index
    IEnumerable<TNode> nodes
    Returns
    Type Description
    SyntaxList<TNode>

    Last()

    Declaration
    public TNode Last()
    Returns
    Type Description
    TNode

    LastIndexOf(Func<TNode, bool>)

    Declaration
    public int LastIndexOf(Func<TNode, bool> predicate)
    Parameters
    Type Name Description
    Func<TNode, bool> predicate
    Returns
    Type Description
    int

    LastIndexOf(TNode)

    Declaration
    public int LastIndexOf(TNode node)
    Parameters
    Type Name Description
    TNode node
    Returns
    Type Description
    int

    LastOrDefault()

    Declaration
    public TNode? LastOrDefault()
    Returns
    Type Description
    TNode

    Remove(TNode)

    Declaration
    public SyntaxList<TNode> Remove(TNode node)
    Parameters
    Type Name Description
    TNode node
    Returns
    Type Description
    SyntaxList<TNode>

    RemoveAt(int)

    Declaration
    public SyntaxList<TNode> RemoveAt(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    SyntaxList<TNode>

    Replace(TNode, TNode)

    Declaration
    public SyntaxList<TNode> Replace(TNode nodeInList, TNode newNode)
    Parameters
    Type Name Description
    TNode nodeInList
    TNode newNode
    Returns
    Type Description
    SyntaxList<TNode>

    ReplaceRange(TNode, IEnumerable<TNode>)

    Declaration
    public SyntaxList<TNode> ReplaceRange(TNode nodeInList, IEnumerable<TNode> newNodes)
    Parameters
    Type Name Description
    TNode nodeInList
    IEnumerable<TNode> newNodes
    Returns
    Type Description
    SyntaxList<TNode>

    ToFullString()

    Declaration
    public string ToFullString()
    Returns
    Type Description
    string

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    Operators

    operator ==(SyntaxList<TNode>, SyntaxList<TNode>)

    Declaration
    public static bool operator ==(SyntaxList<TNode> left, SyntaxList<TNode> right)
    Parameters
    Type Name Description
    SyntaxList<TNode> left
    SyntaxList<TNode> right
    Returns
    Type Description
    bool

    explicit operator SyntaxList<TNode>(SyntaxList<SyntaxNode>)

    Declaration
    public static explicit operator SyntaxList<TNode>(SyntaxList<SyntaxNode> nodes)
    Parameters
    Type Name Description
    SyntaxList<SyntaxNode> nodes
    Returns
    Type Description
    SyntaxList<TNode>

    implicit operator SyntaxList<SyntaxNode>(SyntaxList<TNode>)

    Declaration
    public static implicit operator SyntaxList<SyntaxNode>(SyntaxList<TNode> nodes)
    Parameters
    Type Name Description
    SyntaxList<TNode> nodes
    Returns
    Type Description
    SyntaxList<SyntaxNode>

    operator !=(SyntaxList<TNode>, SyntaxList<TNode>)

    Declaration
    public static bool operator !=(SyntaxList<TNode> left, SyntaxList<TNode> right)
    Parameters
    Type Name Description
    SyntaxList<TNode> left
    SyntaxList<TNode> right
    Returns
    Type Description
    bool

    Implements

    IReadOnlyList<T>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IEnumerable
    IEquatable<T>
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0