Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newSection (0.09 sec)

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

    type ActionNode struct {
    	NodeType
    	Pos
    	tr   *Tree
    	Line int       // The line number in the input. Deprecated: Kept for compatibility.
    	Pipe *PipeNode // The pipeline in the action.
    }
    
    func (t *Tree) newAction(pos Pos, line int, pipe *PipeNode) *ActionNode {
    	return &ActionNode{tr: t, NodeType: NodeAction, Pos: pos, Line: line, Pipe: pipe}
    }
    
    func (a *ActionNode) String() string {
    	var sb strings.Builder
    	a.writeTo(&sb)
    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

    	case itemTemplate:
    		return t.templateControl()
    	case itemWith:
    		return t.withControl()
    	}
    	t.backup()
    	token := t.peek()
    	// Do not pop variables; they persist until "end".
    	return t.newAction(token.pos, token.line, t.pipeline("command", itemRightDelim))
    }
    
    // Break:
    //
    //	{{break}}
    //
    // Break keyword is past.
    func (t *Tree) breakControl(pos Pos, line int) Node {
    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