Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for tcAssign (0.19 sec)

  1. src/cmd/compile/internal/typecheck/stmt.go

    func typecheckrangeExpr(n *ir.RangeStmt) {
    }
    
    // type check assignment.
    // if this assignment is the definition of a var on the left side,
    // fill in the var's type.
    func tcAssign(n *ir.AssignStmt) {
    	if base.EnableTrace && base.Flag.LowerT {
    		defer tracePrint("tcAssign", n)(nil)
    	}
    
    	if n.Y == nil {
    		n.X = AssignExpr(n.X)
    		return
    	}
    
    	lhs, rhs := []ir.Node{n.X}, []ir.Node{n.Y}
    	assign(n, lhs, rhs)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:10:54 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/typecheck.go

    		n.SetType(types.Types[types.TUINTPTR])
    		return n
    
    	case ir.OCONVNOP:
    		n := n.(*ir.ConvExpr)
    		n.X = Expr(n.X)
    		return n
    
    	// statements
    	case ir.OAS:
    		n := n.(*ir.AssignStmt)
    		tcAssign(n)
    
    		// Code that creates temps does not bother to set defn, so do it here.
    		if n.X.Op() == ir.ONAME && ir.IsAutoTmp(n.X) {
    			n.X.Name().Defn = n
    		}
    		return n
    
    	case ir.OAS2:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
Back to top