Descriptiongo/parser: fix type switch scoping
Introduce extra scope for the variable declared by a
TypeSwitchGuard so that it doesn't conflict with vars
declared by the initial SimpleStmt of a type switch.
This is a replacement for CL 4896053 which caused
a build breakage.
Also:
- explicitly detect type switches (as opposed to detecting
expression switches and then do extra testing for type switches)
- fix all outstanding TODOs in parser.go
- ran all tests
Patch Set 1 #Patch Set 2 : diff -r 5e1502ab5e21 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 5e1502ab5e21 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r d67e691bae3f https://go.googlecode.com/hg/ #
MessagesTotal messages: 3
|