MCPcopy
hub / github.com/tinylib/msgp / isrtfor

Function isrtfor

parse/getast.go:258–258  ·  view source on GitHub ↗

isrtfor returns whether the provided expression is a msgp.RTFor[T] pattern.

(t ast.Expr)

Source from the content-addressed store, hash-verified

256
257// isrtfor returns whether the provided expression is a msgp.RTFor[T] pattern.
258func isrtfor(t ast.Expr) bool { return strings.HasPrefix(stringify(t), "msgp.RTFor[") }
259
260// findRTForInInterface recursively searches for msgp.RTFor[T] patterns within interface types
261func findRTForInInterface(iface *ast.InterfaceType) []string {

Callers 3

formatTypeParamsFunction · 0.85
findRTForInInterfaceFunction · 0.85
getMspTypeParamsFunction · 0.85

Calls 1

stringifyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…