UplcSpan

scalus.uplc.internal.UplcSpan
final case class UplcSpan(s: Int, e: Int, n: Int, file: Int, sl: Int, sc: Int, el: Int, ec: Int, fn: Option[Int])

One mapped region of rendered UPLC text.

Value parameters

e

end character offset into UplcSourceMap.uplc, exclusive

ec

0-based end column of the source position

el

0-based end line of the source position

file

index into UplcSourceMap.files

fn

index into UplcSourceMap.functions, absent when the node carries no enclosing function name

n

the node's post-order index in the term tree (children before parent, fields in declaration order). Post-order is used because it keeps the indices of an already-rendered program stable when that program is later wrapped in Apply nodes to apply parameters.

s

start character offset into UplcSourceMap.uplc, inclusive

sc

0-based start column of the source position

sl

0-based start line of the source position

Attributes

Note

lines are 0-based here, as in scalus.utils.ScalusSourcePos. The profile.json report uses 1-based lines; do not mix the two.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product