Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NonNil (0.29 sec)

  1. src/cmd/compile/internal/ir/mini.go

    func (n *miniNode) Sym() *types.Sym         { return nil }
    func (n *miniNode) Val() constant.Value     { panic(n.no("Val")) }
    func (n *miniNode) SetVal(v constant.Value) { panic(n.no("SetVal")) }
    func (n *miniNode) NonNil() bool            { return false }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 31 22:09:44 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ir/copy.go

    // If pos.IsKnown(), it sets the source position of newly allocated Nodes to pos.
    func DeepCopy(pos src.XPos, n Node) Node {
    	var edit func(Node) Node
    	edit = func(x Node) Node {
    		switch x.Op() {
    		case ONAME, ONONAME, OLITERAL, ONIL, OTYPE:
    			return x
    		}
    		x = Copy(x)
    		if pos.IsKnown() {
    			x.SetPos(pos)
    		}
    		EditChildren(x, edit)
    		return x
    	}
    	return edit(n)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:57:57 UTC 2023
    - 1K bytes
    - Viewed (0)
Back to top