Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for BinaryExpr (0.14 sec)

  1. src/cmd/compile/internal/syntax/parser.go

    // Expressions
    
    func (p *parser) expr() Expr {
    	if trace {
    		defer p.trace("expr")()
    	}
    
    	return p.binaryExpr(nil, 0)
    }
    
    // Expression = UnaryExpr | Expression binary_op Expression .
    func (p *parser) binaryExpr(x Expr, prec int) Expr {
    	// don't trace binaryExpr - only leads to overly nested trace output
    
    	if x == nil {
    		x = p.unaryExpr()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  2. src/go/types/expr.go

    	return true
    }
    
    // opName returns the name of the operation if x is an operation
    // that might overflow; otherwise it returns the empty string.
    func opName(e ast.Expr) string {
    	switch e := e.(type) {
    	case *ast.BinaryExpr:
    		if int(e.Op) < len(op2str2) {
    			return op2str2[e.Op]
    		}
    	case *ast.UnaryExpr:
    		if int(e.Op) < len(op2str1) {
    			return op2str1[e.Op]
    		}
    	}
    	return ""
    }
    
    var op2str1 = [...]string{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/expr.go

    	// 		goto Error
    	// 	}
    	// 	if e.Op == token.ARROW {
    	// 		x.expr = e
    	// 		return statement // receive operations may appear in statement context
    	// 	}
    
    	// case *syntax.BinaryExpr:
    	// 	check.binary(x, e, e.X, e.Y, e.Op)
    	// 	if x.mode == invalid {
    	// 		goto Error
    	// 	}
    
    	case *syntax.Operation:
    		if e.Y == nil {
    			// unary expression
    			if e.Op == syntax.Mul {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
Back to top