Lines Matching refs:children
18 * in the RuleContext. It handles parse tree children list, any ATN state
48 public $children;
66 * confusion with creating node with parent. Does not copy children
82 $this->children = null;
87 if ($ctx->children) {
88 $this->children = [];
91 foreach ($ctx->children as $child) {
133 if ($this->children === null) {
134 $this->children = [];
137 $this->children[] = $child;
149 if ($this->children !== null) {
150 \array_pop($this->children);
167 if ($this->children === null || $i < 0 || $i >= \count($this->children)) {
172 return $this->children[$i];
175 foreach ($this->children as $child) {
190 if ($this->children === null || $i < 0 || $i >= \count($this->children)) {
194 foreach ($this->children as $child) {
212 if ($this->children === null) {
217 foreach ($this->children as $child) {
236 if ($this->children=== null) {
241 foreach ($this->children as $child) {
252 return $this->children !== null ? \count($this->children) : 0;