summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/parser_helper.mli
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-04-01 14:32:49 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-04-01 14:32:49 +0000
commitf8b5137e260e50539465ae0e48fae9717dce4e86 (patch)
tree69c868169e07f44e3ba5422765af90b3ce616622 /perl_checker.src/parser_helper.mli
parent859f9d69d2f68c294c48ac52aca5577631976ee3 (diff)
downloadperl_checker-f8b5137e260e50539465ae0e48fae9717dce4e86.tar
perl_checker-f8b5137e260e50539465ae0e48fae9717dce4e86.tar.gz
perl_checker-f8b5137e260e50539465ae0e48fae9717dce4e86.tar.bz2
perl_checker-f8b5137e260e50539465ae0e48fae9717dce4e86.tar.xz
perl_checker-f8b5137e260e50539465ae0e48fae9717dce4e86.zip
- warn <always true> || ... (eg: 1 || foo())
- warn <always false> || ... - warn <always true> && ... - warn <always false> && ... - suggest @$foo instead of @{$foo} - suggest $foo->[0] instead of ${$foo}[0]
Diffstat (limited to 'perl_checker.src/parser_helper.mli')
-rw-r--r--perl_checker.src/parser_helper.mli11
1 files changed, 9 insertions, 2 deletions
diff --git a/perl_checker.src/parser_helper.mli b/perl_checker.src/parser_helper.mli
index cbb04e6..adb7a05 100644
--- a/perl_checker.src/parser_helper.mli
+++ b/perl_checker.src/parser_helper.mli
@@ -10,15 +10,20 @@ val var_STDOUT : Types.fromparser
val split_name_or_fq_name : string -> string option * string
val is_var_dollar_ : Types.fromparser -> bool
val is_var_number_match : Types.fromparser -> bool
+val non_scalar_context : Types.context -> bool
+val is_scalar_context : Types.context -> bool
+val is_not_a_scalar : Types.fromparser -> bool
+val is_a_scalar : Types.fromparser -> bool
val is_parenthesized : Types.fromparser -> bool
val un_parenthesize : Types.fromparser -> Types.fromparser
val un_parenthesize_full : Types.fromparser -> Types.fromparser
+val is_always_true : Types.fromparser -> bool
+val is_always_false : Types.fromparser -> bool
val not_complex : Types.fromparser -> bool
val not_simple : Types.fromparser -> bool
val string_of_Ident : Types.fromparser -> string
val context2s : Types.context -> string
val variable2s : Types.context * string -> string
-val non_scalar_context : Types.context -> bool
val is_same_fromparser : Types.fromparser -> Types.fromparser -> bool
val from_scalar : Types.fromparser * 'a -> Types.fromparser
val from_array : Types.fromparser * 'a -> Types.fromparser
@@ -66,6 +71,7 @@ val check_hash_subscript :
('a * Types.fromparser) * ('b * (int * int)) -> unit
val check_arrow_needed :
('a * Types.fromparser) * 'b -> 'c * ('d * (int * int)) -> unit
+val check_scalar_subscripted : Types.fromparser * 'a -> unit
val check_ternary_paras :
Types.fromparser * Types.fromparser * Types.fromparser ->
Types.fromparser list
@@ -94,7 +100,6 @@ val only_one_array_ref :
val only_one_in_List :
('a * Types.fromparser) * ('b * (int * int)) -> Types.fromparser
val is_only_one_in_List : Types.fromparser list -> bool
-val is_not_a_scalar : Types.fromparser -> bool
val maybe_to_Raw_string : Types.fromparser -> Types.fromparser
val to_List : Types.fromparser list -> Types.fromparser
val deref_arraylen : Types.fromparser -> Types.fromparser
@@ -134,6 +139,8 @@ val to_Call_op_ :
'b * (int * int) -> ('a * Types.fromparser) * ('b * (int * int))
val followed_by_comma :
('a * Types.fromparser list) * 'b -> bool * 'c -> Types.fromparser list
+val pot_strings : (string, string list) Hashtbl.t
+val pot_strings_and_file : (string, string) Hashtbl.t
val po_comments : string list ref
val po_comment : string * 'a -> unit
val check_format_a_la_printf : string -> int -> unit