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

Method makeUpValue

code.go:1020–1024  ·  view source on GitHub ↗
(name string, e exprDesc)

Source from the content-addressed store, hash-verified

1018}
1019
1020func (f *function) makeUpValue(name string, e exprDesc) int {
1021 f.p.checkLimit(len(f.f.upValues)+1, maxUpValue, "upvalues")
1022 f.f.upValues = append(f.f.upValues, upValueDesc{name: name, isLocal: e.kind == kindLocal, index: e.info})
1023 return len(f.f.upValues) - 1
1024}
1025
1026func singleVariableHelper(f *function, name string, base bool) (e exprDesc, found bool) {
1027 owningBlock := func(b *block, level int) *block {

Callers 2

OpenMainFunctionMethod · 0.95
singleVariableHelperFunction · 0.80

Calls 1

checkLimitMethod · 0.80

Tested by

no test coverage detected