summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/tree.mli
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-01-22 22:17:08 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-01-22 22:17:08 +0000
commit811a65122d8248fbbfce20d638c412443c382faa (patch)
treeb710fcc8c0407f9609005344c3a567c26091b36a /perl_checker.src/tree.mli
parente7e339f26bcf34139293fae6db52fa5c45c09647 (diff)
downloadperl-MDK-Common-811a65122d8248fbbfce20d638c412443c382faa.tar
perl-MDK-Common-811a65122d8248fbbfce20d638c412443c382faa.tar.gz
perl-MDK-Common-811a65122d8248fbbfce20d638c412443c382faa.tar.bz2
perl-MDK-Common-811a65122d8248fbbfce20d638c412443c382faa.tar.xz
perl-MDK-Common-811a65122d8248fbbfce20d638c412443c382faa.zip
replace the information "a variable is accessed" with the more precise
Access_none | Access_write_only | Access_various so that we can say either "variable unused" or "variable assigned but not read"
Diffstat (limited to 'perl_checker.src/tree.mli')
-rw-r--r--perl_checker.src/tree.mli6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl_checker.src/tree.mli b/perl_checker.src/tree.mli
index b8615f5..60edc37 100644
--- a/perl_checker.src/tree.mli
+++ b/perl_checker.src/tree.mli
@@ -17,10 +17,12 @@ type prototype = {
proto_nb_max : int option ;
}
+type variable_used = Access_none | Access_write_only | Access_various
+
type per_package = {
package_name : string ; has_package_name : bool ;
- vars_declared : (context * string, pos * bool ref * prototype option) Hashtbl.t;
- imported : ((context * string) * (string * bool ref * prototype option)) list option ref;
+ vars_declared : (context * string, pos * variable_used ref * prototype option) Hashtbl.t;
+ imported : ((context * string) * (string * variable_used ref * prototype option)) list option ref;
exports : exports ;
uses : uses ;
required_packages : (string * pos) list ;