mirror of
https://github.com/golang/go
synced 2024-11-18 16:04:44 -07:00
f11381f265
We want to make an if look like two blocks and have the coverage report for the else block decorate the "else" keyword with the right color. To do this, we adjust the apparent starting point of the else block to include the "else". The previous code assumed the way to do this was to move the width of "else " backwards from the else block's opening brace, but that assumes there is a space there. Instead, we now just start the else block exactly at the end of the if block. Simpler, cleaner, and fixes a bug. Fixes golang/go#8557. LGTM=gri R=gri CC=golang-codereviews https://golang.org/cl/127620043 |
||
---|---|---|
.. | ||
testdata | ||
cover_test.go | ||
cover.go | ||
doc.go | ||
func.go | ||
html.go |