Dunolint_engine.Dune_project_contextSourceContext associated with a dune-project file.
When performing linting it may be useful to refer to context from the enclosing dune-project file. This type is used to hold the information we wish to access.
Each value of type t refers to context found in exactly one file. This type is non mutable.
val create :
path:Fpath_sexp0.Relative_path.t ->
original_contents:Base.string ->
(t, Pplumbing_err.Err.t) Base.Result.tcreate ~path ~original_contents parses information needed from a "dune-project" file, and extracts from it an immutable context required for linting.
A valid dune-project file will necessarily start with a valid lang dune stanza, however if the file is not valid, this may return None.