MCPcopy Create free account
hub / github.com/cel-expr/cel-go / FunctionDeclToExprDecl

Function FunctionDeclToExprDecl

common/decls/decls.go:1111–1113  ·  view source on GitHub ↗

FunctionDeclToExprDecl converts a go-native function declaration into a protobuf-typed function declaration.

(f *FunctionDecl)

Source from the content-addressed store, hash-verified

1109
1110// FunctionDeclToExprDecl converts a go-native function declaration into a protobuf-typed function declaration.
1111func FunctionDeclToExprDecl(f *FunctionDecl) (*exprpb.Decl, error) {
1112 return functionDeclToExprDecl(f)
1113}
1114
1115// functionDeclToExprDecl converts a go-native function declaration into a protobuf-typed function declaration.
1116func functionDeclToExprDecl(f *FunctionDecl) (*exprpb.Decl, error) {

Callers 1

Calls 1

functionDeclToExprDeclFunction · 0.85

Tested by 1