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

Function VariableDeclToExprDecl

common/decls/decls.go:1107–1109  ·  view source on GitHub ↗

VariableDeclToExprDecl converts a go-native variable declaration into a protobuf-type variable declaration.

(v *VariableDecl)

Source from the content-addressed store, hash-verified

1105
1106// VariableDeclToExprDecl converts a go-native variable declaration into a protobuf-type variable declaration.
1107func VariableDeclToExprDecl(v *VariableDecl) (*exprpb.Decl, error) {
1108 return variableDeclToExprDecl(v)
1109}
1110
1111// variableDeclToExprDecl converts a go-native variable declaration into a protobuf-type variable declaration.
1112func variableDeclToExprDecl(v *VariableDecl) (*exprpb.Decl, error) {

Callers 2

Calls 1

variableDeclToExprDeclFunction · 0.85

Tested by 2