Lines Matching full:this
17 $last_call = end($this->calls);
18 $this->writeCall(['list_close', [], $last_call[2]]);
20 $this->process();
21 $this->callWriter->finalise();
22 unset($this->callWriter);
29 foreach ($this->calls as $call) {
31 'list_item' => $this->listOpen($call),
32 'list_open' => $this->listStart($call),
33 'list_close' => $this->listEnd($call),
34 default => $this->listContent($call),
38 $this->callWriter->writeCalls($this->listCalls);
39 return $this->callWriter;
44 $depth = $this->interpretSyntax($call[1][0], $listType);
46 $this->initialDepth = $depth;
48 $this->listStack[] = [$listType, $depth, 1];
50 $this->listCalls[] = ['list' . $listType . '_open', [], $call[2]];
51 $this->listCalls[] = ['listitem_open', [1], $call[2]];
52 $this->listCalls[] = ['listcontent_open', [], $call[2]];
60 while ($list = array_pop($this->listStack)) {
62 $this->listCalls[] = ['listcontent_close', [], $call[2]];
65 $this->listCalls[] = ['listitem_close', [], $call[2]];
66 $this->listCalls[] = ['list' . $list[0] . '_close', [], $call[2]];
72 $depth = $this->interpretSyntax($call[1][0], $listType);
73 $end = end($this->listStack);
74 $key = key($this->listStack);
77 if ($depth < $this->initialDepth) {
78 $depth = $this->initialDepth;
84 $this->listCalls[] = ['listcontent_close', [], $call[2]];
85 $this->listCalls[] = ['listitem_close', [], $call[2]];
86 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
87 $this->listCalls[] = ['listcontent_open', [], $call[2]];
90 $this->listStack[$key][2] = count($this->listCalls) - 2;
94 $this->listCalls[] = ['listcontent_close', [], $call[2]];
95 $this->listCalls[] = ['listitem_close', [], $call[2]];
96 $this->listCalls[] = ['list' . $end[0] . '_close', [], $call[2]];
97 $this->listCalls[] = ['list' . $listType . '_open', [], $call[2]];
98 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
99 $this->listCalls[] = ['listcontent_open', [], $call[2]];
101 array_pop($this->listStack);
102 $this->listStack[] = [$listType, $depth, count($this->listCalls) - 2];
105 $this->listCalls[] = ['listcontent_close', [], $call[2]];
106 $this->listCalls[] = ['list' . $listType . '_open', [], $call[2]];
107 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
108 $this->listCalls[] = ['listcontent_open', [], $call[2]];
110 // set the node/leaf state of this item's parent listitem_open to NODE
111 $this->listCalls[$this->listStack[$key][2]][1][1] = self::NODE;
113 $this->listStack[] = [$listType, $depth, count($this->listCalls) - 2];
115 $this->listCalls[] = ['listcontent_close', [], $call[2]];
116 $this->listCalls[] = ['listitem_close', [], $call[2]];
117 $this->listCalls[] = ['list' . $end[0] . '_close', [], $call[2]];
120 array_pop($this->listStack);
123 $end = end($this->listStack);
124 $key = key($this->listStack);
130 $this->listCalls[] = ['listitem_close', [], $call[2]];
133 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
134 $this->listCalls[] = ['listcontent_open', [], $call[2]];
137 $this->listStack[$key][2] = count($this->listCalls) - 2;
140 $this->listCalls[] = ['list' . $end[0] . '_close', [], $call[2]];
141 $this->listCalls[] = ['list' . $listType . '_open', [], $call[2]];
142 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
143 $this->listCalls[] = ['listcontent_open', [], $call[2]];
145 array_pop($this->listStack);
146 $this->listStack[] = [$listType, $depth, count($this->listCalls) - 2];
153 $this->listCalls[] = ['listitem_close', [], $call[2]];
154 $this->listCalls[] = ['list' . $end[0] . '_close', [], $call[2]];
156 array_pop($this->listStack);
164 $this->listCalls[] = $call;
175 // but I don't think the number is seen outside this handler