Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NilNode (0.17 sec)

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

    }
    
    func (d *DotNode) Copy() Node {
    	return d.tr.newDot(d.Pos)
    }
    
    // NilNode holds the special identifier 'nil' representing an untyped nil constant.
    type NilNode struct {
    	NodeType
    	Pos
    	tr *Tree
    }
    
    func (t *Tree) newNil(pos Pos) *NilNode {
    	return &NilNode{tr: t, NodeType: NodeNil, Pos: pos}
    }
    
    func (n *NilNode) Type() NodeType {
    	// Override method on embedded NodeType for API compatibility.
    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/exec.go

    	case *parse.DotNode:
    		return dot
    	case *parse.FieldNode:
    		return s.evalFieldNode(dot, n, nil, missingVal)
    	case *parse.IdentifierNode:
    		return s.evalFunction(dot, n, n, nil, missingVal)
    	case *parse.NilNode:
    		// NilNode is handled in evalArg, the only place that calls here.
    		s.errorf("evalEmptyInterface: nil (can't happen)")
    	case *parse.NumberNode:
    		return s.idealConstant(n)
    	case *parse.StringNode:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*IfNode).String", Method, 0},
    		{"(*ListNode).Copy", Method, 0},
    		{"(*ListNode).CopyList", Method, 0},
    		{"(*ListNode).String", Method, 0},
    		{"(*NilNode).Copy", Method, 1},
    		{"(*NilNode).String", Method, 1},
    		{"(*NilNode).Type", Method, 1},
    		{"(*NumberNode).Copy", Method, 0},
    		{"(*NumberNode).String", Method, 0},
    		{"(*PipeNode).Copy", Method, 0},
    		{"(*PipeNode).CopyPipe", Method, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top