| 1434 | }; |
| 1435 | |
| 1436 | std::string ConvertEnrichedSourceInfoToString( |
| 1437 | const EnrichedSourceInfo& enriched_source_info) { |
| 1438 | std::vector<std::string> offsets; |
| 1439 | for (const auto& offset : enriched_source_info.offsets()) { |
| 1440 | offsets.push_back(absl::StrFormat( |
| 1441 | "[%d,%d,%d]", offset.first, offset.second.first, offset.second.second)); |
| 1442 | } |
| 1443 | return absl::StrJoin(offsets, "^#"); |
| 1444 | } |
| 1445 | |
| 1446 | std::string ConvertMacroCallsToString( |
| 1447 | const cel::expr::SourceInfo& source_info) { |