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

Function ConvertEnrichedSourceInfoToString

parser/parser_test.cc:1436–1444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1434};
1435
1436std::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
1446std::string ConvertMacroCallsToString(
1447 const cel::expr::SourceInfo& source_info) {

Callers 1

TEST_PFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected