package archetype

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Archetype.LspSource

Sourcemodule PT = ParseTree
Sourcetype status =
  1. | Passed
  2. | Error
  3. | Crash
Sourceval status_to_yojson : status -> Yojson.Safe.t
Sourcetype position = {
  1. line : int;
  2. col : int;
  3. char : int;
}
Sourceval position_to_yojson : position -> Yojson.Safe.t
Sourcetype range = {
  1. start : position;
  2. end_ : position;
}
Sourceval range_to_yojson : range -> Yojson.Safe.t
Sourceval severity_error : int
Sourceval severity_warning : int
Sourceval severity_information : int
Sourceval severity_hint : int
Sourcetype item = {
  1. severity : int;
  2. range : range;
  3. message : string;
}
Sourceval item_to_yojson : item -> Yojson.Safe.t
Sourcetype result = {
  1. status : status;
  2. items : item list;
}
Sourceval result_to_yojson : result -> Yojson.Safe.t
Sourcetype outline = {
  1. children : outline list;
  2. name : string;
  3. kind : int;
  4. start : position;
  5. end_ : position;
}
Sourceval outline_to_yojson : outline -> Yojson.Safe.t
Sourcetype result_outline = {
  1. status : status;
  2. outlines : outline list;
}
Sourceval result_outline_to_yojson : result_outline -> Yojson.Safe.t
Sourceval mk_position : (int * int) -> int -> position
Sourceval mk_range : Location.t -> range
Sourceval mk_item : Location.t -> int -> string -> item
Sourceval mk_outline : (string * int * Location.t) -> outline
Sourceval mk_result : status -> item list -> result
Sourcetype symbol_kind =
  1. | File
  2. | Module
  3. | Namespace
  4. | Package
  5. | Class
  6. | Method
  7. | Property
  8. | Field
  9. | Constructor
  10. | Enum
  11. | Interface
  12. | Function
  13. | Variable
  14. | Constant
  15. | String
  16. | Number
  17. | Boolean
  18. | Array
  19. | Object
  20. | Key
  21. | Null
  22. | EnumMember
  23. | Struct
  24. | Event
  25. | Operator
  26. | TypeParameter
Sourceval symbol_kind_to_int : symbol_kind -> int
Sourcetype label_exprs = label_expr list
Sourceval mk_outline_from_label_exprs : label_exprs -> outline list
Sourceval make_outline_from_enum : (PT.enum_kind * (string Location.loced * 'a * 'b) list * Location.t) -> outline list
Sourceval make_outline_from_decl : PT.declaration -> Location.t -> outline list
Sourceval process_crash : unit -> string
Sourceval process_errors : ?status:status -> unit -> string
Sourceval process : Options.lsp_kind -> Core.from_input -> string
Sourceval process_from_string : Options.lsp_kind -> string -> string -> string
OCaml

Innovation. Community. Security.