Source file reason_toolchain_conf.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
open Reason_migrate_parsetree
include Ast_411
module From_current = Convert(OCaml_current)(OCaml_411)
module To_current = Convert(OCaml_411)(OCaml_current)
module type Toolchain = sig
val core_type: Lexing.lexbuf -> Parsetree.core_type
val implementation: Lexing.lexbuf -> Parsetree.structure
val interface: Lexing.lexbuf -> Parsetree.signature
val toplevel_phrase: Lexing.lexbuf -> Parsetree.toplevel_phrase
val use_file: Lexing.lexbuf -> Parsetree.toplevel_phrase list
end
module type Toolchain_spec = sig
val safeguard_parsing: Lexing.lexbuf ->
(unit -> ('a * Reason_comment.t list)) -> ('a * Reason_comment.t list)
type token
type invalid_docstrings
module Lexer : sig
type t
val init: ?insert_completion_ident:Lexing.position ->
Lexing.lexbuf -> t
end
val core_type: Lexer.t -> Parsetree.core_type * invalid_docstrings
val implementation: Lexer.t -> Parsetree.structure * invalid_docstrings
val interface: Lexer.t -> Parsetree.signature * invalid_docstrings
val toplevel_phrase: Lexer.t -> Parsetree.toplevel_phrase * invalid_docstrings
val use_file: Lexer.t -> Parsetree.toplevel_phrase list * invalid_docstrings
end
let insert_completion_ident : Lexing.position option ref = ref None