| 105 | } |
| 106 | |
| 107 | ErrorGenerator INVALID_NAMED_OBJECT_KEY( |
| 108 | ObjectError errorType, Json::Value::Members const& extraFields) |
| 109 | { |
| 110 | return INVALID_NAMED_OBJECT( |
| 111 | [](Json::Value const*, cmJSONState* state) -> std::string { |
| 112 | for (auto it = state->parseStack.rbegin(); |
| 113 | it != state->parseStack.rend(); ++it) { |
| 114 | if (it->first.rfind("$vector_item_", 0) == 0) { |
| 115 | continue; |
| 116 | } |
| 117 | return cmStrCat('"', it->first, '"'); |
| 118 | } |
| 119 | return "root"; |
| 120 | })(errorType, extraFields); |
| 121 | } |
| 122 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…