MCPcopy Create free account
hub / github.com/DAddYE/igo / binaryExpr

Method binaryExpr

from_go/nodes.go:630–667  ·  view source on GitHub ↗

Format the binary expression: decide the cutoff and then format. Let's call depth == 1 Normal mode, and depth > 1 Compact mode. (Algorithm suggestion by Russ Cox.) The precedences are: 5 * / % << >> & &^ 4 + - | ^ 3 == != < <= > >= 2

(x *ast.BinaryExpr, prec1, cutoff, depth int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

expr1Method · 0.95

Calls 9

printMethod · 0.95
expr0Method · 0.95
expr1Method · 0.95
lineForMethod · 0.95
linebreakMethod · 0.95
PrecedenceMethod · 0.80
reduceDepthFunction · 0.70
diffPrecFunction · 0.70
PosMethod · 0.65

Tested by

no test coverage detected