@@ 249-257 (lines=9) @@ | ||
246 | } elseif ($state === 3) { |
|
247 | $expr->options = OptionsArray::parse($parser, $list, static::$FIELD_OPTIONS); |
|
248 | $state = 4; |
|
249 | } elseif ($state === 4) { |
|
250 | if (($token->type === Token::TYPE_KEYWORD) && ($token->value === 'REFERENCES')) { |
|
251 | ++$list->idx; // Skipping keyword 'REFERENCES'. |
|
252 | $expr->references = Reference::parse($parser, $list); |
|
253 | } else { |
|
254 | --$list->idx; |
|
255 | } |
|
256 | $state = 5; |
|
257 | } elseif ($state === 5) { |
|
258 | if ((!empty($expr->type)) || (!empty($expr->key))) { |
|
259 | $ret[] = $expr; |
|
260 | } |
@@ 95-103 (lines=9) @@ | ||
92 | continue; |
|
93 | } |
|
94 | ||
95 | if ($state === 0) { |
|
96 | $ret->name = $token->value; |
|
97 | $state = 1; |
|
98 | } elseif ($state === 1) { |
|
99 | if (($token->type === Token::TYPE_OPERATOR) && ($token->value === '(')) { |
|
100 | $ret->parameters = ArrayObj::parse($parser, $list); |
|
101 | } |
|
102 | break; |
|
103 | } |
|
104 | } |
|
105 | ||
106 | return $ret; |