Unverified Commit 5ef29d1d authored by Oliver Hunt's avatar Oliver Hunt Committed by GitHub
Browse files

[ADT] Add predicate based match support to StringSwitch (#188046)

This introduces `Predicate` and `IfNotPredicate` case selection to
StringSwitch to allow use cases like

```
StringSwitch<...>(..)
  .Case("foo", FooTok)
  .Predicate(isAlpha, IdentifierTok)
...
```

This is mostly useful for improving conciseness and clarity when
processing generated strings, diagnostics, and similar.
parent f4cc934d
Loading
Loading
Loading
Loading

There are no changes