package merlin-lib

  1. Overview
  2. Docs
Merlin's libraries

Install

Dune Dependency

Authors

Maintainers

Sources

merlin-4.18-414.tbz
sha256=f6d6f7a266141e358c1a869612c8135c859185d547ea3ba5c9ad7bb67fe30cc1
sha512=4f272bdb028fd984fef406f7e1eadd0a3ab99d94016316f1b842782b1d1bba2bd50dcf3b4021c2096c6d9b5e5f9f6bae61bedcfd9f933f15c190e01777ef83a9

doc/merlin-lib.ocaml_parsing/Ocaml_parsing/Builtin_attributes/index.html

Module Ocaml_parsing.Builtin_attributesSource

Support for some of the builtin attributes

  • ocaml.deprecated
  • ocaml.alert
  • ocaml.error
  • ocaml.ppwarning
  • ocaml.warning
  • ocaml.warnerror
  • ocaml.explicit_arity (for camlp4/camlp5)
  • ocaml.warn_on_literal_pattern
  • ocaml.deprecated_mutable
  • ocaml.immediate
  • ocaml.immediate64
  • ocaml.boxed / ocaml.unboxed

Warning: this module is unstable and part of compiler-libs.

Sourceval check_alerts : Location.t -> Parsetree.attributes -> string -> unit
Sourceval check_alerts_inclusion : def:Location.t -> use:Location.t -> Location.t -> Parsetree.attributes -> Parsetree.attributes -> string -> unit
Sourceval check_deprecated_mutable : Location.t -> Parsetree.attributes -> string -> unit
Sourceval check_deprecated_mutable_inclusion : def:Location.t -> use:Location.t -> Location.t -> Parsetree.attributes -> Parsetree.attributes -> string -> unit
Sourceval check_no_alert : Parsetree.attributes -> unit
Sourceval error_of_extension : Parsetree.extension -> Location.error
Sourceval warning_attribute : ?ppwarning:bool -> Parsetree.attribute -> unit

Apply warning settings from the specified attribute. "ocaml.warning"/"ocaml.warnerror" (and variants without the prefix) are processed and other attributes are ignored.

Also implement ocaml.ppwarning (unless ~ppwarning:false is passed).

Sourceval warning_scope : ?ppwarning:bool -> Parsetree.attributes -> (unit -> 'a) -> 'a

Execute a function in a new scope for warning settings. This means that the effect of any call to warning_attribute during the execution of this function will be discarded after execution.

The function also takes a list of attributes which are processed with warning_attribute in the fresh scope before the function is executed.

Sourceval warn_on_literal_pattern : Parsetree.attributes -> bool
Sourceval explicit_arity : Parsetree.attributes -> bool
Sourceval immediate : Parsetree.attributes -> bool
Sourceval immediate64 : Parsetree.attributes -> bool
Sourceval has_unboxed : Parsetree.attributes -> bool
Sourceval has_boxed : Parsetree.attributes -> bool
OCaml

Innovation. Community. Security.