::ast/splatted -> ::ast/splat (standardize)
This commit is contained in:
parent
e30a8b973b
commit
a56a4b565a
|
@ -571,7 +571,7 @@
|
||||||
current_member
|
current_member
|
||||||
(panic parser "Unexpected splat after keyword in dict pattern.")
|
(panic parser "Unexpected splat after keyword in dict pattern.")
|
||||||
|
|
||||||
(::ast/splatted members)
|
(::ast/splat members)
|
||||||
(panic parser "Dict patterns may only have one splat.")
|
(panic parser "Dict patterns may only have one splat.")
|
||||||
|
|
||||||
(not= ::token/word (::token/type (current (advance parser))))
|
(not= ::token/word (::token/type (current (advance parser))))
|
||||||
|
@ -579,7 +579,7 @@
|
||||||
|
|
||||||
:else
|
:else
|
||||||
(let [splatted (parse-word (advance parser))]
|
(let [splatted (parse-word (advance parser))]
|
||||||
(recur splatted members {::ast/splatted (::ast splatted)})))
|
(recur splatted members {::ast/splat (::ast splatted)})))
|
||||||
|
|
||||||
::token/word
|
::token/word
|
||||||
(if (not current_member)
|
(if (not current_member)
|
||||||
|
@ -623,7 +623,7 @@
|
||||||
current_member
|
current_member
|
||||||
(panic parser "Unexpected splat after keyword in struct pattern.")
|
(panic parser "Unexpected splat after keyword in struct pattern.")
|
||||||
|
|
||||||
(::ast/splatted members)
|
(::ast/splat members)
|
||||||
(panic parser "Struct patterns may only have one splat.")
|
(panic parser "Struct patterns may only have one splat.")
|
||||||
|
|
||||||
(not= ::token/word (::token/type (current (advance parser))))
|
(not= ::token/word (::token/type (current (advance parser))))
|
||||||
|
@ -631,7 +631,7 @@
|
||||||
|
|
||||||
:else
|
:else
|
||||||
(let [splatted (parse-word (advance parser))]
|
(let [splatted (parse-word (advance parser))]
|
||||||
(recur splatted members {::ast/splatted (::ast splatted)})))
|
(recur splatted members {::ast/splat (::ast splatted)})))
|
||||||
|
|
||||||
::token/word
|
::token/word
|
||||||
(if (not current_member)
|
(if (not current_member)
|
||||||
|
@ -1142,7 +1142,7 @@
|
||||||
(parser)
|
(parser)
|
||||||
(parse-script)))
|
(parse-script)))
|
||||||
|
|
||||||
(do
|
(comment
|
||||||
(def pp pp/pprint)
|
(def pp pp/pprint)
|
||||||
(def source "let @{a, ...foo, :c d} = :foo")
|
(def source "let @{a, ...foo, :c d} = :foo")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user