Inject ambient context into Go calls

This commit is contained in:
pavel 2026-08-27 22:31:10 +02:00
commit 5085ae51aa
8 changed files with 112 additions and 9 deletions

View file

@ -120,6 +120,9 @@ func collectExpressionEffects(expression Expr, node *effectNode) {
if call, ok := semantic.Node.(HIRGotlinCall); ok && call.Target != nil {
node.callees = append(node.callees, call.Target)
}
if call, ok := semantic.Node.(HIRGoCall); ok && call.InjectContext {
node.direct |= CoroutineEffect
}
}
collectExpressionEffects(value.Callee, node)
for _, argument := range value.Args {