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

Function EmitMacroList

env/env_yaml.cc:719–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717}
718
719void EmitMacroList(YAML::Emitter& out, absl::string_view key,
720 const absl::flat_hash_set<std::string>& macros) {
721 if (macros.empty()) {
722 return;
723 }
724 out << YAML::Key << std::string(key);
725 out << YAML::Value << YAML::BeginSeq;
726 std::vector<std::string> sorted_macros(macros.begin(), macros.end());
727 absl::c_sort(sorted_macros);
728 for (const std::string& macro : sorted_macros) {
729 out << YAML::Value << YAML::DoubleQuoted << macro;
730 }
731 out << YAML::EndSeq;
732}
733
734void EmitFunctionList(
735 YAML::Emitter& out, absl::string_view key,

Callers 1

Calls 3

emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected