Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for OLITERAL (0.21 sec)

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

    	"math/big"
    
    	"cmd/compile/internal/base"
    	"cmd/compile/internal/types"
    	"cmd/internal/src"
    )
    
    // NewBool returns an OLITERAL representing b as an untyped boolean.
    func NewBool(pos src.XPos, b bool) Node {
    	return NewBasicLit(pos, types.UntypedBool, constant.MakeBool(b))
    }
    
    // NewInt returns an OLITERAL representing v as an untyped integer.
    func NewInt(pos src.XPos, v int64) Node {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 18:53:26 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ir/copy.go

    // (except for shared nodes like ONAME, ONONAME, OLITERAL, and OTYPE).
    // 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)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:57:57 UTC 2023
    - 1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types/sym.go

    // for various reasons (historical, convenience).
    type Sym struct {
    	Linkname string // link name
    
    	Pkg  *Pkg
    	Name string // object name
    
    	// The unique ONAME, OTYPE, OPACK, or OLITERAL node that this symbol is
    	// bound to within the current scope. (Most parts of the compiler should
    	// prefer passing the Node directly, rather than relying on this field.)
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:56 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top