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

Method readLocalVariables

undump.go:114–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112}
113
114func (state *loadState) readLocalVariables() (localVariables []localVariable, err error) {
115 var n int32
116 if n, err = state.readInt(); err != nil || n == 0 {
117 return
118 }
119 localVariables = make([]localVariable, n)
120 for i := range localVariables {
121 if localVariables[i].name, err = state.readString(); err != nil {
122 return
123 }
124 if localVariables[i].startPC, err = state.readPC(); err != nil {
125 return
126 }
127 if localVariables[i].endPC, err = state.readPC(); err != nil {
128 return
129 }
130 }
131 return
132}
133
134func (state *loadState) readLineInfo() (lineInfo []int32, err error) {
135 var n int32

Callers 1

readDebugMethod · 0.95

Calls 3

readIntMethod · 0.95
readStringMethod · 0.95
readPCMethod · 0.95

Tested by

no test coverage detected