MCPcopy Index your code
hub / github.com/Shopify/go-lua / AdjustLocalVariables

Method AdjustLocalVariables

code.go:148–152  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

146}
147
148func (f *function) AdjustLocalVariables(n int) {
149 for f.activeVariableCount += n; n != 0; n-- {
150 f.LocalVariable(f.activeVariableCount - n).startPC = pc(len(f.f.code))
151 }
152}
153
154func (f *function) removeLocalVariables(level int) {
155 for i := level; i < f.activeVariableCount; i++ {

Callers 6

OpenForBodyMethod · 0.95
forBodyMethod · 0.80
parameterListMethod · 0.80
bodyMethod · 0.80
localFunctionMethod · 0.80
localStatementMethod · 0.80

Calls 2

LocalVariableMethod · 0.95
pcTypeAlias · 0.85

Tested by

no test coverage detected