mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Address PR review feedback on zam-feature-complete
* insert_or_assign usage * master -> primary * FunctionIngredientsPtr * FuncType::Capture deprecations * no new ScriptFunc constructor
This commit is contained in:
parent
46d3526b40
commit
cb15e0d4f1
11 changed files with 71 additions and 53 deletions
|
@ -50,14 +50,14 @@ void analyze_func(ScriptFuncPtr f)
|
|||
|
||||
void analyze_lambda(LambdaExpr* l)
|
||||
{
|
||||
auto& mf = l->MasterFunc();
|
||||
analyze_func(mf);
|
||||
lambdas.insert(mf.get());
|
||||
auto& pf = l->PrimaryFunc();
|
||||
analyze_func(pf);
|
||||
lambdas.insert(pf.get());
|
||||
}
|
||||
|
||||
void analyze_when_lambda(LambdaExpr* l)
|
||||
{
|
||||
when_lambdas.insert(l->MasterFunc().get());
|
||||
when_lambdas.insert(l->PrimaryFunc().get());
|
||||
}
|
||||
|
||||
bool is_when_lambda(const ScriptFunc* f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue