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

Function makeDecl

analysis/validation_test.go:62–69  ·  view source on GitHub ↗
(t *testing.T, a ast.Atom, descr []ast.Atom, boundDecls []ast.BoundDecl, incl *ast.InclusionConstraint)

Source from the content-addressed store, hash-verified

60}
61
62func makeDecl(t *testing.T, a ast.Atom, descr []ast.Atom, boundDecls []ast.BoundDecl, incl *ast.InclusionConstraint) ast.Decl {
63 t.Helper()
64 decl, err := ast.NewDecl(a, descr, boundDecls, incl)
65 if err != nil {
66 t.Fatal(err)
67 }
68 return decl
69}
70
71func makeSyntheticDecl(t *testing.T, a ast.Atom) ast.Decl {
72 t.Helper()

Callers 3

TestAnalyzePositiveFunction · 0.70
makeNonSyntheticFunction · 0.70
TestAnalyzeNegativeFunction · 0.70

Calls 1

NewDeclFunction · 0.92

Tested by

no test coverage detected