| 52 | using ::google::api::expr::runtime::InstrumentationFactory; |
| 53 | |
| 54 | std::string EscapeSpecialCharacters(absl::string_view expr_text) { |
| 55 | return absl::StrReplaceAll(expr_text, {{"\\\"", "\""}, |
| 56 | {"\"", "\\\""}, |
| 57 | {"\n", "\\n"}, |
| 58 | {"||", " \\| \\| "}, |
| 59 | {"<", "\\<"}, |
| 60 | {">", "\\>"}, |
| 61 | {"{", "\\{"}, |
| 62 | {"}", "\\}"}}); |
| 63 | } |
| 64 | |
| 65 | std::string KindToString(const NavigableProtoAstNode& node) { |
| 66 | if (node.parent_relation() != ChildKind::kUnspecified && |
no outgoing calls
no test coverage detected