MCPcopy
hub / github.com/yuin/gopher-lua / BlockLocalVarsCount

Method BlockLocalVarsCount

compile.go:536–542  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

534 return v
535}
536func (fc *funcContext) BlockLocalVarsCount() int {
537 count := 0
538 for block := fc.Block; block != nil; block = block.Parent {
539 count += len(block.LocalVars.Names())
540 }
541 return count
542}
543
544func (fc *funcContext) RegisterLocalVar(name string) int {
545 ret := fc.Block.LocalVars.Register(name)

Callers 2

compileLabelStmtFunction · 0.80
compileGotoStmtFunction · 0.80

Calls 1

NamesMethod · 0.80

Tested by

no test coverage detected