MCPcopy Create free account
hub / github.com/cogentcore/core / TotalDepth

Method TotalDepth

shell/shell.go:221–223  ·  view source on GitHub ↗

TotalDepth returns the sum of any unresolved paren, brace, or bracket depths.

()

Source from the content-addressed store, hash-verified

219
220// TotalDepth returns the sum of any unresolved paren, brace, or bracket depths.
221func (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
226func (sh *Shell) ResetCode() {

Callers 3

DepthErrorMethod · 0.95
PromptMethod · 0.80
EvalMethod · 0.80

Calls 1

AbsFunction · 0.92

Tested by

no test coverage detected