kubernetes/vendor/github.com/google/cel-go/common/ast/conversion.go

// ToProto converts an AST to a CheckedExpr protobouf.
func ToProto(ast *AST) (*exprpb.CheckedExpr, error) {}

// ToAST converts a CheckedExpr protobuf to an AST instance.
func ToAST(checked *exprpb.CheckedExpr) (*AST, error) {}

// ProtoToExpr converts a protobuf Expr value to an ast.Expr value.
func ProtoToExpr(e *exprpb.Expr) (Expr, error) {}

// ProtoToEntryExpr converts a protobuf struct/map entry to an ast.EntryExpr
func ProtoToEntryExpr(e *exprpb.Expr_CreateStruct_Entry) (EntryExpr, error) {}

func exprInternal(factory ExprFactory, e *exprpb.Expr) (Expr, error) {}

func exprCall(factory ExprFactory, id int64, call *exprpb.Expr_Call) (Expr, error) {}

func exprComprehension(factory ExprFactory, id int64, comp *exprpb.Expr_Comprehension) (Expr, error) {}

func exprLiteral(factory ExprFactory, id int64, c *exprpb.Constant) (Expr, error) {}

func exprIdent(factory ExprFactory, id int64, i *exprpb.Expr_Ident) (Expr, error) {}

func exprList(factory ExprFactory, id int64, l *exprpb.Expr_CreateList) (Expr, error) {}

func exprMap(factory ExprFactory, id int64, s *exprpb.Expr_CreateStruct) (Expr, error) {}

func exprMapEntry(factory ExprFactory, id int64, e *exprpb.Expr_CreateStruct_Entry) (EntryExpr, error) {}

func exprSelect(factory ExprFactory, id int64, s *exprpb.Expr_Select) (Expr, error) {}

func exprStruct(factory ExprFactory, id int64, s *exprpb.Expr_CreateStruct) (Expr, error) {}

func exprStructField(factory ExprFactory, id int64, f *exprpb.Expr_CreateStruct_Entry) (EntryExpr, error) {}

// ExprToProto serializes an ast.Expr value to a protobuf Expr representation.
func ExprToProto(e Expr) (*exprpb.Expr, error) {}

// EntryExprToProto converts an ast.EntryExpr to a protobuf CreateStruct entry
func EntryExprToProto(e EntryExpr) (*exprpb.Expr_CreateStruct_Entry, error) {}

func protoCall(id int64, call CallExpr) (*exprpb.Expr, error) {}

func protoComprehension(id int64, comp ComprehensionExpr) (*exprpb.Expr, error) {}

func protoIdent(id int64, name string) (*exprpb.Expr, error) {}

func protoList(id int64, list ListExpr) (*exprpb.Expr, error) {}

func protoLiteral(id int64, val ref.Val) (*exprpb.Expr, error) {}

func protoMap(id int64, m MapExpr) (*exprpb.Expr, error) {}

func protoMapEntry(id int64, e MapEntry) (*exprpb.Expr_CreateStruct_Entry, error) {}

func protoSelect(id int64, s SelectExpr) (*exprpb.Expr, error) {}

func protoStruct(id int64, s StructExpr) (*exprpb.Expr, error) {}

func protoStructField(id int64, f StructField) (*exprpb.Expr_CreateStruct_Entry, error) {}

// SourceInfoToProto serializes an ast.SourceInfo value to a protobuf SourceInfo object.
func SourceInfoToProto(info *SourceInfo) (*exprpb.SourceInfo, error) {}

// ProtoToSourceInfo deserializes the protobuf into a native SourceInfo value.
func ProtoToSourceInfo(info *exprpb.SourceInfo) (*SourceInfo, error) {}

// ReferenceInfoToProto converts a ReferenceInfo instance to a protobuf Reference suitable for serialization.
func ReferenceInfoToProto(info *ReferenceInfo) (*exprpb.Reference, error) {}

// ProtoToReferenceInfo converts a protobuf Reference into a CEL-native ReferenceInfo instance.
func ProtoToReferenceInfo(ref *exprpb.Reference) (*ReferenceInfo, error) {}

// ValToConstant converts a CEL-native ref.Val to a protobuf Constant.
//
// Only simple scalar types are supported by this method.
func ValToConstant(v ref.Val) (*exprpb.Constant, error) {}

// ConstantToVal converts a protobuf Constant to a CEL-native ref.Val.
func ConstantToVal(c *exprpb.Constant) (ref.Val, error) {}