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

Method FindLocalVar

compile.go:560–563  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

558}
559
560func (fc *funcContext) FindLocalVar(name string) int {
561 idx, _ := fc.FindLocalVarAndBlock(name)
562 return idx
563}
564
565func (fc *funcContext) LocalVars() []varNamePoolValue {
566 result := make([]varNamePoolValue, 0, 32)

Callers 6

compileAssignStmtLeftFunction · 0.80
compileAssignStmtFunction · 0.80
compileReturnStmtFunction · 0.80
compileExprFunction · 0.80
compileLogicalOpExprAuxFunction · 0.80
getIdentRefTypeFunction · 0.80

Calls 1

FindLocalVarAndBlockMethod · 0.95

Tested by

no test coverage detected