Inject ambient context into Go calls
This commit is contained in:
parent
acb42a5702
commit
5085ae51aa
8 changed files with 112 additions and 9 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue