MCPcopy Create free account
hub / github.com/egonelbre/exp / increment

Function increment

vector/generate/expr.go:47–54  ·  view source on GitHub ↗
(varname string, by Expr)

Source from the content-addressed store, hash-verified

45}
46
47func increment(varname string, by Expr) string {
48 bys := by.String()
49 switch bys {
50 case "1":
51 return varname + "++"
52 }
53 return varname + " += " + bys
54}

Callers 2

IterateMethod · 0.85
advanceIteratorsMethod · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected