You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change adds the location of the second (reached) yield call
to the diagnostic in the form of RelatedInformation.
Also, for both the primary and related positions, it now
reports the start and end range of the enclosing yield CallExpr,
instead of the single point of the SSA Call instruction, which
is just the CallExpr.Lparen. (We should aim always to report
meaningful ranges, not just points.)
Tested interactively, since analysistest doesn't yet have a means
of testing related information, nor do we generally assert column
information; but see golang/go#75800.
Change-Id: I70d54375c33ef3c85ce6dd7b53803b9f961e42dc
Reviewed-on: https://go-review.googlesource.com/c/tools/+/712360
Reviewed-by: Markus Kusano <kusano@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
0 commit comments