- | T.Heading heading -> out_preamble och heading
- | T.Line line -> out_line_comment och line
- | T.BaseUri uri -> out_command och (set "baseuri" uri)
- | T.Include script -> out_command och (require script)
- | T.Coercion specs -> out_command och (coercion (snd specs))
- | T.Notation specs -> out_unexported och "NOTATION" (snd specs) (**)
- | T.Inline (_, T.Var, src, _) -> out_alias och (UriManager.name_of_uri (UriManager.uri_of_string src)) src
- | T.Inline specs -> out_command och (inline (trd_rth specs))
- | T.Section specs -> out_unexported och "UNEXPORTED" (trd specs)
- | T.Comment comment -> out_comment och comment
- | T.Unexport unexport -> out_unexported och "UNEXPORTED" unexport
+ | T.Heading heading -> out_preamble och heading
+ | T.Line line ->
+ if !O.comments then out_line_comment och line
+ | T.Include (moo, script) -> out_command och (require moo script)
+ | T.Coercion specs ->
+ if !O.comments then out_unexported och "COERCION" (snd specs)
+ | T.Notation specs ->
+ if !O.comments then out_unexported och "NOTATION" (snd specs) (**)
+ | T.Inline (_, T.Var, src, _, _, _) ->
+ if !O.comments then out_unexported och "UNEXPORTED" src
+(* FG: we do not export variables because we cook the other objects
+ * let name = UriManager.name_of_uri (UriManager.uri_of_string src) in
+ * out_alias och name src
+ *)
+ | T.Inline (_, _, src, pre, fl, params) ->
+ if !O.getter then check och src;
+ out_command och (inline kind src pre fl params)
+ | T.Section specs ->
+ if !O.comments then out_unexported och "UNEXPORTED" (trd specs)
+ | T.Comment comment ->
+ if !O.comments then out_comment och comment
+ | T.Unexport unexport ->
+ if !O.comments then out_unexported och "UNEXPORTED" unexport