| 357 | } |
| 358 | |
| 359 | void GraphFunction::updateEntries() { |
| 360 | auto matching = nodesWithType("lang", "entry"); |
| 361 | |
| 362 | for (auto entry : matching) { |
| 363 | if (entry == nullptr) { return; } |
| 364 | |
| 365 | std::unique_ptr<NodeType> entryNodeType; |
| 366 | createEntryNodeType(&entryNodeType); |
| 367 | |
| 368 | entry->setType(std::move(entryNodeType)); |
| 369 | } |
| 370 | } |
| 371 | |
| 372 | void GraphFunction::updateExits() { |
| 373 | for (const auto& exitNode : nodesWithType("lang", "exit")) { |