| 53 | } |
| 54 | |
| 55 | std::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 |
no outgoing calls
no test coverage detected