Module Document.TYPES

type document = {
  1. project : Superbol_project__.Project.TYPES.project;
  2. textdoc : Lsp.Text_document.t;
  3. copybook : bool;
  4. artifacts : Cobol_parser.Outputs.artifacts;
  5. semtoks : Superbol_project.Analysis.semantic_tokens Stdlib.Lazy.t option;
  6. checked : checked_doc option;
  7. rewinder : rewinder option;
  8. recorder : Superbol_cache.Recorder.t option;
  9. parsing_diags : Cobol_parser.Diagnostics.ALL.t;
  10. typecking_diags : Cobol_typeck.Diagnostics.t;
}
and checked_doc = Cobol_typeck.Outputs.t
exception Unparseable of Lsp.Types.DocumentUri.t

Raised by Document.checked.

exception Copybook of Lsp.Types.DocumentUri.t
exception Internal_error of document * exn * Stdlib.Printexc.raw_backtrace

Raised by Document.load and Document.update; allows keeping consistent document contents.

type cached = {
  1. doc_cache_filename : string;
}

Persistent representation of LSP-specific data (for caching). The analysis results are cached separately, as a Superbol_project.Analysis.for_lsp, so that they can be shared with other front-ends.