mirror of
https://github.com/golang/go
synced 2024-11-12 10:00:25 -07: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:
parent
a2ade45205
commit
8473b4487c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user