search for: has_tag

Displaying 8 results from an estimated 8 matches for "has_tag".

Did you mean: has_tags
2015 Sep 30
3
[PATCH 1/2] ocaml: Use ocamlfind to run ocamldoc.
Using 'ocamlfind ocamldoc' is much faster than running 'ocamldoc' directly, because ocamlfind will run the native code program 'ocamldoc.opt' if it is available. This change approximately halves the time taken to compile the ocaml bindings. --- ocaml/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocaml/Makefile.am b/ocaml/Makefile.am index
2015 Sep 30
1
Re: [PATCH 2/2] ocaml: Improve ocamldoc.
...; - Generate more sub-headings. > > - Document the object-oriented API. > > - Use a common function to generate the doc for module and OO APIs. > --- Mostly OK, except ... > + let generate_doc ?(indent = "") f = > + if is_documented f then ( > + let has_tags = ref false in > + > + pr "%s(** %s" indent f.shortdesc; > + (match f.deprecated_by with > + | None -> () > + | Some replacement -> > + has_tags := true; > + pr "\n\n @deprecated Use {!%s} instead" replacemen...
2015 Sep 30
0
[PATCH 2/2] ocaml: Improve ocamldoc.
...he returned integer is the @@ -149,41 +155,45 @@ module Errno : sig pr "\ end +(** {3 Structs} *) + "; generate_ocaml_structure_decls (); + pr "\ + +(** {3 Actions} *) + +"; + + let generate_doc ?(indent = "") f = + if is_documented f then ( + let has_tags = ref false in + + pr "%s(** %s" indent f.shortdesc; + (match f.deprecated_by with + | None -> () + | Some replacement -> + has_tags := true; + pr "\n\n @deprecated Use {!%s} instead" replacement + ); + (match version_a...
2015 May 28
4
[PATCH 1/4] generator: move api_version to a common version_added
This way the version string of each API can be used also in other generator modules. Mostly code motion, no actual behaviour changes. --- generator/c.ml | 21 ++++++++++----------- generator/docstrings.ml | 6 ++++++ 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/generator/c.ml b/generator/c.ml index 63dc09a..a2b9c94 100644 --- a/generator/c.ml +++ b/generator/c.ml @@
2008 Mar 12
2
RSpec view test for :partial with :locals?
...e partial is rendering in the test.log. Is there a way to match this render? On a similar note, is there a way to test that layout views are rendered? I can test that the :partials in the layout are rendered, but not the layout file itself. In both of these cases I know I could do a "has_tag" and test for something inside the layout file or partial, but I''d rather test contents in a view test for each partial and just verify that the partial is rendered in the view tests that render the partial. Thank you, David
2017 Mar 03
0
Re: [PATCH] generator: Allow actions to be deprecated with no replacement.
...+++ b/generator/OCaml.ml > @@ -186,10 +186,13 @@ end > opt > ); > (match f.deprecated_by with > - | None -> () > - | Some replacement -> > + | Not_deprecated -> () > + | Replaced_by replacement -> > has_tags := true; > pr "\n\n @deprecated Use {!%s} instead" replacement > + | Deprecated_no_replacement -> > + has_tags := true; > + pr "\n\n @deprecated" Ditto. > diff --git a/generator/java.ml b/generator/java.ml > index...
2017 Mar 03
2
[PATCH] generator: Allow actions to be deprecated with no replacement.
...505..38b254d 100644 --- a/generator/OCaml.ml +++ b/generator/OCaml.ml @@ -186,10 +186,13 @@ end opt ); (match f.deprecated_by with - | None -> () - | Some replacement -> + | Not_deprecated -> () + | Replaced_by replacement -> has_tags := true; pr "\n\n @deprecated Use {!%s} instead" replacement + | Deprecated_no_replacement -> + has_tags := true; + pr "\n\n @deprecated" ); (match version_added f with | None -> () diff --git a/generator/acti...
2016 Feb 26
1
[PATCH] doc: add info on per-function needed feature
...r/ocaml.ml b/generator/ocaml.ml index 288e91f..ef04540 100644 --- a/generator/ocaml.ml +++ b/generator/ocaml.ml @@ -177,6 +177,13 @@ end else pr "%s(** alias for {!%s}" indent f.name; + (match f.optional with + | None -> () + | Some opt -> + has_tags := true; + pr "\n\n This function depends on the feature \"%s\". See also {!feature_available}." + opt + ); (match f.deprecated_by with | None -> () | Some replacement -> diff --git a/generator/perl.ml b/generator/perl.m...