mirror of
https://github.com/golang/go
synced 2024-10-05 20:41:22 -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:
parent
35ad1fcb11
commit
44d87035b6
@ -379,7 +379,7 @@ func (b *Block) HTML() string {
|
|||||||
|
|
||||||
func (b *Block) LongHTML() string {
|
func (b *Block) LongHTML() string {
|
||||||
// TODO: improve this for HTML?
|
// 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 {
|
if b.Control != nil {
|
||||||
s += fmt.Sprintf(" %s", b.Control.HTML())
|
s += fmt.Sprintf(" %s", b.Control.HTML())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user