Lines Matching refs:depth
52 $depth = $this->interpretSyntax($call[1][0], $listType);
54 $this->initialDepth = $depth;
55 // array(list type, current depth, index of current listitem_open)
56 $this->listStack[] = [$listType, $depth, 1];
80 $depth = $this->interpretSyntax($call[1][0], $listType);
85 if ($depth < $this->initialDepth) {
86 $depth = $this->initialDepth;
89 if ($depth == $end[1]) {
94 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
106 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
110 $this->listStack[] = [$listType, $depth, count($this->listCalls) - 2];
112 } elseif ($depth > $end[1]) { // Getting deeper...
115 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
121 $this->listStack[] = [$listType, $depth, count($this->listCalls) - 2];
122 } else { // Getting shallower ( $depth < $end[1] )
134 if ($end[1] <= $depth) {
136 $depth = $end[1];
141 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
150 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
154 $this->listStack[] = [$listType, $depth, count($this->listCalls) - 2];
159 // Haven't dropped down far enough yet.... ( $end[1] > $depth )