Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for reduceDepth (0.1 sec)

  1. src/go/printer/nodes.go

    		return 6
    	}
    	return 4
    }
    
    func diffPrec(expr ast.Expr, prec int) int {
    	x, ok := expr.(*ast.BinaryExpr)
    	if !ok || prec != x.Op.Precedence() {
    		return 1
    	}
    	return 0
    }
    
    func reduceDepth(depth int) int {
    	depth--
    	if depth < 1 {
    		depth = 1
    	}
    	return depth
    }
    
    // Format the binary expression: decide the cutoff and then format.
    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