mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +01:00
Add a status.is_suspension method.
This commit is contained in:
1 parent
935cd73686
commit
0f86add17e
7 files changed
+68
-4
No files matched your search
@@ -687,6 +687,10 @@ func (q *checker) bcheckExprOther(n *a.Expr, depth uint32) (*big.Int, *big.Int,
|
||||
}
|
||||
return zero, bitMask(int(aMax.Int64())), nil
|
||||
}
|
||||
// TODO: delete this hack that only matches "foo.is_suspension(etc)".
|
||||
if isIsErrorOKSuspension(q.tm, n, t.KeyIsSuspension) {
|
||||
return nil, nil, nil
|
||||
}
|
||||
// TODO: delete this hack that only matches "foo.set_literal_width(etc)".
|
||||
if isSetLiteralWidth(q.tm, n) {
|
||||
a := n.Args()[0].Arg().Value()
|
||||
|
||||
Reference in new issue
Block a user