ILGPU  0.9.0
ILGPU.IR.Location Class Referenceabstract

An abstract source location. More...

Inheritance diagram for ILGPU.IR.Location:
ILGPU.IR.ILocation ILGPU.IR.FileLocation ILGPU.IR.Method.MethodLocation ILGPU.Frontend.DebugInformation.SequencePoint

Public Member Functions

abstract string FormatErrorMessage (string message)
 Formats an error message to include specific location information. More...
 

Static Public Member Functions

static Location Merge (Location start, Location end)
 Merges two locations into one. More...
 

Public Attributes

bool IsKnown => this != Unknown
 Returns true if this location is a known location. More...
 

Properties

static Location Unknown [get]
 Represents an unknown location. More...
 
static Location Nowhere = new UnknownLocation() [get]
 Represents no location. More...
 

Detailed Description

An abstract source location.

Member Function Documentation

abstract string ILGPU.IR.Location.FormatErrorMessage ( string  message)
pure virtual

Formats an error message to include specific location information.

Parameters
messageThe source error message.
Returns
The formatted error message.

Implements ILGPU.IR.ILocation.

Implemented in ILGPU.IR.Method.MethodLocation, and ILGPU.IR.FileLocation.

static Location ILGPU.IR.Location.Merge ( Location  start,
Location  end 
)
static

Merges two locations into one.

Parameters
startThe start location.
endThe end location.
Returns
The merged location.

Member Data Documentation

bool ILGPU.IR.Location.IsKnown => this != Unknown

Returns true if this location is a known location.

Property Documentation

Location ILGPU.IR.Location.Nowhere = new UnknownLocation()
staticget

Represents no location.

Location ILGPU.IR.Location.Unknown
staticget

Represents an unknown location.


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