50b4225636
This is one of several planned batches of changes to transition the front end (and related packages) away from the old `withArgumentsOld` diagnostic reporting method, and to the new `withArguments` method. The difference between the two is that `withArguments` has named parameters rather than positional ones, so (a) it's less likely for parameters to be mixed up, and (b) it's compatible with the calling conventions used by analyzer diagnostics. As part of this transition, I'm taking the opportunity to rename the parameters themselves (since the names previously were restricted to a very small set of possibilities based on type), and to document them in `messages.yaml`. To avoid fatigue (both for myself and code reviewers), I've chosen to break the change into many smaller batches. The only changes in this CL that were manually written are those in `messages.yaml`. The others were produced by running the standard diagnostic message code generator, running the script `use_new_with_arguments.dart`, and then regenerating front end parser test expectations. Change-Id: I6a6a696461f9184a42d646fab6a593bcb4abdf4a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/478000 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>