ab909226e3
Currently, the `AnalysisContextCollectionImpl` constructor has a callback parameter, `updateAnalysisOptions2`, which has 3 required parameters. The caller can then pass in a closure which accepts those parameters, and updates analysis options. I find this to be a bit of an awkward API, and a little bit complex, so it would be good if we can simplify it. It is all private impl, but it is used in a few codebases, I believe. Dartdoc is one. So, it looked to me like none of the callers _use_ the `ContextRoot` parameter, so it would be good to simplify here, and remove it from the callback signature. This is _not_ the final API I'm looking for. Just an incremental step, and since it is private API, it doesn't need to be in a major release of analyzer. Change-Id: Iad9da9f36e817add0bd8c49975ecd14311588661 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/392204 Commit-Queue: Samuel Rawlins <srawlins@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>