Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for NewUnaryExpr (0.2 sec)

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

    	if wantABI != obj.ABIInternal {
    		base.ErrorfAt(pos, 0, "internal/abi.FuncPC%s does not accept func expression, which is ABIInternal", wantABI)
    	}
    	var e Node = NewUnaryExpr(pos, OIDATA, n)
    	e.SetType(types.Types[types.TUINTPTR].PtrTo())
    	e.SetTypecheck(1)
    	e = NewStarExpr(pos, e)
    	e.SetType(types.Types[types.TUINTPTR])
    	e.SetTypecheck(1)
    	return e
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/func.go

    			typecheckargs(n)
    			fallthrough
    		case ir.ONEW:
    			arg, ok := needOneArg(n, "%v", n.Op())
    			if !ok {
    				n.SetType(nil)
    				return n
    			}
    			u := ir.NewUnaryExpr(n.Pos(), l.BuiltinOp, arg)
    			return typecheck(ir.InitExpr(n.Init(), u), top) // typecheckargs can add to old.Init
    
    		case ir.OCOMPLEX, ir.OCOPY, ir.OUNSAFEADD, ir.OUNSAFESLICE, ir.OUNSAFESTRING:
    			typecheckargs(n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
Back to top