mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
extended script validation to be call-able on a per-function basis
This commit is contained in:
parent
5718046b96
commit
3a99e60d1c
2 changed files with 42 additions and 16 deletions
|
@ -4,9 +4,17 @@
|
|||
namespace zeek::detail
|
||||
{
|
||||
|
||||
class Stmt;
|
||||
|
||||
/**
|
||||
* Run extra validations on the parsed AST after everything is initialized
|
||||
* and report any errors via zeek::reporter->Error().
|
||||
* and report any errors via deprecation warnings or zeek::reporter->Error().
|
||||
*/
|
||||
void script_validation();
|
||||
|
||||
/**
|
||||
* Returns true if the given script statement (body) is valid.
|
||||
*/
|
||||
bool script_is_valid(const Stmt* s);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue