2f13e3d9a0
We decided that the existing mechanism, three bool values that can be overridden by an AbstractProducer subclass, was confusing as it might give the impression that they are independent, and that any of the 8 possible combinations are valid. But really each author of a CorrectionProducer just needs to answer one question: how broadly can this correction be applied? So to answer that question we decided (loosely in emails) to offer an enum of a few values that more-or-less represent the sensible combinations of the bool getters. And more specifically I decided in this CL what those values should be. In this CL I also remove the notion of a default value. Each CorrectionProducer must indicate specifically how broadly it can be applied. This PR should functionally be a no-op; no applicability was increased or reduced. I left comments intact. I left `TODO(applicability)` comments where no comment is made to justify why a correction cannot be made any more broadly than "only at specific location." Change-Id: I3e3a12ee811b2b08f276ff755e7ff638f4fffabf Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/366740 Commit-Queue: Samuel Rawlins <srawlins@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>