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

Method paramList

package_bin.go:536–553  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

534}
535
536func (p *gc_bin_parser) paramList() *ast.FieldList {
537 n := p.int()
538 if n == 0 {
539 return nil
540 }
541 // negative length indicates unnamed parameters
542 named := true
543 if n < 0 {
544 n = -n
545 named = false
546 }
547 // n > 0
548 flds := make([]*ast.Field, n)
549 for i := range flds {
550 flds[i] = p.param(named)
551 }
552 return &ast.FieldList{List: flds}
553}
554
555func (p *gc_bin_parser) param(named bool) *ast.Field {
556 t := p.typ("")

Callers 3

objMethod · 0.95
typMethod · 0.95
methodMethod · 0.95

Calls 2

intMethod · 0.95
paramMethod · 0.95

Tested by

no test coverage detected