MCPcopy Index your code
hub / github.com/yuin/gopher-lua / shouldmove

Function shouldmove

compile.go:89–91  ·  view source on GitHub ↗
(ec *expcontext, reg int)

Source from the content-addressed store, hash-verified

87}
88
89func shouldmove(ec *expcontext, reg int) bool {
90 return ec.ctype == ecLocal && ec.reg != regNotDefined && ec.reg != reg
91}
92
93func sline(pos ast.PositionHolder) int {
94 return pos.Line()

Callers 2

compileTableExprFunction · 0.85
compileFuncCallExprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…