03f6c4c7ce
By creating a mixin shared by the `Pattern` and `GuardedPattern` classes, we can avoid having to explicitly write `.noGuard` in cases where a pattern doesn't have a corresponding guard. Change-Id: I9178674306fca1c6517a3c54f27fb2f28cf17716 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/270229 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>