(parent string)
| 495 | } |
| 496 | |
| 497 | func (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 | |
| 508 | func (p *gc_bin_parser) fieldName(parent string) (string, string, bool) { |
| 509 | name := p.string() |
no test coverage detected