MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / ToLegacyKindName

Function ToLegacyKindName

eval/eval/function_step.cc:82–88  ·  view source on GitHub ↗

Adjust new type names to legacy equivalent. int -> int64. Temporary fix to migrate value types without breaking clients. TODO(uncreated-issue/46): Update client tests that depend on this value.

Source from the content-addressed store, hash-verified

80// Temporary fix to migrate value types without breaking clients.
81// TODO(uncreated-issue/46): Update client tests that depend on this value.
82std::string ToLegacyKindName(absl::string_view type_name) {
83 if (type_name == "int" || type_name == "uint") {
84 return absl::StrCat(type_name, "64");
85 }
86
87 return std::string(type_name);
88}
89
90std::string CallArgTypeString(absl::Span<const cel::Value> args) {
91 std::string call_sig_string = "";

Callers 2

CallArgTypeStringFunction · 0.85
NoOverloadResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected