ChildSyntaxList.Enumerator Struct

Walks a ChildSyntaxList without allocating.

Remarks

The enumerator keeps the slot of the current child, its index in the list of the slot, and its position, so that each step moves to the next child instead of walking the slots again from the first one.

Implements

Properties

NameDescription
Current
System.Collections.IEnumerator.Current
public readonly SyntaxNodeOrToken Current { get; }

Property value

SyntaxNodeOrToken

No documentation is available.

System.Collections.IEnumerator.Current

ChildSyntaxList.cs
object IEnumerator.Current { get; }

Property value

object

No documentation is available.

Methods

NameDescription
Dispose()
MoveNext()
Reset()
public readonly void Dispose()

No documentation is available.

public bool MoveNext()

Returns

bool

No documentation is available.

public void Reset()

No documentation is available.