Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newContinue (0.19 sec)

  1. src/text/template/parse/node.go

    type ContinueNode struct {
    	tr *Tree
    	NodeType
    	Pos
    	Line int
    }
    
    func (t *Tree) newContinue(pos Pos, line int) *ContinueNode {
    	return &ContinueNode{tr: t, NodeType: NodeContinue, Pos: pos, Line: line}
    }
    
    func (c *ContinueNode) Copy() Node                  { return c.tr.newContinue(c.Pos, c.Line) }
    func (c *ContinueNode) String() string              { return "{{continue}}" }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  2. src/text/template/parse/parse.go

    	if token := t.nextNonSpace(); token.typ != itemRightDelim {
    		t.unexpected(token, "{{continue}}")
    	}
    	if t.rangeDepth == 0 {
    		t.errorf("{{continue}} outside {{range}}")
    	}
    	return t.newContinue(pos, line)
    }
    
    // Pipeline:
    //
    //	declarations? command ('|' command)*
    func (t *Tree) pipeline(context string, end itemType) (pipe *PipeNode) {
    	token := t.peekNonSpace()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 21.3K bytes
    - Viewed (0)
Back to top