Lines Matching refs:this
24 foreach ($this->calls as $call) {
26 'list_item' => $this->listOpen($call),
27 'list_open' => $this->listStart($call),
28 'list_close' => $this->listEnd($call),
29 default => $this->listContent($call),
33 $this->callWriter->writeCalls($this->listCalls);
34 return $this->callWriter;
39 $depth = $this->interpretSyntax($call[1][0], $listType);
41 $this->initialDepth = $depth;
43 $this->listStack[] = [$listType, $depth, 1];
45 $this->listCalls[] = ['list' . $listType . '_open', [], $call[2]];
46 $this->listCalls[] = ['listitem_open', [1], $call[2]];
47 $this->listCalls[] = ['listcontent_open', [], $call[2]];
55 while ($list = array_pop($this->listStack)) {
57 $this->listCalls[] = ['listcontent_close', [], $call[2]];
60 $this->listCalls[] = ['listitem_close', [], $call[2]];
61 $this->listCalls[] = ['list' . $list[0] . '_close', [], $call[2]];
67 $depth = $this->interpretSyntax($call[1][0], $listType);
68 $end = end($this->listStack);
69 $key = key($this->listStack);
72 if ($depth < $this->initialDepth) {
73 $depth = $this->initialDepth;
79 $this->listCalls[] = ['listcontent_close', [], $call[2]];
80 $this->listCalls[] = ['listitem_close', [], $call[2]];
81 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
82 $this->listCalls[] = ['listcontent_open', [], $call[2]];
85 $this->listStack[$key][2] = count($this->listCalls) - 2;
89 $this->listCalls[] = ['listcontent_close', [], $call[2]];
90 $this->listCalls[] = ['listitem_close', [], $call[2]];
91 $this->listCalls[] = ['list' . $end[0] . '_close', [], $call[2]];
92 $this->listCalls[] = ['list' . $listType . '_open', [], $call[2]];
93 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
94 $this->listCalls[] = ['listcontent_open', [], $call[2]];
96 array_pop($this->listStack);
97 $this->listStack[] = [$listType, $depth, count($this->listCalls) - 2];
100 $this->listCalls[] = ['listcontent_close', [], $call[2]];
101 $this->listCalls[] = ['list' . $listType . '_open', [], $call[2]];
102 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
103 $this->listCalls[] = ['listcontent_open', [], $call[2]];
106 $this->listCalls[$this->listStack[$key][2]][1][1] = self::NODE;
108 $this->listStack[] = [$listType, $depth, count($this->listCalls) - 2];
110 $this->listCalls[] = ['listcontent_close', [], $call[2]];
111 $this->listCalls[] = ['listitem_close', [], $call[2]];
112 $this->listCalls[] = ['list' . $end[0] . '_close', [], $call[2]];
115 array_pop($this->listStack);
118 $end = end($this->listStack);
119 $key = key($this->listStack);
125 $this->listCalls[] = ['listitem_close', [], $call[2]];
128 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
129 $this->listCalls[] = ['listcontent_open', [], $call[2]];
132 $this->listStack[$key][2] = count($this->listCalls) - 2;
135 $this->listCalls[] = ['list' . $end[0] . '_close', [], $call[2]];
136 $this->listCalls[] = ['list' . $listType . '_open', [], $call[2]];
137 $this->listCalls[] = ['listitem_open', [$depth - 1], $call[2]];
138 $this->listCalls[] = ['listcontent_open', [], $call[2]];
140 array_pop($this->listStack);
141 $this->listStack[] = [$listType, $depth, count($this->listCalls) - 2];
148 $this->listCalls[] = ['listitem_close', [], $call[2]];
149 $this->listCalls[] = ['list' . $end[0] . '_close', [], $call[2]];
151 array_pop($this->listStack);
159 $this->listCalls[] = $call;