1
0
mirror of https://github.com/golang/go synced 2024-10-05 16:41:21 -06:00

[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

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())
}