Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for walkConvInterface (0.32 sec)

  1. src/cmd/compile/internal/walk/convert.go

    	}
    	fn := types.BasicTypeNames[param] + "to" + types.BasicTypeNames[result]
    	return typecheck.Conv(mkcall(fn, types.Types[result], init, typecheck.Conv(n.X, types.Types[param])), n.Type())
    }
    
    // walkConvInterface walks an OCONVIFACE node.
    func walkConvInterface(n *ir.ConvExpr, init *ir.Nodes) ir.Node {
    
    	n.X = walkExpr(n.X, init)
    
    	fromType := n.X.Type()
    	toType := n.Type()
    	if !fromType.IsInterface() && !ir.IsBlank(ir.CurFunc.Nname) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/expr.go

    		return walkDelete(init, n)
    
    	case ir.OAS2DOTTYPE:
    		n := n.(*ir.AssignListStmt)
    		return walkAssignDotType(n, init)
    
    	case ir.OCONVIFACE:
    		n := n.(*ir.ConvExpr)
    		return walkConvInterface(n, init)
    
    	case ir.OCONV, ir.OCONVNOP:
    		n := n.(*ir.ConvExpr)
    		return walkConv(n, init)
    
    	case ir.OSLICE2ARR:
    		n := n.(*ir.ConvExpr)
    		return walkSliceToArray(n, init)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
Back to top