Make use of more function type helpers in serialization.
original commit: 28b81183de8836d66a4f16a33355d2df90fb7326
This commit is contained in:
parent
1819be0098
commit
1873ecf918
|
@ -68,6 +68,16 @@
|
|||
`(-lst ,(sub elem-ty))]
|
||||
[(Function: (list (arr: dom (Values: (list (Result: t (FilterSet: (Top:) (Top:)) (Empty:)))) #f #f '())))
|
||||
`(simple-> (list ,@(map sub dom)) ,(sub t))]
|
||||
[(Function: (list (arr: dom (Values: (list (Result: t (FilterSet: (TypeFilter: ft pth n)
|
||||
(NotTypeFilter: ft pth n))
|
||||
(Empty:))))
|
||||
#f #f '())))
|
||||
`(make-pred-ty (list ,@(map sub dom)) ,(sub t) ,(sub ft) ,(sub n) ,(sub pth))]
|
||||
[(Function: (list (arr: dom (Values: (list (Result: t (FilterSet: (NotTypeFilter: (== -False) pth 0)
|
||||
(TypeFilter: (== -False) pth 0))
|
||||
(Path: pth 0))))
|
||||
#f #f '())))
|
||||
`(->acc (list ,@(map sub dom)) ,(sub t) ,(sub pth))]
|
||||
[(Union: elems) (split-union elems)]
|
||||
[(Base: n cnt pred _) (int-err "Base type not in predefined-type-table" n)]
|
||||
[(Name: stx) `(make-Name (quote-syntax ,stx))]
|
||||
|
|
Loading…
Reference in New Issue
Block a user