File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -211,4 +211,6 @@ module Parse = struct
211211 let core_type lexbuf = core_type lexbuf |> Of_ocaml. copy_core_type
212212 let expression lexbuf = expression lexbuf |> Of_ocaml. copy_expression
213213 let pattern lexbuf = pattern lexbuf |> Of_ocaml. copy_pattern
214+
215+ let comments_in_last_parse = comments_in_last_parse
214216end
Original file line number Diff line number Diff line change 11include Ocaml_common. Parse
2+
3+ let comments_in_last_parse = Ocaml_common.Lexer. comments
Original file line number Diff line number Diff line change @@ -20,3 +20,6 @@ val expression : Lexing.lexbuf -> Parsetree.expression
2020
2121val pattern : Lexing .lexbuf -> Parsetree .pattern
2222(* * Parse a pattern *)
23+
24+ val comments_in_last_parse : unit -> (string * Location .t ) list
25+ (* * Get the comments from the last parse *)
You can’t perform that action at this time.
0 commit comments