C# 클래스 Microsoft.CodeAnalysis.SyntaxNodeOrTokenList

A list of SyntaxNodeOrToken structures.
파일 보기 프로젝트 열기: stark-lang/stark-roslyn 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CopyTo void
CreateList SyntaxNodeOrTokenList
CreateNode Microsoft.CodeAnalysis.SyntaxNode
IEnumerable IEnumerator
IEnumerable IEnumerator
SyntaxNodeOrTokenList System

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

Add() 공개 메소드

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.
리턴 SyntaxNodeOrTokenList

AddRange() 공개 메소드

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.
리턴 SyntaxNodeOrTokenList

Any() 공개 메소드

Indicates whether there is any element in the list.
public Any ( ) : bool
리턴 bool

Equals() 공개 메소드

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.
리턴 bool

Equals() 공개 메소드

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

First() 공개 메소드

Gets the first SyntaxNodeOrToken structure from this list.
public First ( ) : Microsoft.CodeAnalysis.SyntaxNodeOrToken
리턴 Microsoft.CodeAnalysis.SyntaxNodeOrToken

FirstOrDefault() 공개 메소드

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

GetEnumerator() 공개 메소드

Gets the enumerator.
public GetEnumerator ( ) : Microsoft.CodeAnalysis.Enumerator
리턴 Microsoft.CodeAnalysis.Enumerator

GetHashCode() 공개 메소드

Returns a hash code for this instance.
public GetHashCode ( ) : int
리턴 int

IndexOf() 공개 메소드

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.
리턴 int

Insert() 공개 메소드

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.
리턴 SyntaxNodeOrTokenList

InsertRange() 공개 메소드

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.
리턴 SyntaxNodeOrTokenList

Last() 공개 메소드

Gets the last SyntaxNodeOrToken structure from this list.
public Last ( ) : Microsoft.CodeAnalysis.SyntaxNodeOrToken
리턴 Microsoft.CodeAnalysis.SyntaxNodeOrToken

LastOrDefault() 공개 메소드

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

Remove() 공개 메소드

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

RemoveAt() 공개 메소드

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.
리턴 SyntaxNodeOrTokenList

Replace() 공개 메소드

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.
리턴 SyntaxNodeOrTokenList

ReplaceRange() 공개 메소드

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.
리턴 SyntaxNodeOrTokenList

SyntaxNodeOrTokenList() 공개 메소드

Create a SyntaxNodeOrTokenList from one or more SyntaxNodeOrToken.
public SyntaxNodeOrTokenList ( ) : System
리턴 System

SyntaxNodeOrTokenList() 공개 메소드

Create a SyntaxNodeOrTokenList from a sequence of SyntaxNodeOrToken.
public SyntaxNodeOrTokenList ( IEnumerable nodesAndTokens ) : System
nodesAndTokens IEnumerable The sequence of nodes and tokens
리턴 System

ToFullString() 공개 메소드

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
리턴 string

ToString() 공개 메소드

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
리턴 string

operator() 공개 정적인 메소드

Implements the operator ==.
public static operator ( ) : bool
리턴 bool

this() 공개 메소드

Gets the SyntaxNodeOrToken at the specified index.
is out of range.
public this ( int index ) : Microsoft.CodeAnalysis.SyntaxNodeOrToken
index int
리턴 Microsoft.CodeAnalysis.SyntaxNodeOrToken