| 293 | }; |
| 294 | |
| 295 | class Optional : public BranchPattern { |
| 296 | public: |
| 297 | using BranchPattern::BranchPattern; |
| 298 | |
| 299 | bool match(PatternList& left, std::vector<std::shared_ptr<LeafPattern>>& collected) const override { |
| 300 | for(auto const& pattern : fChildren) { |
| 301 | pattern->match(left, collected); |
| 302 | } |
| 303 | return true; |
| 304 | } |
| 305 | }; |
| 306 | |
| 307 | class OptionsShortcut : public Optional { |
| 308 | using Optional::Optional; |
nothing calls this directly
no outgoing calls
no test coverage detected