• Robert Griesemer's avatar
    go/parser: fix type switch scoping · 18248ced
    Robert Griesemer authored
    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
    18248ced
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...