Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for oas (0.02 sec)

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

    	"cmd/compile/internal/typecheck"
    	"cmd/compile/internal/types"
    	"cmd/internal/src"
    )
    
    // walkAssign walks an OAS (AssignExpr) or OASOP (AssignOpExpr) node.
    func walkAssign(init *ir.Nodes, n ir.Node) ir.Node {
    	init.Append(ir.TakeInit(n)...)
    
    	var left, right ir.Node
    	switch n.Op() {
    	case ir.OAS:
    		n := n.(*ir.AssignStmt)
    		left, right = n.X, n.Y
    	case ir.OASOP:
    		n := n.(*ir.AssignOpStmt)
    		left, right = n.X, n.Y
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssagen/ssa.go

    			lab.target = s.f.NewBlock(ssa.BlockPlain)
    		}
    
    		b := s.endBlock()
    		b.Pos = s.lastPos.WithIsStmt() // Do this even if b is an empty block.
    		b.AddEdgeTo(lab.target)
    
    	case ir.OAS:
    		n := n.(*ir.AssignStmt)
    		if n.X == n.Y && n.X.Op() == ir.ONAME {
    			// An x=x assignment. No point in doing anything
    			// here. In addition, skipping this assignment
    			// prevents generating:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
Back to top