5e267854e1
A FieldEntity is used as the entity for generating the setter of an instance field (when a check is required), and as the entity for the initializer expression for a static or top-level field. I think it is a bit clearer to have a separate method for each case rather than one method with conditional paths. Change-Id: I32e63c3f3566a63e3d38315cab17d613f006405e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253562 Commit-Queue: Stephen Adams <sra@google.com> Reviewed-by: Mayank Patke <fishythefish@google.com>