Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for initNodes (0.07 sec)

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

    			// Throw away the temp to avoid plain values as statements.
    			n = ir.NewBlockStmt(n.Pos(), init)
    			init = nil
    		}
    		if len(init) > 0 {
    			switch n.Op() {
    			case ir.OAS, ir.OAS2, ir.OBLOCK:
    				n.(ir.InitNode).PtrInit().Prepend(init...)
    
    			default:
    				init.Append(n)
    				n = ir.NewBlockStmt(n.Pos(), init)
    			}
    		}
    		return n
    
    	// special case for a receive where we throw away
    	// the value received.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top