Add an "iterate" keyword.

This commit is contained in:
Nigel Tao committed 2017-10-20 15:33:31 +11:00
1 parent 7b18295688
commit 51bd52239b
12 files changed
+253 -53

No files matched your search

+1 -1
View File
@@ -194,7 +194,7 @@ func (g *gen) writeFuncImplHeader(b *buffer) error {
b.writes("\n")
// Generate the local variables.
if err := g.writeVars(b, g.currFunk.astFunc.Body(), false); err != nil {
if err := g.writeVars(b, g.currFunk.astFunc.Body(), false, true); err != nil {
return err
}
b.writes("\n")