Migration: add isCompound parameter to FixBuilder.visitAssignmentTarget.

When visiting an assignment target that is an index expression
(`x[y]`) we'll need to know whether we are doing a compound assignment
or not, because this will influence whether the type context for the
index expression (`y`) should come from `operator[]` or `operator[]=`.

So before adding index expression support to FixBuilder, let's add an
`isCompound` boolean to indicate whether the assignment context is a
compound assignment or not.

Change-Id: I26a41544e10ef9c9ba042c1d7862563bd9d18b68
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121407
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>

https://dart.googlesource.com/sdk/+/5594981c2a03a8f5587f488ee5245d6038d21a7a
1 file changed
tree: d24829158fb003bdd2b36025789f84a5c8f6d244
  1. commits.json