Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for tcArith (0.07 sec)

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

    		t = types.UntypedInt
    	}
    	return l, r, t
    }
    
    // tcArith typechecks operands of a binary arithmetic expression.
    // The result of tcArith MUST be assigned back to original operands,
    // t is the type of the expression, and should be set by the caller. e.g:
    //
    //	n.X, n.Y, t = tcArith(n, op, n.X, n.Y)
    //	n.SetType(t)
    func tcArith(n ir.Node, op ir.Op, l, r ir.Node) (ir.Node, ir.Node, *types.Type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/typecheck.go

    		l, r, t := tcArith(n, n.Op(), n.X, n.Y)
    		if t != nil {
    			n.X, n.Y = l, r
    			n.SetType(types.UntypedBool)
    			n.X, n.Y = defaultlit2(l, r, true)
    		}
    		return n
    
    	// binary operators
    	case ir.OADD, ir.OAND, ir.OANDNOT, ir.ODIV, ir.OMOD, ir.OMUL, ir.OOR, ir.OSUB, ir.OXOR:
    		n := n.(*ir.BinaryExpr)
    		n.X, n.Y = Expr(n.X), Expr(n.Y)
    		l, r, t := tcArith(n, n.Op(), n.X, n.Y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  3. docs/en/data/github_sponsors.yml

        url: https://github.com/patsatsia
      - login: tcsmith
        avatarUrl: https://avatars.githubusercontent.com/u/989034?u=7d8d741552b3279e8f4d3878679823a705a46f8f&v=4
        url: https://github.com/tcsmith
      - login: dodo5522
        avatarUrl: https://avatars.githubusercontent.com/u/1362607?u=9bf1e0e520cccc547c046610c468ce6115bbcf9f&v=4
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Jun 03 01:09:53 UTC 2024
    - 27K bytes
    - Viewed (0)
Back to top