• Robert Griesemer's avatar
    go/parser: unify parsing of const and var declarations · 6c740e76
    Robert Griesemer authored
    The AST representation is already identical. Making the
    code (nearly) identical in the parser reduces code size
    and ensures that the ast.ValueSpec nodes have the same
    values (specifically, iota). This in turn permits the
    sharing of much of the respective code in the typechecker.
    
    While at it: type functions work now, so use them.
    
    R=r
    CC=golang-dev
    https://golang.org/cl/6624047
    6c740e76
Name
Last commit
Last update
..
testdata Loading commit data...
error_test.go Loading commit data...
example_test.go Loading commit data...
interface.go Loading commit data...
parser.go Loading commit data...
parser_test.go Loading commit data...
performance_test.go Loading commit data...
short_test.go Loading commit data...