diff options
| author | Sébastien Dailly <sebastien@dailly.me> | 2026-11-19 11:32:16 +0100 |
|---|---|---|
| committer | Sébastien Dailly <sebastien@dailly.me> | 2026-11-19 11:32:16 +0100 |
| commit | 8708171877054c98aad45079d85d4e699420f2fe (patch) | |
| tree | 2e580e6891708b7b70d07f7bec03bd0a76ae171b /lib/configuration/ast.mli | |
| parent | e1bf7686f408b52a870d4ed4f3c565dbbcc3954f (diff) | |
Added fields in lists
Diffstat (limited to 'lib/configuration/ast.mli')
| -rw-r--r-- | lib/configuration/ast.mli | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/configuration/ast.mli b/lib/configuration/ast.mli index ce5d1b6..b014c9b 100644 --- a/lib/configuration/ast.mli +++ b/lib/configuration/ast.mli @@ -5,10 +5,10 @@ val init : unit -> setting val get_content : setting -> Model.Identifier.t -> Model.content option (** Get the content from the setting. *) -val get_list : setting -> Model.Identifier.t -> Model.List.t option +val get_list : setting -> Model.Identifier.t -> Model.list option (** Get the list declared with the given name, if any *) -val lists : setting -> Model.List.t list +val lists : setting -> Model.list list (** All the lists declared in the setting *) val root_contents : setting -> Model.content list @@ -25,7 +25,10 @@ exception BrokenLink : ('a Type.Id.t * 'a * Model.Identifier.t) -> exn (** Exception raised when a reference in the configuration targets neither an existing content nor a declared list *) -val register_list : setting -> Model.List.t -> setting +val register_list : setting -> Model.list -> setting +(** Register a list in the setting, replacing any previous list with the same + id. Lists are registered while they are decoded, so that a list can + reference the lists declared before it. *) val check : setting -> (unit, exn) result (** Check the setting and return the the error as an exception *) |
