[dev.ssa] cmd/compile: make block kinds clickable in html

Change-Id: I113c07caf504cee66a81730da8830de6de098e49
Reviewed-on: https://go-review.googlesource.com/13981
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Josh Bleecher Snyder 2015-08-27 10:29:01 -07:00
parent 35ad1fcb11
commit 44d87035b6
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ func (b *Block) HTML() string {
func (b *Block) LongHTML() string {
// TODO: improve this for HTML?
s := b.Kind.String()
s := fmt.Sprintf("<span class=\"%s ssa-block\">%s</span>", html.EscapeString(b.String()), html.EscapeString(b.Kind.String()))
if b.Control != nil {
s += fmt.Sprintf(" %s", b.Control.HTML())
}