ILGPU  0.9.0
ILGPU.Frontend.DebugInformation.SequencePointEnumerator Struct Reference

Represents a sequence-point enumerator for methods. More...

Inheritance diagram for ILGPU.Frontend.DebugInformation.SequencePointEnumerator:
ILGPU.Frontend.DebugInformation.IDebugInformationEnumerator< Location >

Public Member Functions

bool MoveTo (int offset)
 Tries to move the enumerator to the given offset in bytes. More...
 
- Public Member Functions inherited from ILGPU.Frontend.DebugInformation.IDebugInformationEnumerator< Location >
bool MoveTo (int offset)
 Moves the enumerator forward to the given instruction offset. More...
 

Public Attributes

bool IsValid
 Returns true if the current enumerator state points to a valid sequence point. More...
 
Location Current
 Returns the current sequence point. More...
 

Static Public Attributes

static readonly SequencePointEnumerator Empty
 Represents an empty sequence-point enumerator. More...
 

Properties

ImmutableArray< SequencePointSequencePoints [get]
 Returns the associated sequence points. More...
 
- Properties inherited from ILGPU.Frontend.DebugInformation.IDebugInformationEnumerator< Location >
Current [get]
 Returns the current object. More...
 

Detailed Description

Represents a sequence-point enumerator for methods.

Member Function Documentation

bool ILGPU.Frontend.DebugInformation.SequencePointEnumerator.MoveTo ( int  offset)

Tries to move the enumerator to the given offset in bytes.

Parameters
offsetThe target instruction offset in bytes.
Returns
True, is the next sequence point is valid.

Member Data Documentation

Location ILGPU.Frontend.DebugInformation.SequencePointEnumerator.Current
Initial value:
=>
IsValid ? SequencePoints[currentPoint] : Location.Unknown

Returns the current sequence point.

readonly SequencePointEnumerator ILGPU.Frontend.DebugInformation.SequencePointEnumerator.Empty
static
Initial value:
=
new SequencePointEnumerator(ImmutableArray<SequencePoint>.Empty)

Represents an empty sequence-point enumerator.

bool ILGPU.Frontend.DebugInformation.SequencePointEnumerator.IsValid
Initial value:
=>
currentPoint >= 0 && currentPoint < SequencePoints.Length

Returns true if the current enumerator state points to a valid sequence point.

Property Documentation

ImmutableArray<SequencePoint> ILGPU.Frontend.DebugInformation.SequencePointEnumerator.SequencePoints
get

Returns the associated sequence points.


The documentation for this struct was generated from the following file: