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

Function FunctionDeclToExprDecl

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

1023
1024// FunctionDeclToExprDecl converts a go-native function declaration into a protobuf-typed function declaration.
1025func FunctionDeclToExprDecl(f *FunctionDecl) (*exprpb.Decl, error) {
1026 return functionDeclToExprDecl(f)
1027}
1028
1029// functionDeclToExprDecl converts a go-native function declaration into a protobuf-typed function declaration.
1030func functionDeclToExprDecl(f *FunctionDecl) (*exprpb.Decl, error) {

Callers 1

Calls 1

functionDeclToExprDeclFunction · 0.85

Tested by 1