- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for ElseList (0.55 sec)
-
src/text/template/parse/node.go
BranchNode } func (t *Tree) newRange(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode) *RangeNode { return &RangeNode{BranchNode{tr: t, NodeType: NodeRange, Pos: pos, Line: line, Pipe: pipe, List: list, ElseList: elseList}} } func (r *RangeNode) Copy() Node { return r.tr.newRange(r.Pos, r.Line, r.Pipe.CopyPipe(), r.List.CopyList(), r.ElseList.CopyList()) } // WithNode represents a {{with}} action and its commands.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 24.2K bytes - Viewed (0) -
src/text/template/parse/parse.go
if context == "if" && t.peek().typ == itemIf { t.next() // Consume the "if" token. elseList = t.newList(next.Position()) elseList.append(t.ifControl()) } else if context == "with" && t.peek().typ == itemWith { t.next() elseList = t.newList(next.Position()) elseList.append(t.withControl()) } else { elseList, next = t.itemList() if next.Type() != nodeEnd { t.errorf("expected end; found %s", next)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 21.3K bytes - Viewed (0) -
src/text/template/exec.go
s.walkIfOrWith(parse.NodeWith, dot, node.Pipe, node.List, node.ElseList) default: s.errorf("unknown node: %s", node) } } // walkIfOrWith walks an 'if' or 'with' node. The two control structures // are identical in behavior except that 'with' sets dot. func (s *state) walkIfOrWith(typ parse.NodeType, dot reflect.Value, pipe *parse.PipeNode, list, elseList *parse.ListNode) { defer s.pop(s.mark())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 21:22:24 UTC 2024 - 32K bytes - Viewed (0) -
src/html/template/escape.go
return c0 } c0 = joinRange(c0, e.rangeContext) e.rangeContext = e.rangeContext.outer if c0.state == stateError { return c0 } } c1 := e.escapeList(c, n.ElseList) return join(c0, c1, n, nodeName) } func joinRange(c0 context, rc *rangeContext) context { // Merge contexts at break and continue statements into overall body context.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 02 15:18:39 UTC 2023 - 32.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"ActionNode.Pos", Field, 1}, {"BoolNode", Type, 0}, {"BoolNode.NodeType", Field, 0}, {"BoolNode.Pos", Field, 1}, {"BoolNode.True", Field, 0}, {"BranchNode", Type, 0}, {"BranchNode.ElseList", Field, 0}, {"BranchNode.Line", Field, 0}, {"BranchNode.List", Field, 0}, {"BranchNode.NodeType", Field, 0}, {"BranchNode.Pipe", Field, 0}, {"BranchNode.Pos", Field, 1},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
api/go1.txt
pkg text/template/parse, type BoolNode struct, True bool pkg text/template/parse, type BoolNode struct, embedded NodeType pkg text/template/parse, type BranchNode struct pkg text/template/parse, type BranchNode struct, ElseList *ListNode pkg text/template/parse, type BranchNode struct, Line int pkg text/template/parse, type BranchNode struct, List *ListNode pkg text/template/parse, type BranchNode struct, Pipe *PipeNode
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)