undo CL 4896053 / c62cf48b7dc4: fix build
The subtle AST changes introduced with CL 4896053 broke type checking of type switches in gofix. Coming up with a correct fix will take some time. Undoing this change for now. ««« original CL description go/parser: fix type switch scoping The variable declared by a TypeSwitchGuard must be visible in each TypeCaseClause and must not conflict with other variables declared by the initial SimpleStmt of a type switch. Also: - explicitly detect type switches (as opposed to detecting regular (expression switches) and then do extra testing for type switches - fix all outstanding TODOs in parser.go R=rsc CC=golang-dev https://golang.org/cl/4896053 »»» R=rsc CC=golang-dev https://golang.org/cl/4902052
Showing
Please register or sign in to comment