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

Method readUpValues

undump.go:97–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95}
96
97func (state *loadState) readUpValues() (u []upValueDesc, err error) {
98 n, err := state.readInt()
99 if err != nil || n == 0 {
100 return
101 }
102 v := make([]struct{ IsLocal, Index byte }, n)
103 err = state.read(v)
104 if err != nil {
105 return
106 }
107 u = make([]upValueDesc, n)
108 for i := range v {
109 u[i].isLocal, u[i].index = v[i].IsLocal != 0, int(v[i].Index)
110 }
111 return
112}
113
114func (state *loadState) readLocalVariables() (localVariables []localVariable, err error) {
115 var n int32

Callers 1

readFunctionMethod · 0.95

Calls 2

readIntMethod · 0.95
readMethod · 0.95

Tested by

no test coverage detected