package ocamlformat

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a with_comments = {
  1. ast : 'a;
  2. comments : Cmt.t Ocamlformat_stdlib.list;
  3. prefix : Ocamlformat_stdlib.string;
  4. source : Source.t;
}
module W : sig ... end
val parse : ?disable_w50:Ocamlformat_stdlib.bool -> ('b -> Lexing.lexbuf -> 'a) -> 'b -> Conf.t -> source:Ocamlformat_stdlib.string -> 'a with_comments
  • raises [Warning50]

    on misplaced documentation comments.

Variant of parse that uses Extended_ast.Parse.toplevel. This function handles conf.parse_toplevel_phrases.