Skip to content
This repository
tag: v3524
Fetching contributors…

Cannot retrieve contributors at this time

file 52 lines (42 sloc) 1.523 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
(*
Copyright © 2011 MLstate

This file is part of Opa.

Opa is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License, version 3, as published by
the Free Software Foundation.

Opa is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
more details.

You should have received a copy of the GNU Affero General Public License
along with Opa. If not, see <http://www.gnu.org/licenses/>.
*)
(*
@author Rudy Sicard
**)


type directive_dep =
    [ `hybrid_value
    | `insert_server_value of Ident.t
    | `fun_action of QmlAst.fun_action_content option ]

val fold_directive_deps :
  (Ident.t -> 'a) -> (string -> 'a) -> directive_dep -> ('a -> 'b -> 'b) -> 'b -> 'b

val reorder :
  (string -> Ident.t) ->
  (Ident.t list) ->
  (Ident.t list IdentMap.t) ->
  ((int list) ->
    (int list IntMap.t) ->
    (int * IntSet.t) list ->
     (int * bool * IntSet.t) list * 'a) ->
  QmlAst.code ->
  QmlAst.code

(** functions meant for sliced cleaning *)

val get_unreachable_idents_of_code :
  (string -> Ident.t) ->
  Ident.t list ->
  QmlAst.code -> QmlAst.code ->
  IdentSet.t * QmlAst.code * QmlAst.code
(**
This function returns the set of unreachable identifiers of the code
so that you can clean not only the code but also the rest of the environment
*)
Something went wrong with that request. Please try again.