Passes toolstash -cmp.
Change-Id: I014613985005780d1a622c1981b35a94cda798bb
Reviewed-on: https://go-review.googlesource.com/20530
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
defer p.trace("xdcl_list")()
}
-loop:
for p.tok != EOF {
switch p.tok {
case LVAR, LCONST, LTYPE:
p.syntax_error("non-declaration statement outside function body")
}
p.advance(LVAR, LCONST, LTYPE, LFUNC)
- goto loop
+ continue
}
if nsyntaxerrors == 0 {
if p.tok != EOF && !p.got(';') {
p.syntax_error("after top level declaration")
p.advance(LVAR, LCONST, LTYPE, LFUNC)
- goto loop
}
}
return