Add support for serde wrappers to data model
This commit is contained in:
parent
d886213ded
commit
317a08abc6
1 changed files with 16 additions and 6 deletions
|
|
@ -753,15 +753,25 @@
|
||||||
|
|
||||||
(defmethod reify-symbolspec :downcall
|
(defmethod reify-symbolspec :downcall
|
||||||
[spec]
|
[spec]
|
||||||
(make-downcall (:symbol spec)
|
(cond->
|
||||||
(:function/args spec)
|
(make-downcall (:symbol spec)
|
||||||
(:function/ret spec)))
|
(:function/args spec)
|
||||||
|
(:function/ret spec))
|
||||||
|
(:function/wrap-serde? spec)
|
||||||
|
(make-serde-wrapper
|
||||||
|
(:function/args spec)
|
||||||
|
(:function/ret spec))))
|
||||||
|
|
||||||
(defmethod reify-symbolspec :varargs-factory
|
(defmethod reify-symbolspec :varargs-factory
|
||||||
[spec]
|
[spec]
|
||||||
(make-varargs-factory (:symbol spec)
|
(cond->
|
||||||
(:function/args spec)
|
(make-varargs-factory (:symbol spec)
|
||||||
(:function/ret spec)))
|
(:function/args spec)
|
||||||
|
(:function/ret spec))
|
||||||
|
(:function/wrap-serde? spec)
|
||||||
|
(make-serde-varargs-wrapper
|
||||||
|
(:function/args spec)
|
||||||
|
(:function/ret spec))))
|
||||||
|
|
||||||
(defmethod reify-symbolspec :const
|
(defmethod reify-symbolspec :const
|
||||||
[spec]
|
[spec]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue