Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for UnaryPrec (0.08 sec)

  1. src/go/printer/nodes.go

    		p.expr(x.Value)
    
    	case *ast.StarExpr:
    		const prec = token.UnaryPrec
    		if prec < prec1 {
    			// parenthesis needed
    			p.print(token.LPAREN)
    			p.print(token.MUL)
    			p.expr(x.X)
    			p.print(token.RPAREN)
    		} else {
    			// no parenthesis needed
    			p.print(token.MUL)
    			p.expr(x.X)
    		}
    
    	case *ast.UnaryExpr:
    		const prec = token.UnaryPrec
    		if prec < prec1 {
    			// parenthesis needed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
Back to top