MCPcopy Create free account
hub / github.com/bracesdev/errtrace / isIdent

Function isIdent

cmd/errtrace/main.go:1157–1160  ·  view source on GitHub ↗
(expr ast.Expr, name string)

Source from the content-addressed store, hash-verified

1155}
1156
1157func isIdent(expr ast.Expr, name string) bool {
1158 ident, ok := expr.(*ast.Ident)
1159 return ok && ident.Name == name
1160}
1161
1162func setOf[T comparable](xs []T) map[T]struct{} {
1163 if len(xs) == 0 {

Callers 3

funcTypeMethod · 0.85
wrapExprMethod · 0.85
isErrtraceWrapMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected