mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
GH-725: fix logic for finding a lambda's usage of outer IDs
This commit is contained in:
parent
f032885085
commit
1ca11f11c7
6 changed files with 43 additions and 22 deletions
|
@ -4366,6 +4366,11 @@ LambdaExpr::LambdaExpr(std::unique_ptr<function_ingredients> arg_ing,
|
|||
id->SetConst();
|
||||
}
|
||||
|
||||
Scope* LambdaExpr::GetScope() const
|
||||
{
|
||||
return ingredients->scope.get();
|
||||
}
|
||||
|
||||
IntrusivePtr<Val> LambdaExpr::Eval(Frame* f) const
|
||||
{
|
||||
auto lamb = make_intrusive<BroFunc>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue