mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 00:47:28 +01:00
Rename the !?? effect to ?
This commit is contained in:
1 parent
1ea32b3745
commit
093268e179
11 files changed
+172
-172
No files matched your search
+7
-11
@@ -1161,17 +1161,13 @@ func (p *parser) parseOperand() (*a.Expr, error) {
|
||||
}
|
||||
|
||||
func (p *parser) parseEffect() a.Effect {
|
||||
if p.peek1() != t.IDExclam {
|
||||
return 0
|
||||
}
|
||||
p.src = p.src[1:]
|
||||
if p.peek1() != t.IDQuestion {
|
||||
switch p.peek1() {
|
||||
case t.IDExclam:
|
||||
p.src = p.src[1:]
|
||||
return a.EffectImpure
|
||||
case t.IDQuestion:
|
||||
p.src = p.src[1:]
|
||||
return a.EffectImpureCoroutine
|
||||
}
|
||||
p.src = p.src[1:]
|
||||
if p.peek1() != t.IDQuestion {
|
||||
panic("TODO: delete")
|
||||
}
|
||||
p.src = p.src[1:]
|
||||
return a.EffectImpure | a.EffectCoroutine
|
||||
return 0
|
||||
}
|
||||
Reference in new issue
Block a user