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

Method readDebug

undump.go:144–165  ·  view source on GitHub ↗
(p *prototype)

Source from the content-addressed store, hash-verified

142}
143
144func (state *loadState) readDebug(p *prototype) (source string, lineInfo []int32, localVariables []localVariable, names []string, err error) {
145 var n int32
146 if source, err = state.readString(); err != nil {
147 return
148 }
149 if lineInfo, err = state.readLineInfo(); err != nil {
150 return
151 }
152 if localVariables, err = state.readLocalVariables(); err != nil {
153 return
154 }
155 if n, err = state.readInt(); err != nil {
156 return
157 }
158 names = make([]string, n)
159 for i := range names {
160 if names[i], err = state.readString(); err != nil {
161 return
162 }
163 }
164 return
165}
166
167func (state *loadState) readConstants() (constants []value, prototypes []prototype, err error) {
168 var n int32

Callers 1

readFunctionMethod · 0.95

Calls 4

readStringMethod · 0.95
readLineInfoMethod · 0.95
readLocalVariablesMethod · 0.95
readIntMethod · 0.95

Tested by

no test coverage detected