0fd211facd
The field `Var.errorId` was being used for two purposes: - For checking error messages. - To distinguish different variables with the same name when merging variables in `||` and cases. As a result, a lot of variables to be tagged with error IDs even in tests that weren't generating any errors, which was confusing. This change creates a new `Var.identity` field which is used for merging variables in `||` and cases; it defaults to the variable name but may be overridden in tests where distinguishing variables of the same name is important. Change-Id: Ieb587f434520dc484180aaa72658c899a2eb06d0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/273824 Reviewed-by: Johnni Winther <johnniwinther@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Paul Berry <paulberry@google.com>