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

Function FunctionDeclToExprDecl

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

1119
1120// FunctionDeclToExprDecl converts a go-native function declaration into a protobuf-typed function declaration.
1121func FunctionDeclToExprDecl(f *FunctionDecl) (*exprpb.Decl, error) {
1122 return functionDeclToExprDecl(f)
1123}
1124
1125// functionDeclToExprDecl converts a go-native function declaration into a protobuf-typed function declaration.
1126func functionDeclToExprDecl(f *FunctionDecl) (*exprpb.Decl, error) {

Callers 1

Calls 1

functionDeclToExprDeclFunction · 0.85

Tested by 1