Skip to content

Commit cf13594

Browse files
rbanerjee20kmemarian
authored andcommitted
add Fulm pretty-printing for genTypeCategory
1 parent 27c945f commit cf13594

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ocaml_frontend/pprinters/pp_ail.ml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,10 +1022,16 @@ let rec pp_genType = function
10221022

10231023
let pp_genTypeCategory = function
10241024
| GenLValueType (qs, ty, isRegister) ->
1025+
if !executable_spec then
1026+
pp_qualifiers qs ^^^ pp_ctype_raw ty
1027+
else
10251028
!^ "GenLValueType" ^^ P.brackets (
10261029
pp_qualifiers qs ^^ P.comma ^^^ pp_ctype_raw ty ^^ P.comma ^^^ !^ (if isRegister then "true" else "false")
10271030
)
10281031
| GenRValueType gty ->
1032+
if !executable_spec then
1033+
pp_genType gty
1034+
else
10291035
!^ "GenRValueType" ^^ P.brackets (pp_genType gty)
10301036

10311037
let pp_expression e = pp_expression_aux (fun _ d -> d) e

0 commit comments

Comments
 (0)