- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for newPipeline (0.1 sec)
-
src/text/template/parse/node.go
IsAssign bool // The variables are being assigned, not declared. Decl []*VariableNode // Variables in lexical order. Cmds []*CommandNode // The commands in lexical order. } func (t *Tree) newPipeline(pos Pos, line int, vars []*VariableNode) *PipeNode { return &PipeNode{tr: t, NodeType: NodePipe, Pos: pos, Line: line, Decl: vars} } func (p *PipeNode) append(command *CommandNode) { p.Cmds = append(p.Cmds, command)
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
return t.newContinue(pos, line) } // Pipeline: // // declarations? command ('|' command)* func (t *Tree) pipeline(context string, end itemType) (pipe *PipeNode) { token := t.peekNonSpace() pipe = t.newPipeline(token.pos, token.line, nil) // Are there declarations or assignments? decls: if v := t.peekNonSpace(); v.typ == itemVariable { t.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)