text/template/parse.BranchNode.List (field)
18 uses
text/template/parse (current package)
node.go#L845: List *ListNode // What to execute if the value is non-empty.
node.go#L872: b.List.writeTo(sb)
node.go#L887: return b.tr.newIf(b.Pos, b.Line, b.Pipe, b.List, b.ElseList)
node.go#L889: return b.tr.newRange(b.Pos, b.Line, b.Pipe, b.List, b.ElseList)
node.go#L891: return b.tr.newWith(b.Pos, b.Line, b.Pipe, b.List, b.ElseList)
node.go#L903: return &IfNode{BranchNode{tr: t, NodeType: NodeIf, Pos: pos, Line: line, Pipe: pipe, List: list, ElseList: elseList}}
node.go#L907: return i.tr.newIf(i.Pos, i.Line, i.Pipe.CopyPipe(), i.List.CopyList(), i.ElseList.CopyList())
node.go#L916: return &RangeNode{BranchNode{tr: t, NodeType: NodeRange, Pos: pos, Line: line, Pipe: pipe, List: list, ElseList: elseList}}
node.go#L920: return r.tr.newRange(r.Pos, r.Line, r.Pipe.CopyPipe(), r.List.CopyList(), r.ElseList.CopyList())
node.go#L929: return &WithNode{BranchNode{tr: t, NodeType: NodeWith, Pos: pos, Line: line, Pipe: pipe, List: list, ElseList: elseList}}
node.go#L933: return w.tr.newWith(w.Pos, w.Line, w.Pipe.CopyPipe(), w.List.CopyList(), w.ElseList.CopyList())
text/template
exec.go#L261: s.walkIfOrWith(parse.NodeIf, dot, node.Pipe, node.List, node.ElseList)
exec.go#L275: s.walkIfOrWith(parse.NodeWith, dot, node.Pipe, node.List, node.ElseList)
exec.go#L351: s.walk(elem, r.List)
github.com/google/safehtml/template
escape.go#L380: c0 := e.escapeList(c, n.List)
escape.go#L385: c1, _ := e.escapeListConditionally(c0, n.List, nil)
html/template
escape.go#L469: c0 := e.escapeList(c, n.List)
escape.go#L474: c1, _ := e.escapeListConditionally(c0, n.List, nil)
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |