| 55 | } |
| 56 | |
| 57 | void AddInferredAttr(const string& indentation, const string& attr_name, |
| 58 | const string& value_expression, string* result, |
| 59 | std::unordered_map<string, string>* attr_expressions) { |
| 60 | strings::StrAppend(result, indentation, |
| 61 | AttrVarName(attr_name, attr_expressions), " = ", |
| 62 | value_expression, "\n"); |
| 63 | } |
| 64 | |
| 65 | string VectorToTuple(const std::vector<string>& l) { |
| 66 | if (l.size() == 1) return strings::StrCat("(", l.front(), ",)"); |
no test coverage detected