mirror of
https://github.com/golang/go
synced 2024-11-22 03:54:39 -07:00
exp/types: set non-embedded method type during GcImport.
R=golang-dev, gri CC=golang-dev https://golang.org/cl/6445068
This commit is contained in:
parent
a4ac339f43
commit
37d7500f8d
@ -510,11 +510,12 @@ func (p *gcParser) parseSignature() *Func {
|
||||
// MethodOrEmbedSpec = Name [ Signature ] .
|
||||
//
|
||||
func (p *gcParser) parseMethodOrEmbedSpec() *ast.Object {
|
||||
p.parseName()
|
||||
name := p.parseName()
|
||||
if p.tok == '(' {
|
||||
p.parseSignature()
|
||||
// TODO(gri) compute method object
|
||||
return ast.NewObj(ast.Fun, "_")
|
||||
typ := p.parseSignature()
|
||||
obj := ast.NewObj(ast.Fun, name)
|
||||
obj.Type = typ
|
||||
return obj
|
||||
}
|
||||
// TODO lookup name and return that type
|
||||
return ast.NewObj(ast.Typ, "_")
|
||||
|
Loading…
Reference in New Issue
Block a user