e5f3a50a7a
This brings the soft static enforcement that we had before: a producer that extends ParsedCorrectionProducer cannot access the ResolvedUnitResult of a ParsedUnitResult. Also we add some runtime enforcement that the producers used for parse- only lint rules are ParsedCorrectionProducer. Cq-Include-Trybots: luci.dart.try:flutter-analyze-try,analyzer-win-release-try,pkg-win-release-try Change-Id: If77fa66ae6fc070de1c7e931eb992a4adc14b68a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/369561 Reviewed-by: Keerti Parthasarathy <keertip@google.com> Commit-Queue: Samuel Rawlins <srawlins@google.com>