TotalDepth returns the sum of any unresolved paren, brace, or bracket depths.
()
| 219 | |
| 220 | // TotalDepth returns the sum of any unresolved paren, brace, or bracket depths. |
| 221 | func (sh *Shell) TotalDepth() int { |
| 222 | return num.Abs(sh.ParenDepth) + num.Abs(sh.BraceDepth) + num.Abs(sh.BrackDepth) |
| 223 | } |
| 224 | |
| 225 | // ResetCode resets the stack of transpiled code |
| 226 | func (sh *Shell) ResetCode() { |
no test coverage detected