Info
is the parser-captured source position of a form: byte
offset pos, line, and col.
col
instantiate
(Fn [(Ref Info a)] (Ref Int a))
gets the col property of a Info.
copy
instantiate
(Fn [(Ref Info a)] Info)
copies a Info.
delete
instantiate
(Fn [Info] ())
deletes a Info. Should usually not be called manually.
init
instantiate
(Fn [Int, Int, Int] Info)
creates a Info.
line
instantiate
(Fn [(Ref Info a)] (Ref Int a))
gets the line property of a Info.
pos
instantiate
(Fn [(Ref Info a)] (Ref Int a))
gets the pos property of a Info.
prn
instantiate
(Fn [(Ref Info a)] String)
converts a Info to a string.
set-col
instantiate
(Fn [Info, Int] Info)
sets the col property of a Info.
set-col!
instantiate
(Fn [(Ref Info a), Int] ())
sets the col property of a Info in place.
set-line
instantiate
(Fn [Info, Int] Info)
sets the line property of a Info.
set-line!
instantiate
(Fn [(Ref Info a), Int] ())
sets the line property of a Info in place.
set-pos
instantiate
(Fn [Info, Int] Info)
sets the pos property of a Info.
set-pos!
instantiate
(Fn [(Ref Info a), Int] ())
sets the pos property of a Info in place.
str
instantiate
(Fn [(Ref Info a)] String)
converts a Info to a string.
synthetic
defn
(Fn [] Info)
(synthetic)
is an Info for synthesized nodes (e.g. reader-macro
expansions like &x → (ref x), where the ref symbol isn't in the
source). pos, line, and col are all 0.
update-col
instantiate
(Fn [Info, (Ref (Fn [Int] Int a) b)] Info)
updates the col property of a Info using a function f.
update-line
instantiate
(Fn [Info, (Ref (Fn [Int] Int a) b)] Info)
updates the line property of a Info using a function f.
update-pos
instantiate
(Fn [Info, (Ref (Fn [Int] Int a) b)] Info)
updates the pos property of a Info using a function f.