(p *prototype)
| 142 | } |
| 143 | |
| 144 | func (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 | |
| 167 | func (state *loadState) readConstants() (constants []value, prototypes []prototype, err error) { |
| 168 | var n int32 |
no test coverage detected