Rename the !?? effect to ?

This commit is contained in:
Nigel Tao committed 2018-12-29 13:57:57 +11:00
1 parent 1ea32b3745
commit 093268e179
11 files changed
+172 -172

No files matched your search

+7 -11
View File
@@ -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
}