diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-04-02 12:44:15 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-04-02 12:44:15 +0000 |
commit | 8c806f4b5d92a3814a9c38759fd35d714d525ee9 (patch) | |
tree | 90218f7d16ecb0eb250426714a42492c1e106d34 | |
parent | ffcfc38e90ebef30b648c8ae4538c0136dbf79e2 (diff) | |
download | perl-MDK-Common-8c806f4b5d92a3814a9c38759fd35d714d525ee9.tar perl-MDK-Common-8c806f4b5d92a3814a9c38759fd35d714d525ee9.tar.gz perl-MDK-Common-8c806f4b5d92a3814a9c38759fd35d714d525ee9.tar.bz2 perl-MDK-Common-8c806f4b5d92a3814a9c38759fd35d714d525ee9.tar.xz perl-MDK-Common-8c806f4b5d92a3814a9c38759fd35d714d525ee9.zip |
handle "local $_ = ..." at toplevel
-rw-r--r-- | perl_checker.src/tree.ml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl_checker.src/tree.ml b/perl_checker.src/tree.ml index ca73f23..8cd69ad 100644 --- a/perl_checker.src/tree.ml +++ b/perl_checker.src/tree.ml @@ -249,6 +249,7 @@ let get_vars_declaration global_vars_declared package = Hashtbl.replace global_vars_declared (I_func, fq, name) pos | List [ Call_op("=", [My_our("our", ours, pos); _], _) ] + | List [ Call_op("=", [My_our("local", ([ I_scalar, "_" ] as ours), pos); _], _) ] | List [ My_our("our", ours, pos) ] | My_our("our", ours, pos) -> List.iter (fun (context, name) -> Hashtbl.replace package.vars_declared (context, name) (pos, ref false)) ours |