extended script validation to be call-able on a per-function basis

This commit is contained in:
Vern Paxson 2023-04-01 12:55:29 -07:00
parent 5718046b96
commit 3a99e60d1c
2 changed files with 42 additions and 16 deletions

View file

@ -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);
}