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

Method recordMaybe

package_bin.go:309–315  ·  view source on GitHub ↗
(idx int, t ast.Expr)

Source from the content-addressed store, hash-verified

307}
308
309func (p *gc_bin_parser) recordMaybe(idx int, t ast.Expr) ast.Expr {
310 if idx == -1 {
311 return t
312 }
313 p.typList[idx] = t
314 return t
315}
316
317func (p *gc_bin_parser) record(t ast.Expr) {
318 p.typList = append(p.typList, t)

Callers 1

typMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected