This repository has been archived by the owner on Jun 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 204
/
lib_parsing_php.mli
59 lines (51 loc) · 2.12 KB
/
lib_parsing_php.mli
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
53
54
55
56
57
58
59
(*s: lib_parsing_php.mli *)
val is_php_script: Common.filename -> bool
val find_php_files_of_dir_or_files:
Common.path list -> Common.filename list
val ii_of_toplevel: Ast_php.toplevel -> Ast_php.info list
val ii_of_expr: Ast_php.expr -> Ast_php.info list
val ii_of_stmt: Ast_php.stmt -> Ast_php.info list
val ii_of_argument: Ast_php.argument -> Ast_php.info list
val ii_of_lvalue: Ast_php.lvalue -> Ast_php.info list
val ii_of_parameter: Ast_php.parameter -> Ast_php.info list
val ii_of_parameters:
Ast_php.parameter Ast_php.comma_list Ast_php.paren -> Ast_php.info list
(*x: lib_parsing_php.mli *)
(* do via side effects *)
val abstract_position_info_toplevel: Ast_php.toplevel -> Ast_php.toplevel
val abstract_position_info_expr: Ast_php.expr -> Ast_php.expr
val abstract_position_info_lvalue: Ast_php.lvalue -> Ast_php.lvalue
val abstract_position_info_program: Ast_php.program -> Ast_php.program
(*x: lib_parsing_php.mli *)
val range_of_origin_ii: Ast_php.info list -> (int * int) option
val min_max_ii_by_pos: Ast_php.info list -> Ast_php.info * Ast_php.info
type match_format =
(* ex: tests/misc/foo4.php:3
* foo(
* 1,
* 2);
*)
| Normal
(* ex: tests/misc/foo4.php:3: foo( *)
| Emacs
(* ex: tests/misc/foo4.php:3: foo(1,2) *)
| OneLine
val print_match: ?format:match_format -> Ast_php.info list -> unit
val print_warning_if_not_correctly_parsed:
Ast_php.program -> Common.filename -> unit
(*x: lib_parsing_php.mli *)
val get_all_funcalls_in_body: Ast_php.stmt_and_def list -> string list
val get_all_funcalls_ast: Ast_php.toplevel -> string list
val get_all_constant_strings_ast: Ast_php.toplevel -> string list
val get_all_funcvars_ast: Ast_php.toplevel -> string (* dname *) list
val get_vars:
(Visitor_php.visitor_out -> unit) -> Ast_php.dname list
val get_static_vars:
(Visitor_php.visitor_out -> unit) -> Ast_php.dname list
val get_returns:
(Visitor_php.visitor_out -> unit) -> Ast_php.expr list
val get_vars_assignements:
(Visitor_php.visitor_out -> unit) -> (string * Ast_php.expr list) list
val top_statements_of_program:
Ast_php.program -> Ast_php.stmt list
(*e: lib_parsing_php.mli *)