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

Method nodeSize

from_go/nodes.go:1438–1468  ·  view source on GitHub ↗

nodeSize determines the size of n in chars after formatting. The result is <= maxSize if the node fits on one line with at most maxSize chars and the formatted output doesn't contain any control chars. Otherwise, the result is > maxSize.

(n ast.Node, maxSize int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

exprListMethod · 0.95
isOneLineFieldListMethod · 0.95
bodySizeMethod · 0.95

Calls 2

fprintMethod · 0.95
LenMethod · 0.45

Tested by

no test coverage detected