mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Add FlagsCallImpure and FlagsCallSuspendible.
This commit is contained in:
1 parent
a6e8ff5736
commit
da133c02ce
5 files changed
+44
-26
No files matched your search
+3
-4
@@ -704,10 +704,9 @@ func (p *parser) parseOperand() (*a.Expr, error) {
|
||||
return lhs, nil
|
||||
|
||||
case t.KeyExclam, t.KeyQuestion:
|
||||
if p.src[0].Key() == t.KeyExclam {
|
||||
flags |= a.FlagsImpure
|
||||
} else {
|
||||
flags |= a.FlagsImpure | a.FlagsSuspendible
|
||||
flags |= a.FlagsImpure | a.FlagsCallImpure
|
||||
if p.src[0].Key() == t.KeyQuestion {
|
||||
flags |= a.FlagsSuspendible | a.FlagsCallSuspendible
|
||||
}
|
||||
p.src = p.src[1:]
|
||||
fallthrough
|
||||
|
||||
Reference in new issue
Block a user