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

Function NodeKindName

common/ast/navigable_ast_kinds.cc:55–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55std::string NodeKindName(NodeKind kind) {
56 switch (kind) {
57 case NodeKind::kUnspecified:
58 return "Unspecified";
59 case NodeKind::kConstant:
60 return "Constant";
61 case NodeKind::kIdent:
62 return "Ident";
63 case NodeKind::kSelect:
64 return "Select";
65 case NodeKind::kCall:
66 return "Call";
67 case NodeKind::kList:
68 return "List";
69 case NodeKind::kMap:
70 return "Map";
71 case NodeKind::kStruct:
72 return "Struct";
73 case NodeKind::kComprehension:
74 return "Comprehension";
75 default:
76 return absl::StrCat("Unknown NodeKind ", static_cast<int>(kind));
77 }
78}
79
80} // namespace cel

Callers 2

AbslStringifyFunction · 0.85
KindToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected