MCPcopy Index your code
hub / github.com/google/mangle / byName

Function byName

analysis/validation.go:177–183  ·  view source on GitHub ↗
(decls map[ast.PredicateSym]ast.Decl)

Source from the content-addressed store, hash-verified

175}
176
177func byName(decls map[ast.PredicateSym]ast.Decl) map[string]ast.Decl {
178 byName := make(map[string]ast.Decl, len(decls))
179 for sym, decl := range decls {
180 byName[sym.Symbol] = decl
181 }
182 return byName
183}
184
185// New creates a new analyzer based on declarations and extra predicates.
186func New(extraPredicates map[ast.PredicateSym]ast.Decl, decls []ast.Decl, boundsChecking BoundsCheckingMode) (*Analyzer, error) {

Callers 2

NewFunction · 0.85
EnsureDeclMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected