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

Function struct_interface_predicate

decl.go:658–664  ·  view source on GitHub ↗
(v ast.Expr)

Source from the content-addressed store, hash-verified

656}
657
658func struct_interface_predicate(v ast.Expr) bool {
659 switch v.(type) {
660 case *ast.StructType, *ast.InterfaceType:
661 return true
662 }
663 return false
664}
665
666func chan_predicate(v ast.Expr) bool {
667 _, ok := v.(*ast.ChanType)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected