Located
is a Form paired with the Info captured at its
start position (info) and the position just after its last byte
(end). The parser emits Located for every node, top-level and
nested. Synthesized nodes (reader-macro expansions) carry
Info.synthetic for both.
copy
instantiate
(Fn [(Ref Located a)] Located)
copies a Located.
delete
instantiate
(Fn [Located] ())
deletes a Located. Should usually not be called manually.
end
instantiate
(Fn [(Ref Located a)] (Ref Info a))
gets the end property of a Located.
instantiate
(Fn [(Ref Located a)] (Ref Form a))
gets the form property of a Located.
info
instantiate
(Fn [(Ref Located a)] (Ref Info a))
gets the info property of a Located.
init
instantiate
(Fn [Form, Info, Info] Located)
creates a Located.
prn
instantiate
(Fn [(Ref Located a)] String)
converts a Located to a string.
set-end
instantiate
(Fn [Located, Info] Located)
sets the end property of a Located.
set-end!
instantiate
(Fn [(Ref Located a), Info] ())
sets the end property of a Located in place.
instantiate
(Fn [Located, Form] Located)
sets the form property of a Located.
instantiate
(Fn [(Ref Located a), Form] ())
sets the form property of a Located in place.
set-info
instantiate
(Fn [Located, Info] Located)
sets the info property of a Located.
set-info!
instantiate
(Fn [(Ref Located a), Info] ())
sets the info property of a Located in place.
str
defn
(Fn [(Ref Located a)] String)
(str l)
renders a Located as source-like text via the underlying
Form.str. Position info is dropped — use Located.info directly if
you need it.
update-end
instantiate
(Fn [Located, (Ref (Fn [Info] Info a) b)] Located)
updates the end property of a Located using a function f.
instantiate
(Fn [Located, (Ref (Fn [Form] Form a) b)] Located)
updates the form property of a Located using a function f.
update-info
instantiate
(Fn [Located, (Ref (Fn [Info] Info a) b)] Located)
updates the info property of a Located using a function f.