Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
d8f4a2b7
Commit
d8f4a2b7
authored
Jun 09, 2014
by
Pietro Abate
Browse files
Fix printer for record types
parent
a96c08aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
types/types.ml
View file @
d8f4a2b7
...
...
@@ -1732,13 +1732,11 @@ struct
)
(
Pair
.
get
x
))
not_seq
.
toplvars
not_seq
.
arrow
;
(* records *)
(*
prepare_boolvar BoolRec.get (fun x ->
List.iter (fun (r,some,none) ->
prepare_boolvar
BoolRec
.
get
(
Rec
.
equal
Rec
.
full
)
(
fun
x
->
List
.
map
(
fun
(
r
,
some
,
none
)
->
let
r
=
LabelMap
.
map
(
fun
(
o
,
t
)
->
(
o
,
prepare
t
))
r
in
add (Record (r,some,none))
) (Record.get x)) not_seq.toplvars not_seq;
*)
(
Record
(
r
,
some
,
none
))
)
(
Record
.
get
{
empty
with
record
=
BoolRec
.
atom
(
`Atm
x
)
}))
not_seq
.
toplvars
not_seq
.
record
;
List
.
iter
(
fun
x
->
add
(
Atomic
x
))
(
Abstract
.
print
not_seq
.
abstract
);
...
...
types/types.mli
View file @
d8f4a2b7
...
...
@@ -228,7 +228,6 @@ module Record : sig
val
project_opt
:
t
->
label
->
t
val
has_empty_record
:
t
->
bool
val
first_label
:
t
->
label
val
all_labels
:
t
->
LabelSet
.
t
...
...
@@ -239,7 +238,6 @@ module Record : sig
val
get
:
t
->
((
bool
*
t
)
label_map
*
bool
*
bool
)
list
type
t
val
focus
:
descr
->
label
->
t
val
get_this
:
t
->
descr
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment