Source locations #
TorchLean.Tensor.Internal records source locations as half-open ranges measured in Unicode scalar values. A span stores an offset and a length, so malformed ranges cannot be represented.
Instances For
@[instance_reducible]
The first offset after a source span.
Instances For
The empty span at offset.
Instances For
The half-open range from start to stop.
Instances For
The smallest span containing two spans that occur in source order.
Instances For
A value together with its location in source text.
- value : α
Parsed value.
- span : Span
Source range from which the value was parsed.
Instances For
def
TorchLean.Tensor.Internal.Syntax.instReprLocated.repr
{α✝ : Type u_1}
[Repr α✝]
:
Located α✝ → Nat → Std.Format
Instances For
def
TorchLean.Tensor.Internal.Syntax.instDecidableEqLocated.decEq
{α✝ : Type u_1}
[DecidableEq α✝]
(x✝ x✝¹ : Located α✝)
:
Instances For
@[instance_reducible]
instance
TorchLean.Tensor.Internal.Syntax.instDecidableEqLocated
{α✝ : Type u_1}
[DecidableEq α✝]
:
DecidableEq (Located α✝)