MCPcopy Index your code
hub / github.com/uber-go/nilaway / isBuiltinAppendCall

Function isBuiltinAppendCall

assertion/function/functioncontracts/infer.go:339–346  ·  view source on GitHub ↗

isBuiltinAppendCall reports if the call is a call to builtin append.

(v *ssa.Call)

Source from the content-addressed store, hash-verified

337
338// isBuiltinAppendCall reports if the call is a call to builtin append.
339func isBuiltinAppendCall(v *ssa.Call) bool {
340 // TODO: consider merge this and assertion.BuiltinAppend
341 bi, ok := v.Call.Value.(*ssa.Builtin)
342 if !ok {
343 return false
344 }
345 return bi.Name() == "append"
346}
347
348type nilness int
349

Callers 2

nilnessOfMethod · 0.85
expandNilnessMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected