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

Function FunctionDeclToExprDecl

common/decls/decls.go:1209–1211  ·  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

1207
1208// FunctionDeclToExprDecl converts a go-native function declaration into a protobuf-typed function declaration.
1209func FunctionDeclToExprDecl(f *FunctionDecl) (*exprpb.Decl, error) {
1210 return functionDeclToExprDecl(f)
1211}
1212
1213// functionDeclToExprDecl converts a go-native function declaration into a protobuf-typed function declaration.
1214func functionDeclToExprDecl(f *FunctionDecl) (*exprpb.Decl, error) {

Callers 1

Calls 1

functionDeclToExprDeclFunction · 0.85

Tested by 1