Remove the obsolete Effect.RootCause concept

This commit is contained in:
Nigel Tao committed 2018-12-01 13:37:33 +11:00
1 parent 9741eada02
commit 5cae1f8c82
6 files changed
+19 -60

No files matched your search

+1 -5
View File
@@ -1022,11 +1022,7 @@ func (p *parser) parseOperand() (*a.Expr, error) {
return lhs, nil
case t.IDExclam, t.IDQuestion:
e := p.parseEffect()
if e != 0 {
e |= a.EffectRootCause
}
flags |= e.AsFlags()
flags |= p.parseEffect().AsFlags()
fallthrough
case t.IDOpenParen: