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:
Vern Paxson 2023-06-28 18:24:50 -07:00 committed by Arne Welzel
parent 46d3526b40
commit cb15e0d4f1
11 changed files with 71 additions and 53 deletions

View file

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