Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for BinaryExpr (0.48 sec)

  1. src/cmd/cgo/ast.go

    		} else {
    			f.walk(&n.Fun, ctxCall, visit)
    		}
    		f.walk(n.Args, ctxExpr, visit)
    	case *ast.StarExpr:
    		f.walk(&n.X, context, visit)
    	case *ast.UnaryExpr:
    		f.walk(&n.X, ctxExpr, visit)
    	case *ast.BinaryExpr:
    		f.walk(&n.X, ctxExpr, visit)
    		f.walk(&n.Y, ctxExpr, visit)
    	case *ast.KeyValueExpr:
    		f.walk(&n.Key, ctxExpr, visit)
    		f.walk(&n.Value, ctxExpr, visit)
    
    	case *ast.ArrayType:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/rewrite.go

    	case *ast.CallExpr:
    		a.apply(n, "Fun", nil, n.Fun)
    		a.applyList(n, "Args")
    
    	case *ast.StarExpr:
    		a.apply(n, "X", nil, n.X)
    
    	case *ast.UnaryExpr:
    		a.apply(n, "X", nil, n.X)
    
    	case *ast.BinaryExpr:
    		a.apply(n, "X", nil, n.X)
    		a.apply(n, "Y", nil, n.Y)
    
    	case *ast.KeyValueExpr:
    		a.apply(n, "Key", nil, n.Key)
    		a.apply(n, "Value", nil, n.Value)
    
    	// Types
    	case *ast.ArrayType:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  3. src/go/printer/testdata/parser.go

    	if p.trace {
    		defer un(trace(p, "BinaryExpr"))
    	}
    
    	x := p.parseUnaryExpr(lhs)
    	for prec := p.tok.Precedence(); prec >= prec1; prec-- {
    		for p.tok.Precedence() == prec {
    			pos, op := p.pos, p.tok
    			p.next()
    			if lhs {
    				p.resolve(x)
    				lhs = false
    			}
    			y := p.parseBinaryExpr(false, prec+1)
    			x = &ast.BinaryExpr{p.checkExpr(x), pos, op, p.checkExpr(y)}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/rulegen.go

    		u.node(node.X)
    
    	// expressions
    
    	case *ast.CallExpr:
    		u.node(node.Fun)
    		u.exprs(node.Args)
    	case *ast.SelectorExpr:
    		u.node(node.X)
    	case *ast.UnaryExpr:
    		u.node(node.X)
    	case *ast.BinaryExpr:
    		u.node(node.X)
    		u.node(node.Y)
    	case *ast.StarExpr:
    		u.node(node.X)
    	case *ast.ParenExpr:
    		u.node(node.X)
    	case *ast.IndexExpr:
    		u.node(node.X)
    		u.node(node.Index)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/stmt.go

    		visitList(call.Args)
    
    	case ir.OAPPEND, ir.ODELETE, ir.OPRINT, ir.OPRINTLN, ir.ORECOVERFP:
    		call := call.(*ir.CallExpr)
    		visitList(call.Args)
    		visit(&call.RType)
    
    	case ir.OCOPY:
    		call := call.(*ir.BinaryExpr)
    		visit(&call.X)
    		visit(&call.Y)
    		visit(&call.RType)
    
    	case ir.OCLEAR, ir.OCLOSE, ir.OPANIC:
    		call := call.(*ir.UnaryExpr)
    		visit(&call.X)
    	}
    
    	if len(argps) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:10:54 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  6. src/cmd/fix/typecheck.go

    			res := n.Results
    			if f.Results != nil {
    				t := split(typeof[f.Results])
    				for i := 0; i < len(res) && i < len(t); i++ {
    					set(res[i], t[i], false)
    				}
    			}
    
    		case *ast.BinaryExpr:
    			// Propagate types across binary ops that require two args of the same type.
    			switch n.Op {
    			case token.EQL, token.NEQ: // TODO: more cases. This is enough for the cftype fix.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 22:02:42 UTC 2022
    - 20.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssagen/ssa.go

    			return s.newValueOrSfCall2(s.ssaOp(n.Op(), n.Type()), a.Type, a, b)
    		}
    		return s.intDivide(n, a, b)
    	case ir.OMOD:
    		n := n.(*ir.BinaryExpr)
    		a := s.expr(n.X)
    		b := s.expr(n.Y)
    		return s.intDivide(n, a, b)
    	case ir.OADD, ir.OSUB:
    		n := n.(*ir.BinaryExpr)
    		a := s.expr(n.X)
    		b := s.expr(n.Y)
    		if n.Type().IsComplex() {
    			pt := types.FloatForComplex(n.Type())
    			op := s.ssaOp(n.Op(), pt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  8. src/go/types/decl.go

    	// needs to take care of such type expressions.
    	wrap := false
    	switch op := x.(type) {
    	case *ast.UnaryExpr:
    		wrap = op.Op == token.TILDE
    	case *ast.BinaryExpr:
    		wrap = op.Op == token.OR
    	}
    	if wrap {
    		x = &ast.InterfaceType{Methods: &ast.FieldList{List: []*ast.Field{{Type: x}}}}
    		t := check.typ(x)
    		// mark t as implicit interface if all went well
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/staticinit/sched.go

    		ir.OOROR,
    		ir.OPAREN,
    		ir.ORUNESTR,
    		ir.OREAL,
    		ir.OIMAG,
    		ir.OCOMPLEX:
    		return false
    
    	// Only possible side effect is division by zero.
    	case ir.ODIV, ir.OMOD:
    		n := n.(*ir.BinaryExpr)
    		if n.Y.Op() != ir.OLITERAL || constant.Sign(n.Y.Val()) == 0 {
    			return true
    		}
    
    	// Only possible side effect is panic on invalid size,
    	// but many makechan and makemap use size zero, which is definitely OK.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"BasicLit", Type, 0},
    		{"BasicLit.Kind", Field, 0},
    		{"BasicLit.Value", Field, 0},
    		{"BasicLit.ValuePos", Field, 0},
    		{"BinaryExpr", Type, 0},
    		{"BinaryExpr.Op", Field, 0},
    		{"BinaryExpr.OpPos", Field, 0},
    		{"BinaryExpr.X", Field, 0},
    		{"BinaryExpr.Y", Field, 0},
    		{"BlockStmt", Type, 0},
    		{"BlockStmt.Lbrace", Field, 0},
    		{"BlockStmt.List", Field, 0},
    		{"BlockStmt.Rbrace", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top