viaduct
0.3.0
compiler
/
io.github.aplcornell.viaduct.syntax
/
Located
Located
data
class
Located
<
out
T
:
PrettyPrintable
>
(
val
value
:
T
,
val
sourceLocation
:
SourceLocation
)
:
HasSourceLocation
,
PrettyPrintable
Attaches a source location to an arbitrary type.
Constructors
Functions
Properties
Constructors
Located
Link copied to clipboard
fun
<
out
T
:
PrettyPrintable
>
Located
(
value
:
T
,
sourceLocation
:
SourceLocation
)
Functions
to
Document
Link copied to clipboard
open
override
fun
toDocument
(
)
:
Document
Properties
source
Location
Link copied to clipboard
open
override
val
sourceLocation
:
SourceLocation
value
Link copied to clipboard
val
value
:
T