1
0
mirror of https://github.com/golang/go synced 2024-09-25 11:20:13 -06:00

go/types: export data result types are always parenthesized

Minor simplification of gcimporter, removed TODO.

R=adonovan
CC=golang-dev
https://golang.org/cl/7363044
This commit is contained in:
Robert Griesemer 2013-02-20 17:37:13 -08:00
parent a2ade45205
commit 8473b4487c

View File

@ -548,13 +548,7 @@ func (p *gcParser) parseSignature() *Signature {
// optional result type
var results []*Var
switch p.tok {
case scanner.Ident, '[', '*', '<', '@':
// TODO(gri) does this ever happen?
// single, unnamed result
results = []*Var{{Type: p.parseType()}}
case '(':
// named or multiple result(s)
if p.tok == '(' {
var variadic bool
results, variadic = p.parseParameters()
if variadic {