| 281 | } |
| 282 | |
| 283 | static void assignReferenceInfo(ComponentsVector& components, |
| 284 | NamesVector& names, |
| 285 | const ReferenceInfo& referenceInfo, |
| 286 | bool isFunction) { |
| 287 | const auto* begin = referenceInfo.begin(); |
| 288 | const auto* end = referenceInfo.end(); |
| 289 | |
| 290 | const auto* it = begin; |
| 291 | |
| 292 | bool first = true; |
| 293 | while (it != end) { |
| 294 | bool resolvedIsFunction = it->isFunction || (first && isFunction); |
| 295 | first = false; |
| 296 | if (!assignComponent(components, |
| 297 | names, |
| 298 | it->type, |
| 299 | static_cast<size_t>(it->index), |
| 300 | &referenceInfo.getNameForComponent(*it), |
| 301 | resolvedIsFunction)) { |
| 302 | break; |
| 303 | } |
| 304 | it++; |
| 305 | } |
| 306 | } |
| 307 | |
| 308 | ReferenceInfo ReferenceInfoBuilder::build() const { |
| 309 | ComponentsVector components; |
no test coverage detected