- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for BreakNode (0.19 sec)
-
src/text/template/parse/node.go
} // BreakNode represents a {{break}} action. type BreakNode struct { tr *Tree NodeType Pos Line int } func (t *Tree) newBreak(pos Pos, line int) *BreakNode { return &BreakNode{tr: t, NodeType: NodeBreak, Pos: pos, Line: line} } func (b *BreakNode) Copy() Node { return b.tr.newBreak(b.Pos, b.Line) }
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/exec.go
// Also, if the action declares variables, don't print the result. val := s.evalPipeline(dot, node.Pipe) if len(node.Pipe.Decl) == 0 { s.printValue(node, val) } case *parse.BreakNode: panic(walkBreak) case *parse.CommentNode: case *parse.ContinueNode: panic(walkContinue) case *parse.IfNode: s.walkIfOrWith(parse.NodeIf, dot, node.Pipe, node.List, node.ElseList)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 21:22:24 UTC 2024 - 32K bytes - Viewed (0)