2b1ed6614e
This is another step toward being able to maximally convert a body of code to using the primary_constructors features. This CL does two things: - Changes `convert_to_declaring_parameter` to also be a fix and applies that fix to the `use_declaring_parameters` lint. - Updated the `use_declaring_parameters` lint to also flag field formal parameters. Change-Id: I8b584186658abc73c025b166c145efbab95acd8b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/502740 Reviewed-by: Paul Berry <paulberry@google.com> Reviewed-by: Keerti Parthasarathy <keertip@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com>