package dune

  1. Overview
  2. Docs
Fast, portable and opinionated build system

Install

Dune Dependency

Authors

Maintainers

Sources

dune-build-info-1.11.4.tbz
sha256=77cb5f483221b266ded2b85fc84173ae0089a25134a086be922e82c131456ce6
sha512=02f00fd872aa49b832fc8c1e928409f23c79ddf84a53009a58875f222cca36fbb92c905e12c539caec9cbad723f195a8aa24218382dca35a903b3f52b11f06f2

doc/dune._dune_lang/Dune_lang/Cst/index.html

Module Dune_lang.Cst

Concrete syntax tree

module Comment : sig ... end
type t =
  1. | Atom of Stdune.Loc.t * Atom.t
  2. | Quoted_string of Stdune.Loc.t * string
  3. | Template of Template.t
  4. | List of Stdune.Loc.t * t list
  5. | Comment of Stdune.Loc.t * Comment.t
val loc : t -> Stdune.Loc.t
val fetch_legacy_comments : t -> file_contents:string -> t

Replace all the Comment Legacy by Comment (Lines _) by extracting the contents of comments from the original file.

val abstract : t -> Ast.t option
val concrete : Ast.t -> t
val to_dyn : t -> Stdune.Dyn.t
val to_sexp : t -> t option
val extract_comments : t list -> (Stdune.Loc.t * Comment.t) list

Return all the comments contained in a concrete syntax tree

OCaml

Innovation. Community. Security.