C# Class Microsoft.CodeAnalysis.SyntaxNodeOrTokenList

A list of SyntaxNodeOrToken structures.
Afficher le fichier Open project: stark-lang/stark-roslyn Class Usage Examples

Private Properties

Свойство Type Description
CopyTo void
CreateList SyntaxNodeOrTokenList
CreateNode Microsoft.CodeAnalysis.SyntaxNode
IEnumerable IEnumerator
IEnumerable IEnumerator
SyntaxNodeOrTokenList System

Méthodes publiques

Méthode Description
Add ( Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrToken ) : SyntaxNodeOrTokenList

Creates a new SyntaxNodeOrTokenList with the specified node or token added to the end.

AddRange ( IEnumerable nodesOrTokens ) : SyntaxNodeOrTokenList

Creates a new SyntaxNodeOrTokenList with the specified nodes or tokens added to the end.

Any ( ) : bool

Indicates whether there is any element in the list.

Equals ( other ) : bool

Indicates whether the current object is equal to another object of the same type.

Equals ( object obj ) : bool

Determines whether the specified object is equal to this instance.

First ( ) : Microsoft.CodeAnalysis.SyntaxNodeOrToken

Gets the first SyntaxNodeOrToken structure from this list.

FirstOrDefault ( ) : Microsoft.CodeAnalysis.SyntaxNodeOrToken

Gets the first SyntaxNodeOrToken structure from this list if present, else default(SyntaxNodeOrToken).

GetEnumerator ( ) : Microsoft.CodeAnalysis.Enumerator

Gets the enumerator.

GetHashCode ( ) : int

Returns a hash code for this instance.

IndexOf ( Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrToken ) : int

Returns the index from the list for the given SyntaxNodeOrToken.

Insert ( int index, Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrToken ) : SyntaxNodeOrTokenList

Creates a new SyntaxNodeOrTokenList with the specified node or token inserted at the index.

InsertRange ( int index, IEnumerable nodesAndTokens ) : SyntaxNodeOrTokenList

Creates a new SyntaxNodeOrTokenList with the specified nodes or tokens inserted at the index.

Last ( ) : Microsoft.CodeAnalysis.SyntaxNodeOrToken

Gets the last SyntaxNodeOrToken structure from this list.

LastOrDefault ( ) : Microsoft.CodeAnalysis.SyntaxNodeOrToken

Gets the last SyntaxNodeOrToken structure from this list if present, else default(SyntaxNodeOrToken).

Remove ( Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrTokenInList ) : SyntaxNodeOrTokenList

Creates a new SyntaxNodeOrTokenList with the specified element removed.

RemoveAt ( int index ) : SyntaxNodeOrTokenList

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

Replace ( Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrTokenInList, Microsoft.CodeAnalysis.SyntaxNodeOrToken newNodeOrToken ) : SyntaxNodeOrTokenList

Creates a new SyntaxNodeOrTokenList with the specified element replaced with a new node or token.

ReplaceRange ( Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrTokenInList, IEnumerable newNodesAndTokens ) : SyntaxNodeOrTokenList

Creates a new SyntaxNodeOrTokenList with the specified element replaced with a new nodes and tokens.

SyntaxNodeOrTokenList ( ) : System

Create a SyntaxNodeOrTokenList from one or more SyntaxNodeOrToken.

SyntaxNodeOrTokenList ( IEnumerable nodesAndTokens ) : System

Create a SyntaxNodeOrTokenList from a sequence of SyntaxNodeOrToken.

ToFullString ( ) : string

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.

ToString ( ) : string

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.

operator ( ) : bool

Implements the operator ==.

this ( int index ) : Microsoft.CodeAnalysis.SyntaxNodeOrToken

Gets the SyntaxNodeOrToken at the specified index.

Private Methods

Méthode Description
CopyTo ( int offset, Array array, int arrayOffset, int count ) : void

Copies a given count of elements into the given array at specified offsets.

CreateList ( GreenNode creator, List items ) : SyntaxNodeOrTokenList
CreateNode ( IEnumerable nodesAndTokens ) : Microsoft.CodeAnalysis.SyntaxNode
IEnumerable ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

IEnumerable ( ) : IEnumerator

Returns an enumerator that iterates through the collection.

SyntaxNodeOrTokenList ( Microsoft.CodeAnalysis.SyntaxNode node, int index ) : System

Initializes a new instance of the SyntaxNodeOrTokenList structure.

Method Details

Add() public méthode

Creates a new SyntaxNodeOrTokenList with the specified node or token added to the end.
public Add ( Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrToken ) : SyntaxNodeOrTokenList
nodeOrToken Microsoft.CodeAnalysis.SyntaxNodeOrToken The node or token to add.
Résultat SyntaxNodeOrTokenList

AddRange() public méthode

Creates a new SyntaxNodeOrTokenList with the specified nodes or tokens added to the end.
public AddRange ( IEnumerable nodesOrTokens ) : SyntaxNodeOrTokenList
nodesOrTokens IEnumerable The nodes or tokens to add.
Résultat SyntaxNodeOrTokenList

Any() public méthode

Indicates whether there is any element in the list.
public Any ( ) : bool
Résultat bool

Equals() public méthode

Indicates whether the current object is equal to another object of the same type.
public Equals ( other ) : bool
other An object to compare with this object.
Résultat bool

Equals() public méthode

Determines whether the specified object is equal to this instance.
public Equals ( object obj ) : bool
obj object The to compare with this instance.
Résultat bool

First() public méthode

Gets the first SyntaxNodeOrToken structure from this list.
public First ( ) : Microsoft.CodeAnalysis.SyntaxNodeOrToken
Résultat Microsoft.CodeAnalysis.SyntaxNodeOrToken

FirstOrDefault() public méthode

Gets the first SyntaxNodeOrToken structure from this list if present, else default(SyntaxNodeOrToken).
public FirstOrDefault ( ) : Microsoft.CodeAnalysis.SyntaxNodeOrToken
Résultat Microsoft.CodeAnalysis.SyntaxNodeOrToken

GetEnumerator() public méthode

Gets the enumerator.
public GetEnumerator ( ) : Microsoft.CodeAnalysis.Enumerator
Résultat Microsoft.CodeAnalysis.Enumerator

GetHashCode() public méthode

Returns a hash code for this instance.
public GetHashCode ( ) : int
Résultat int

IndexOf() public méthode

Returns the index from the list for the given SyntaxNodeOrToken.
public IndexOf ( Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrToken ) : int
nodeOrToken Microsoft.CodeAnalysis.SyntaxNodeOrToken The node or token to search for in the list.
Résultat int

Insert() public méthode

Creates a new SyntaxNodeOrTokenList with the specified node or token inserted at the index.
public Insert ( int index, Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrToken ) : SyntaxNodeOrTokenList
index int The index to insert at.
nodeOrToken Microsoft.CodeAnalysis.SyntaxNodeOrToken The node or token to insert.
Résultat SyntaxNodeOrTokenList

InsertRange() public méthode

Creates a new SyntaxNodeOrTokenList with the specified nodes or tokens inserted at the index.
public InsertRange ( int index, IEnumerable nodesAndTokens ) : SyntaxNodeOrTokenList
index int The index to insert at.
nodesAndTokens IEnumerable The nodes or tokens to insert.
Résultat SyntaxNodeOrTokenList

Last() public méthode

Gets the last SyntaxNodeOrToken structure from this list.
public Last ( ) : Microsoft.CodeAnalysis.SyntaxNodeOrToken
Résultat Microsoft.CodeAnalysis.SyntaxNodeOrToken

LastOrDefault() public méthode

Gets the last SyntaxNodeOrToken structure from this list if present, else default(SyntaxNodeOrToken).
public LastOrDefault ( ) : Microsoft.CodeAnalysis.SyntaxNodeOrToken
Résultat Microsoft.CodeAnalysis.SyntaxNodeOrToken

Remove() public méthode

Creates a new SyntaxNodeOrTokenList with the specified element removed.
public Remove ( Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrTokenInList ) : SyntaxNodeOrTokenList
nodeOrTokenInList Microsoft.CodeAnalysis.SyntaxNodeOrToken The element to remove.
Résultat SyntaxNodeOrTokenList

RemoveAt() public méthode

Creates a new SyntaxNodeOrTokenList with the element at the specified index removed.
public RemoveAt ( int index ) : SyntaxNodeOrTokenList
index int The index of the element to remove.
Résultat SyntaxNodeOrTokenList

Replace() public méthode

Creates a new SyntaxNodeOrTokenList with the specified element replaced with a new node or token.
public Replace ( Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrTokenInList, Microsoft.CodeAnalysis.SyntaxNodeOrToken newNodeOrToken ) : SyntaxNodeOrTokenList
nodeOrTokenInList Microsoft.CodeAnalysis.SyntaxNodeOrToken The element to replace.
newNodeOrToken Microsoft.CodeAnalysis.SyntaxNodeOrToken The new node or token.
Résultat SyntaxNodeOrTokenList

ReplaceRange() public méthode

Creates a new SyntaxNodeOrTokenList with the specified element replaced with a new nodes and tokens.
public ReplaceRange ( Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrTokenInList, IEnumerable newNodesAndTokens ) : SyntaxNodeOrTokenList
nodeOrTokenInList Microsoft.CodeAnalysis.SyntaxNodeOrToken The element to replace.
newNodesAndTokens IEnumerable The new nodes and tokens.
Résultat SyntaxNodeOrTokenList

SyntaxNodeOrTokenList() public méthode

Create a SyntaxNodeOrTokenList from one or more SyntaxNodeOrToken.
public SyntaxNodeOrTokenList ( ) : System
Résultat System

SyntaxNodeOrTokenList() public méthode

Create a SyntaxNodeOrTokenList from a sequence of SyntaxNodeOrToken.
public SyntaxNodeOrTokenList ( IEnumerable nodesAndTokens ) : System
nodesAndTokens IEnumerable The sequence of nodes and tokens
Résultat System

ToFullString() public méthode

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 ToFullString ( ) : string
Résultat string

ToString() public méthode

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.
public ToString ( ) : string
Résultat string

operator() public static méthode

Implements the operator ==.
public static operator ( ) : bool
Résultat bool

this() public méthode

Gets the SyntaxNodeOrToken at the specified index.
is out of range.
public this ( int index ) : Microsoft.CodeAnalysis.SyntaxNodeOrToken
index int
Résultat Microsoft.CodeAnalysis.SyntaxNodeOrToken