text/template/parse.BranchNode.Pipe (field)
25 uses
text/template/parse (current package)
node.go#L849: Pipe *PipeNode // The pipeline to be evaluated.
node.go#L875: b.Pipe.writeTo(sb)
node.go#L892: return b.tr.newIf(b.Pos, b.Line, b.Pipe, b.List, b.ElseList)
node.go#L894: return b.tr.newRange(b.Pos, b.Line, b.Pipe, b.List, b.ElseList)
node.go#L896: return b.tr.newWith(b.Pos, b.Line, b.Pipe, b.List, b.ElseList)
node.go#L908: return &IfNode{BranchNode{tr: t, NodeType: NodeIf, Pos: pos, Line: line, Pipe: pipe, List: list, ElseList: elseList}}
node.go#L912: return i.tr.newIf(i.Pos, i.Line, i.Pipe.CopyPipe(), i.List.CopyList(), i.ElseList.CopyList())
node.go#L955: return &RangeNode{BranchNode{tr: t, NodeType: NodeRange, Pos: pos, Line: line, Pipe: pipe, List: list, ElseList: elseList}}
node.go#L959: return r.tr.newRange(r.Pos, r.Line, r.Pipe.CopyPipe(), r.List.CopyList(), r.ElseList.CopyList())
node.go#L968: return &WithNode{BranchNode{tr: t, NodeType: NodeWith, Pos: pos, Line: line, Pipe: pipe, List: list, ElseList: elseList}}
node.go#L972: return w.tr.newWith(w.Pos, w.Line, w.Pipe.CopyPipe(), w.List.CopyList(), w.ElseList.CopyList())
text/template
exec.go#L277: s.walkIfOrWith(parse.NodeIf, dot, node.Pipe, node.List, node.ElseList)
exec.go#L291: s.walkIfOrWith(parse.NodeWith, dot, node.Pipe, node.List, node.ElseList)
exec.go#L360: val, _ := indirect(s.evalPipeline(dot, r.Pipe))
exec.go#L364: if len(r.Pipe.Decl) > 0 {
exec.go#L365: if r.Pipe.IsAssign {
exec.go#L368: if len(r.Pipe.Decl) > 1 {
exec.go#L369: s.setVar(r.Pipe.Decl[0].Ident[0], index)
exec.go#L371: s.setVar(r.Pipe.Decl[0].Ident[0], elem)
exec.go#L379: if len(r.Pipe.Decl) > 1 {
exec.go#L380: if r.Pipe.IsAssign {
exec.go#L381: s.setVar(r.Pipe.Decl[1].Ident[0], elem)
exec.go#L400: if len(r.Pipe.Decl) > 1 {
exec.go#L455: if len(r.Pipe.Decl) > 1 {
exec.go#L475: if len(r.Pipe.Decl) > 1 {