1
0
mirror of https://github.com/golang/go synced 2024-11-18 13:04:46 -07:00
go/cmd
Rob Pike f11381f265 go.tools/cmd/cover: don't assume code is gofmt'd
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
2014-08-20 11:14:50 -07:00
..
benchcmp benchcmp: Fix invocation instructions. 2014-07-22 17:50:39 +10:00
cover go.tools/cmd/cover: don't assume code is gofmt'd 2014-08-20 11:14:50 -07:00
eg go.tools/cmd/eg: Use Print, not Printf, to print Help string. 2014-04-25 12:03:38 -04:00
godex go.tools/go/gccgoimporter: keep track of package and import priority 2014-06-17 10:56:47 -07:00
godoc go.tools/cmd/godoc: register redirect handler for /dl/ 2014-06-18 15:44:09 +10:00
goimports go.tools/cmd/goimports: update doc.go to new emacs instructions 2014-07-01 10:24:22 -07:00
gotype go.tools/cmd/gotype: fix call site (fix build) 2014-06-17 11:06:19 -07:00
html2article html2article: Ignore empty anchor elements and obtain the original url from Google Docs 2014-08-19 17:55:46 -07:00
oracle go.tools: rename packages. 2014-01-16 09:33:58 -05:00
present go.tools/cmd/present: track page views for every slide. 2014-08-05 16:02:39 -07:00
ssadump go.tools/cmd/ssadump: print packages and functions to stdout, not stderr. 2014-08-01 14:44:37 -04:00
vet vet: LEA* opcodes don't need to have matching length source and destination. 2014-07-21 21:15:39 -07:00