MCPcopy
hub / github.com/google/mangle / CheckDecl

Function CheckDecl

analysis/declcheck.go:34–36  ·  view source on GitHub ↗

CheckDecl performs context-free checks to see whether a decl is well-formed.

(decl ast.Decl)

Source from the content-addressed store, hash-verified

32
33// CheckDecl performs context-free checks to see whether a decl is well-formed.
34func CheckDecl(decl ast.Decl) []error {
35 return newDeclChecker(decl).check()
36}
37
38func (c *declChecker) check() []error {
39 p := c.decl.DeclaredAtom

Callers 2

AnalyzeMethod · 0.85
TestCheckDeclExternalFunction · 0.85

Calls 2

newDeclCheckerFunction · 0.85
checkMethod · 0.45

Tested by 1

TestCheckDeclExternalFunction · 0.68