MCPcopy Create free account
hub / github.com/nsf/gocode / method

Method method

package_bin.go:497–506  ·  view source on GitHub ↗
(parent string)

Source from the content-addressed store, hash-verified

495}
496
497func (p *gc_bin_parser) method(parent string) *ast.Field {
498 p.pos()
499 _, name, _ := p.fieldName(parent)
500 params := p.paramList()
501 results := p.paramList()
502 return &ast.Field{
503 Names: []*ast.Ident{ast.NewIdent(name)},
504 Type: &ast.FuncType{Params: params, Results: results},
505 }
506}
507
508func (p *gc_bin_parser) fieldName(parent string) (string, string, bool) {
509 name := p.string()

Callers 1

methodListMethod · 0.95

Calls 3

posMethod · 0.95
fieldNameMethod · 0.95
paramListMethod · 0.95

Tested by

no test coverage detected