summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/types.mli
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-04-24 19:17:03 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-04-24 19:17:03 +0000
commit11ae9e70b66544b37f9c736fb58efd7bc3116461 (patch)
treeb4301c365c59dcad54eaa4b2053dcc4b3406b060 /perl_checker.src/types.mli
parentb597db85280e00cd639019c345487d1b2ac4ddaf (diff)
downloadperl_checker-11ae9e70b66544b37f9c736fb58efd7bc3116461.tar
perl_checker-11ae9e70b66544b37f9c736fb58efd7bc3116461.tar.gz
perl_checker-11ae9e70b66544b37f9c736fb58efd7bc3116461.tar.bz2
perl_checker-11ae9e70b66544b37f9c736fb58efd7bc3116461.tar.xz
perl_checker-11ae9e70b66544b37f9c736fb58efd7bc3116461.zip
- handle empty prototypes
- check number of parameters in method calls (ignoring empty overloaded methods) - allow non-empty prototypes for methods not using @_
Diffstat (limited to 'perl_checker.src/types.mli')
-rw-r--r--perl_checker.src/types.mli4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl_checker.src/types.mli b/perl_checker.src/types.mli
index c8fbeaa..1a33d20 100644
--- a/perl_checker.src/types.mli
+++ b/perl_checker.src/types.mli
@@ -47,10 +47,10 @@ type fromparser =
| Call of fromparser * fromparser list
| Method_call of fromparser * fromparser * fromparser list
- | Anonymous_sub of fromparser * pos
+ | Anonymous_sub of string option * fromparser * pos (* prototype, expr, pos *)
| My_our of string * (context * string) list * pos
| Use of fromparser * fromparser list
- | Sub_declaration of fromparser * string * fromparser (* name, prototype, body *)
+ | Sub_declaration of fromparser * string option * fromparser (* name, prototype, body *)
| Package of fromparser
| Label of string
| Perl_checker_comment of string * pos