Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for tcAssignList (0.09 sec)

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

    	// TODO(mdempsky): This seems out of place.
    	if !ir.IsBlank(n.X) {
    		types.CheckSize(n.X.Type()) // ensure width is calculated for backend
    	}
    }
    
    func tcAssignList(n *ir.AssignListStmt) {
    	if base.EnableTrace && base.Flag.LowerT {
    		defer tracePrint("tcAssignList", n)(nil)
    	}
    
    	assign(n, n.Lhs, n.Rhs)
    }
    
    func assign(stmt ir.Node, lhs, rhs []ir.Node) {
    	// delicate little dance.
    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

    		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:
    		tcAssignList(n.(*ir.AssignListStmt))
    		return n
    
    	case ir.OBREAK,
    		ir.OCONTINUE,
    		ir.ODCL,
    		ir.OGOTO,
    		ir.OFALL:
    		return n
    
    	case ir.OBLOCK:
    		n := n.(*ir.BlockStmt)
    		Stmts(n.List)
    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