Lines Matching refs:Anchor
53 // Anchor, if non-empty, is the URL fragment to use in anchor tags.
54 Anchor string
69 // Anchor, if non-empty, is the URL fragment to use in anchor tags.
70 Anchor string
371 anchor := sanitizeAnchor(firstSentence(comment))
372 if len(anchor) > 0 {
373 if _, ok := allAnchors[anchor]; ok {
374 return nil, fmt.Errorf("duplicate anchor: %s", anchor)
376 allAnchors[anchor] = struct{}{}
381 section.Anchor = anchor
436 anchor := sanitizeAnchor(name)
440 allAnchors[anchor] = struct{}{}
442 header.AllDecls[name] = anchor
448 Anchor: anchor,
501 anchor, isLink := allDecls[s[:i]]
503 ret += fmt.Sprintf("<a href=\"%s\">", template.HTMLEscapeString(anchor))
580 {{if .Anchor}}<li class="header"><a href="#{{.Anchor}}">{{.Preamble | firstSentence | markupPipeWords}}</a></li>{{end}}
582 {{if .Anchor}}<li><a href="#{{.Anchor}}"><tt>{{.Name}}</tt></a></li>{{end}}
590 <div class="section" {{if .Anchor}}id="{{.Anchor}}"{{end}}>
598 <div class="decl" {{if .Anchor}}id="{{.Anchor}}"{{end}}>
627 for name, anchor := range header.AllDecls {
628 allDecls[name] = fmt.Sprintf("%s#%s", header.Name+".html", anchor)