pop stack.
()
| 254 | |
| 255 | // pop stack. |
| 256 | func (p *fastJSONParser) pop() { |
| 257 | top := len(p.kind) - 1 |
| 258 | if p.kind[top] == kindArray { |
| 259 | p.arr = p.arr[:len(p.arr)-1] |
| 260 | } else { |
| 261 | p.obj = p.obj[:len(p.obj)-1] |
| 262 | } |
| 263 | p.kind = p.kind[:top] |
| 264 | } |
| 265 | |
| 266 | // stackReturn returns json object to the top of the stack |
| 267 | // and transitions state machine to the next state. |
no outgoing calls
no test coverage detected