ba4e751dcb
Changes the analyzer code that reports the following errors to use the literate diagnostic reporting API: - `undefinedEnumConstant`. - `undefinedGetter`. In the process I've cleaned up the type of the second argument (now called `type`). Previously, some call sites passed in a type and others passed in a string; now all call sites pass in a type. Change-Id: I6a6a6964ebeb31ee388432242374df288c896350 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/471892 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>