Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for parseBinaryExpr (0.39 sec)

  1. src/go/parser/parser.go

    		tok = token.EQL
    	}
    	return tok, tok.Precedence()
    }
    
    // parseBinaryExpr parses a (possibly) binary expression.
    // If x is non-nil, it is used as the left operand.
    //
    // TODO(rfindley): parseBinaryExpr has become overloaded. Consider refactoring.
    func (p *parser) parseBinaryExpr(x ast.Expr, prec1 int) ast.Expr {
    	if p.trace {
    		defer un(trace(p, "BinaryExpr"))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  2. src/go/printer/testdata/parser.go

    		return &ast.StarExpr{pos, p.checkExprOrType(x)}
    	}
    
    	return p.parsePrimaryExpr(lhs)
    }
    
    // If lhs is set and the result is an identifier, it is not resolved.
    func (p *parser) parseBinaryExpr(lhs bool, prec1 int) ast.Expr {
    	if p.trace {
    		defer un(trace(p, "BinaryExpr"))
    	}
    
    	x := p.parseUnaryExpr(lhs)
    	for prec := p.tok.Precedence(); prec >= prec1; prec-- {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
Back to top