Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for newTypeNode (0.08 sec)

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

    	"cmd/internal/src"
    )
    
    // Calling TypeNode converts a *types.Type to a Node shell.
    
    // A typeNode is a Node wrapper for type t.
    type typeNode struct {
    	miniNode
    	typ *types.Type
    }
    
    func newTypeNode(typ *types.Type) *typeNode {
    	n := &typeNode{typ: typ}
    	n.pos = src.NoXPos
    	n.op = OTYPE
    	n.SetTypecheck(1)
    	return n
    }
    
    func (n *typeNode) Type() *types.Type { return n.typ }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Aug 20 05:56:49 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top