Drop volatile facts after a yield statement

This commit is contained in:
Nigel Tao committed 2017-12-01 16:24:54 +11:00
1 parent 849db0faa2
commit 906bca4e39
4 files changed
+19 -4

No files matched your search

+6
View File
@@ -59,6 +59,12 @@ func (e *Error) Error() string {
return string(b)
}
var (
exprIn = a.NewExpr(a.FlagsTypeChecked, 0, t.IDIn, nil, nil, nil, nil)
exprOut = a.NewExpr(a.FlagsTypeChecked, 0, t.IDOut, nil, nil, nil, nil)
exprThis = a.NewExpr(a.FlagsTypeChecked, 0, t.IDThis, nil, nil, nil, nil)
)
// typeExprFoo is an *ast.Node MType (implicit type).
var (
typeExprBool = a.NewTypeExpr(0, t.IDBool, nil, nil, nil)