mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 08:55:11 +01:00
Remove the implicit out variable
This commit is contained in:
1 parent
9919d78245
commit
58ded30954
4 files changed
+3
-14
No files matched your search
@@ -196,9 +196,9 @@ loop:
|
||||
}
|
||||
// o is a yield statement.
|
||||
//
|
||||
// Drop any facts involving in, out or this.
|
||||
// Drop any facts involving in or this.
|
||||
if err := q.facts.update(func(x *a.Expr) (*a.Expr, error) {
|
||||
if x.Mentions(exprIn) || x.Mentions(exprOut) || x.Mentions(exprThis) {
|
||||
if x.Mentions(exprIn) || x.Mentions(exprThis) {
|
||||
return nil, nil
|
||||
}
|
||||
return x, nil
|
||||
|
||||
Reference in new issue
Block a user