| 240 | explicit AllOfPattern(const Patterns&... patterns) : patterns_(patterns...) {} |
| 241 | |
| 242 | bool Match(const Item* item, MatchOption option) const { |
| 243 | bool matched = MatchImpl(item, option, std::integral_constant<size_t, 0>()); |
| 244 | // This invariant is guaranteed by the top-level Match and AnyOf. |
| 245 | DCHECK(matched || !option.capture); |
| 246 | return matched; |
| 247 | } |
| 248 | |
| 249 | bool Match(Item* item, MatchOption option) const { |
| 250 | bool matched = MatchImpl(item, option, std::integral_constant<size_t, 0>()); |
no outgoing calls
no test coverage detected