cvs: pear /PHP_Parser/Parser Core.php Core.y Tokenizer.php /PHP_Parser/tests array_whitespace.phpt global_var.phpt unticked_class_statement1.phpt
unticked_class_statement2.phpt unticked_class_statement3.phpt unticked_function_statement1.phpt unticked_function_statement2.phpt
| From: | Greg Beaver | Date: | Mon, 05 Mar 2007 05:05:50 +0000 |
| Subject: | cvs: pear /PHP_Parser/Parser Core.php Core.y Tokenizer.php /PHP_Parser/tests array_whitespace.phpt global_var.phpt unticked_class_statement1.phpt unticked_class_statement2.phpt unticked_class_statement3.phpt unticked_function_statement1.phpt unticked_function_statement2.phpt |
||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-44976@lists.php.net to get a copy of this message | ||
cellog Mon Mar 5 05:05:50 2007 UTC
Modified files:
/pear/PHP_Parser/Parser Core.php Core.y Tokenizer.php
/pear/PHP_Parser/tests array_whitespace.phpt global_var.phpt
unticked_class_statement1.phpt
unticked_class_statement2.phpt
unticked_class_statement3.phpt
unticked_function_statement1.phpt
unticked_function_statement2.phpt
Log:
implement full docblock parsing support for all documentable elements
http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/Parser/Core.php?r1=1.7&r2=1.8&diff_format=u Index: pear/PHP_Parser/Parser/Core.php diff -u pear/PHP_Parser/Parser/Core.php:1.7 pear/PHP_Parser/Parser/Core.php:1.8 --- pear/PHP_Parser/Parser/Core.php:1.7 Sun Mar 4 17:15:46 2007 +++ pear/PHP_Parser/Parser/Core.php Mon Mar 5 05:05:50 2007 @@ -5181,7 +5181,6 @@ 45 => 45, 48 => 48, 57 => 48, - 216 => 48, 49 => 49, 50 => 50, 51 => 51, @@ -5322,6 +5321,7 @@ 211 => 211, 214 => 214, 215 => 215, + 216 => 216, 217 => 217, 219 => 219, 221 => 221, @@ -5329,11 +5329,11 @@ 224 => 224, 226 => 226, 227 => 227, - 232 => 227, 228 => 228, 229 => 229, 230 => 230, 231 => 231, + 232 => 232, 233 => 233, 234 => 234, 235 => 235, @@ -5381,13 +5381,13 @@ 309 => 309, 310 => 310, 311 => 311, - 313 => 311, 316 => 311, - 318 => 311, 312 => 312, + 313 => 313, 314 => 314, 315 => 315, 317 => 317, + 318 => 318, 319 => 319, 322 => 322, 324 => 324, @@ -5553,8 +5553,9 @@ #line 5558 "Core.php" #line 297 "Core.y" function yy_r49(){ - $this->_retvalue = new PHP_Parser_CoreyyToken('function ' . ($this->yystack[$this->yyidx + -7]->minor ? '&' : '') . - $this->yystack[$this->yyidx + -6]->minor . '(' . $this->yystack[$this->yyidx + -4]->minor->string . ')'); + $this->_retvalue = new PHP_Parser_CoreyyToken('function ' . ($this->yystack[$this->yyidx + -7]->minor ? '&' : '') . + $this->yystack[$this->yyidx + -6]->minor . '(' . $this->yystack[$this->yyidx + -4]->minor->string . ')'); + list($doc, $parsed, $line) = $this->lex->getLastComment(); $this->_retvalue[] = array( 'type' => 'function', 'startline' => $this->yystack[$this->yyidx + -8]->minor, @@ -5563,6 +5564,9 @@ 'name' => $this->yystack[$this->yyidx + -6]->minor, 'parameters' => $this->yystack[$this->yyidx + -4]->minor->metadata, 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->functions[$this->yystack[$this->yyidx + -6]->minor][] = array( 'type' => 'function', @@ -5572,93 +5576,114 @@ 'name' => $this->yystack[$this->yyidx + -6]->minor, 'parameters' => $this->yystack[$this->yyidx + -4]->minor->metadata, 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -#line 5582 "Core.php" -#line 325 "Core.y" +#line 5589 "Core.php" +#line 332 "Core.y" function yy_r50(){ - $this->_retvalue = new PHP_Parser_CoreyyToken('', array( - 'type' => $this->yystack[$this->yyidx + -6]->minor['type'], + list($doc, $parsed, $line) = $this->lex->getLastComment(); + $this->_retvalue = new PHP_Parser_CoreyyToken('', array( + 'type' => $this->yystack[$this->yyidx + -6]->minor['type'], 'startline' => $this->yystack[$this->yyidx + -6]->minor['line'], 'endline' => $this->lex->line, - 'modifiers' => $this->yystack[$this->yyidx + -6]->minor['modifiers'], - 'name' => $this->yystack[$this->yyidx + -5]->minor, - 'extends' => $this->yystack[$this->yyidx + -4]->minor->metadata, - 'implements' => $this->yystack[$this->yyidx + -3]->minor->metadata, - 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, - )); - $this->classes[$this->yystack[$this->yyidx + -5]->minor][] = array( - 'type' => $this->yystack[$this->yyidx + -6]->minor['type'], + 'modifiers' => $this->yystack[$this->yyidx + -6]->minor['modifiers'], + 'name' => $this->yystack[$this->yyidx + -5]->minor, + 'extends' => $this->yystack[$this->yyidx + -4]->minor->metadata, + 'implements' => $this->yystack[$this->yyidx + -3]->minor->metadata, + 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + )); + $this->classes[$this->yystack[$this->yyidx + -5]->minor][] = array( + 'type' => $this->yystack[$this->yyidx + -6]->minor['type'], 'startline' => $this->yystack[$this->yyidx + -6]->minor['line'], 'endline' => $this->lex->line, - 'modifiers' => $this->yystack[$this->yyidx + -6]->minor['modifiers'], - 'name' => $this->yystack[$this->yyidx + -5]->minor, - 'extends' => $this->yystack[$this->yyidx + -4]->minor->metadata, - 'implements' => $this->yystack[$this->yyidx + -3]->minor->metadata, - 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, - ); + 'modifiers' => $this->yystack[$this->yyidx + -6]->minor['modifiers'], + 'name' => $this->yystack[$this->yyidx + -5]->minor, + 'extends' => $this->yystack[$this->yyidx + -4]->minor->metadata, + 'implements' => $this->yystack[$this->yyidx + -3]->minor->metadata, + 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ); } -#line 5606 "Core.php" -#line 352 "Core.y" +#line 5620 "Core.php" +#line 366 "Core.y" function yy_r51(){ + list($doc, $parsed, $line) = $this->lex->getLastComment(); $this->_retvalue = new PHP_Parser_CoreyyToken('', array( - 'type' => 'interface', + 'type' => 'interface', 'startline' => $this->yystack[$this->yyidx + -5]->minor, 'endline' => $this->lex->line, - 'name' => $this->yystack[$this->yyidx + -4]->minor, - 'extends' => $this->yystack[$this->yyidx + -3]->minor->metadata, - 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, + 'name' => $this->yystack[$this->yyidx + -4]->minor, + 'extends' => $this->yystack[$this->yyidx + -3]->minor->metadata, + 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, )); $this->interfaces[$this->yystack[$this->yyidx + -4]->minor][] = array( - 'type' => 'interface', + 'type' => 'interface', 'startline' => $this->yystack[$this->yyidx + -5]->minor, 'endline' => $this->lex->line, - 'name' => $this->yystack[$this->yyidx + -4]->minor, - 'extends' => $this->yystack[$this->yyidx + -3]->minor->metadata, - 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, + 'name' => $this->yystack[$this->yyidx + -4]->minor, + 'extends' => $this->yystack[$this->yyidx + -3]->minor->metadata, + 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -#line 5626 "Core.php" -#line 371 "Core.y" +#line 5647 "Core.php" +#line 392 "Core.y" function yy_r52(){ $this->_retvalue = new PHP_Parser_CoreyyToken('', array('type' => 'class', 'modifiers' => array(), 'line' => $this->lex->line)); } -#line 5629 "Core.php" -#line 372 "Core.y" +#line 5650 "Core.php" +#line 393 "Core.y" function yy_r53(){ $this->_retvalue = new PHP_Parser_CoreyyToken('', array('type' => 'class', 'modifiers' => array('abstract'), 'line' => $this->lex->line)); } -#line 5634 "Core.php" -#line 375 "Core.y" +#line 5655 "Core.php" +#line 396 "Core.y" function yy_r54(){ $this->_retvalue = new PHP_Parser_CoreyyToken('', array('type' => 'class', 'modifiers' => array('final'), 'line' => $this->lex->line)); } -#line 5639 "Core.php" -#line 379 "Core.y" +#line 5660 "Core.php" +#line 400 "Core.y" function yy_r55(){$this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + 0]->minor, array($this->yystack[$this->yyidx + 0]->minor)); } -#line 5642 "Core.php" -#line 390 "Core.y" +#line 5663 "Core.php" +#line 411 "Core.y" function yy_r62(){$this->_retvalue = new PHP_Parser_CoreyyToken('', array($this->yystack[$this->yyidx + 0]->minor)); } -#line 5645 "Core.php" -#line 391 "Core.y" +#line 5666 "Core.php" +#line 412 "Core.y" function yy_r63(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = array($this->yystack[$this->yyidx + 0]->minor); } -#line 5651 "Core.php" -#line 399 "Core.y" +#line 5672 "Core.php" +#line 420 "Core.y" function yy_r66(){ $this->_retvalue = new PHP_Parser_CoreyyToken('list(' . $this->yystack[$this->yyidx + -3]->minor->string . ') = ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5657 "Core.php" -#line 403 "Core.y" +#line 5678 "Core.php" +#line 424 "Core.y" function yy_r67(){ if ($this->lex->globalSearch($this->yystack[$this->yyidx + -2]->minor->string)) { + list($doc, $parsed, $line) = $this->lex->getLastComment(); $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' = ' . $this->yystack[$this->yyidx + 0]->minor->string, array( 'type' => 'global', 'name' => $this->yystack[$this->yyidx + -2]->minor->string, 'line' => $this->lex->line, 'default' => $this->yystack[$this->yyidx + 0]->minor->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, )); $this->_retvalue[] = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; @@ -5667,43 +5692,74 @@ 'name' => $this->yystack[$this->yyidx + -2]->minor->string, 'line' => $this->lex->line, 'default' => $this->yystack[$this->yyidx + 0]->minor->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } else { $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' = ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } } -#line 5681 "Core.php" -#line 425 "Core.y" +#line 5712 "Core.php" +#line 456 "Core.y" function yy_r68(){ if ($this->lex->globalSearch($this->yystack[$this->yyidx + -3]->minor->string)) { + list($doc, $parsed, $line) = $this->lex->getLastComment(); $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . ' = ' . $this->yystack[$this->yyidx + 0]->minor->string, array( 'type' => 'global', 'name' => $this->yystack[$this->yyidx + -3]->minor->string, 'line' => $this->lex->line, 'default' => '&' . $this->yystack[$this->yyidx + 0]->minor->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, )); $this->_retvalue[] = $this->yystack[$this->yyidx + -3]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; + $this->globals[$this->yystack[$this->yyidx + -3]->minor->string][] = + array( + 'type' => 'global', + 'name' => $this->yystack[$this->yyidx + -3]->minor->string, + 'line' => $this->lex->line, + 'default' => '&' . $this->yystack[$this->yyidx + 0]->minor->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ); } else { $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . ' = &' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } } -#line 5699 "Core.php" -#line 442 "Core.y" +#line 5747 "Core.php" +#line 490 "Core.y" function yy_r69(){ $c = is_string($this->yystack[$this->yyidx + -1]->minor) ? $this->yystack[$this->yyidx + -1]->minor : $this->yystack[$this->yyidx + -1]->minor->string; if ($this->lex->globalSearch($this->yystack[$this->yyidx + -5]->minor->string)) { + list($doc, $parsed, $line) = $this->lex->getLastComment(); $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -5]->minor->string . ' = &new ' . $c . $this->yystack[$this->yyidx + 0]->minor->string, array( 'type' => 'global', 'name' => $this->yystack[$this->yyidx + -5]->minor->string, 'line' => $this->lex->line, 'default' => '&new ' . $this->yystack[$this->yyidx + -1]->minor->string . $this->yystack[$this->yyidx + 0]->minor->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, )); $this->_retvalue[] = $this->yystack[$this->yyidx + -5]->minor; + $this->globals[$this->yystack[$this->yyidx + -5]->minor->string][] = + array( + 'type' => 'global', + 'name' => $this->yystack[$this->yyidx + -5]->minor->string, + 'line' => $this->lex->line, + 'default' => '&new ' . $this->yystack[$this->yyidx + -1]->minor->string . $this->yystack[$this->yyidx + 0]->minor->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ); } else { $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -5]->minor->string . ' = &new ' . $c . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -5]->minor); } @@ -5712,8 +5768,8 @@ } $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5720 "Core.php" -#line 461 "Core.y" +#line 5785 "Core.php" +#line 526 "Core.y" function yy_r70(){ $b = is_string($this->yystack[$this->yyidx + -1]->minor) ? $this->yystack[$this->yyidx + -1]->minor : $this->yystack[$this->yyidx + -1]->minor->string; $this->_retvalue = new PHP_Parser_CoreyyToken('new ' . $b . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -1]->minor); @@ -5722,263 +5778,263 @@ $this->_retvalue[] = array('uses' => 'class', 'name' => trim($this->yystack[$this->yyidx + -1]->minor)); } } -#line 5730 "Core.php" -#line 469 "Core.y" +#line 5795 "Core.php" +#line 534 "Core.y" function yy_r71(){ $this->_retvalue = new PHP_Parser_CoreyyToken('clone ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 5735 "Core.php" -#line 472 "Core.y" +#line 5800 "Core.php" +#line 537 "Core.y" function yy_r72(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' += ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5741 "Core.php" -#line 476 "Core.y" +#line 5806 "Core.php" +#line 541 "Core.y" function yy_r73(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' -= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5747 "Core.php" -#line 481 "Core.y" +#line 5812 "Core.php" +#line 546 "Core.y" function yy_r74(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' *= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5753 "Core.php" -#line 486 "Core.y" +#line 5818 "Core.php" +#line 551 "Core.y" function yy_r75(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' /= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5759 "Core.php" -#line 491 "Core.y" +#line 5824 "Core.php" +#line 556 "Core.y" function yy_r76(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' .= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5765 "Core.php" -#line 496 "Core.y" +#line 5830 "Core.php" +#line 561 "Core.y" function yy_r77(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' %= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5771 "Core.php" -#line 501 "Core.y" +#line 5836 "Core.php" +#line 566 "Core.y" function yy_r78(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' &= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5777 "Core.php" -#line 506 "Core.y" +#line 5842 "Core.php" +#line 571 "Core.y" function yy_r79(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' |= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5783 "Core.php" -#line 511 "Core.y" +#line 5848 "Core.php" +#line 576 "Core.y" function yy_r80(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' ^= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5789 "Core.php" -#line 516 "Core.y" +#line 5854 "Core.php" +#line 581 "Core.y" function yy_r81(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' <<= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5795 "Core.php" -#line 521 "Core.y" +#line 5860 "Core.php" +#line 586 "Core.y" function yy_r82(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' >>= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5801 "Core.php" -#line 526 "Core.y" +#line 5866 "Core.php" +#line 591 "Core.y" function yy_r83(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor->string . '++', $this->yystack[$this->yyidx + -1]->minor); } -#line 5806 "Core.php" -#line 529 "Core.y" +#line 5871 "Core.php" +#line 594 "Core.y" function yy_r84(){ $this->_retvalue = new PHP_Parser_CoreyyToken('++' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 5811 "Core.php" -#line 532 "Core.y" +#line 5876 "Core.php" +#line 597 "Core.y" function yy_r85(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor->string . '--', $this->yystack[$this->yyidx + -1]->minor); } -#line 5816 "Core.php" -#line 535 "Core.y" +#line 5881 "Core.php" +#line 600 "Core.y" function yy_r86(){ $this->_retvalue = new PHP_Parser_CoreyyToken('--' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 5821 "Core.php" -#line 538 "Core.y" +#line 5886 "Core.php" +#line 603 "Core.y" function yy_r87(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' || ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5827 "Core.php" -#line 542 "Core.y" +#line 5892 "Core.php" +#line 607 "Core.y" function yy_r88(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' && ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5833 "Core.php" -#line 546 "Core.y" +#line 5898 "Core.php" +#line 611 "Core.y" function yy_r89(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' OR ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5839 "Core.php" -#line 550 "Core.y" +#line 5904 "Core.php" +#line 615 "Core.y" function yy_r90(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' AND ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5845 "Core.php" -#line 554 "Core.y" +#line 5910 "Core.php" +#line 619 "Core.y" function yy_r91(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' XOR ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5851 "Core.php" -#line 558 "Core.y" +#line 5916 "Core.php" +#line 623 "Core.y" function yy_r92(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' | ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5857 "Core.php" -#line 562 "Core.y" +#line 5922 "Core.php" +#line 627 "Core.y" function yy_r93(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' & ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5863 "Core.php" -#line 566 "Core.y" +#line 5928 "Core.php" +#line 631 "Core.y" function yy_r94(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' ^ ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5869 "Core.php" -#line 570 "Core.y" +#line 5934 "Core.php" +#line 635 "Core.y" function yy_r95(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' . ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5875 "Core.php" -#line 574 "Core.y" +#line 5940 "Core.php" +#line 639 "Core.y" function yy_r96(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' + ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5881 "Core.php" -#line 578 "Core.y" +#line 5946 "Core.php" +#line 643 "Core.y" function yy_r97(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' - ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5887 "Core.php" -#line 582 "Core.y" +#line 5952 "Core.php" +#line 647 "Core.y" function yy_r98(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' * ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5893 "Core.php" -#line 586 "Core.y" +#line 5958 "Core.php" +#line 651 "Core.y" function yy_r99(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' / ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5899 "Core.php" -#line 590 "Core.y" +#line 5964 "Core.php" +#line 655 "Core.y" function yy_r100(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' % ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5905 "Core.php" -#line 594 "Core.y" +#line 5970 "Core.php" +#line 659 "Core.y" function yy_r101(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' << ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5911 "Core.php" -#line 598 "Core.y" +#line 5976 "Core.php" +#line 663 "Core.y" function yy_r102(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' >> ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5917 "Core.php" -#line 602 "Core.y" +#line 5982 "Core.php" +#line 667 "Core.y" function yy_r103(){ $this->_retvalue = new PHP_Parser_CoreyyToken('+' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 5922 "Core.php" -#line 605 "Core.y" +#line 5987 "Core.php" +#line 670 "Core.y" function yy_r104(){ $this->_retvalue = new PHP_Parser_CoreyyToken('-' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 5927 "Core.php" -#line 608 "Core.y" +#line 5992 "Core.php" +#line 673 "Core.y" function yy_r105(){ $this->_retvalue = new PHP_Parser_CoreyyToken('!' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 5932 "Core.php" -#line 611 "Core.y" +#line 5997 "Core.php" +#line 676 "Core.y" function yy_r106(){ $this->_retvalue = new PHP_Parser_CoreyyToken('~' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 5937 "Core.php" -#line 614 "Core.y" +#line 6002 "Core.php" +#line 679 "Core.y" function yy_r107(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' === ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5943 "Core.php" -#line 618 "Core.y" +#line 6008 "Core.php" +#line 683 "Core.y" function yy_r108(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' !== ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5949 "Core.php" -#line 622 "Core.y" +#line 6014 "Core.php" +#line 687 "Core.y" function yy_r109(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' == ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5955 "Core.php" -#line 626 "Core.y" +#line 6020 "Core.php" +#line 691 "Core.y" function yy_r110(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' != ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5961 "Core.php" -#line 630 "Core.y" +#line 6026 "Core.php" +#line 695 "Core.y" function yy_r111(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' < ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5967 "Core.php" -#line 634 "Core.y" +#line 6032 "Core.php" +#line 699 "Core.y" function yy_r112(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' <= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5973 "Core.php" -#line 638 "Core.y" +#line 6038 "Core.php" +#line 703 "Core.y" function yy_r113(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' > ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5979 "Core.php" -#line 642 "Core.y" +#line 6044 "Core.php" +#line 707 "Core.y" function yy_r114(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' >= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5985 "Core.php" -#line 646 "Core.y" +#line 6050 "Core.php" +#line 711 "Core.y" function yy_r115(){ $c = is_string($this->yystack[$this->yyidx + 0]->minor) ? $this->yystack[$this->yyidx + 0]->minor : $this->yystack[$this->yyidx + 0]->minor->string; $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' instanceof ' . $c, $this->yystack[$this->yyidx + -2]->minor); @@ -5986,192 +6042,192 @@ $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } } -#line 5994 "Core.php" -#line 653 "Core.y" +#line 6059 "Core.php" +#line 718 "Core.y" function yy_r116(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -1]->minor); } -#line 5999 "Core.php" -#line 658 "Core.y" +#line 6064 "Core.php" +#line 723 "Core.y" function yy_r117(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -4]->minor->string . ' ? ' . $this->yystack[$this->yyidx + -2]->minor->string . ' : ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -4]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6006 "Core.php" -#line 664 "Core.y" +#line 6071 "Core.php" +#line 729 "Core.y" function yy_r119(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(int) ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6011 "Core.php" -#line 667 "Core.y" +#line 6076 "Core.php" +#line 732 "Core.y" function yy_r120(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(double) ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6016 "Core.php" -#line 670 "Core.y" +#line 6081 "Core.php" +#line 735 "Core.y" function yy_r121(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(string) ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6021 "Core.php" -#line 673 "Core.y" +#line 6086 "Core.php" +#line 738 "Core.y" function yy_r122(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(array) ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6026 "Core.php" -#line 676 "Core.y" +#line 6091 "Core.php" +#line 741 "Core.y" function yy_r123(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(object) ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6031 "Core.php" -#line 679 "Core.y" +#line 6096 "Core.php" +#line 744 "Core.y" function yy_r124(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(binary) ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6036 "Core.php" -#line 682 "Core.y" +#line 6101 "Core.php" +#line 747 "Core.y" function yy_r125(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(bool) ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6041 "Core.php" -#line 685 "Core.y" +#line 6106 "Core.php" +#line 750 "Core.y" function yy_r126(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(unset) ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6046 "Core.php" -#line 688 "Core.y" +#line 6111 "Core.php" +#line 753 "Core.y" function yy_r127(){ $this->_retvalue = new PHP_Parser_CoreyyToken('exit ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6051 "Core.php" -#line 691 "Core.y" +#line 6116 "Core.php" +#line 756 "Core.y" function yy_r128(){ $this->_retvalue = new PHP_Parser_CoreyyToken('@' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6056 "Core.php" -#line 694 "Core.y" +#line 6121 "Core.php" +#line 759 "Core.y" function yy_r129(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6061 "Core.php" -#line 697 "Core.y" +#line 6126 "Core.php" +#line 762 "Core.y" function yy_r130(){ $this->lex->stopTrackingWhitespace(); $this->_retvalue = new PHP_Parser_CoreyyToken('array(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -1]->minor); } -#line 6067 "Core.php" -#line 701 "Core.y" +#line 6132 "Core.php" +#line 766 "Core.y" function yy_r131(){ $this->_retvalue = new PHP_Parser_CoreyyToken('`' . $this->yystack[$this->yyidx + -1]->minor->string . '`'); } -#line 6072 "Core.php" -#line 704 "Core.y" +#line 6137 "Core.php" +#line 769 "Core.y" function yy_r132(){ $this->_retvalue = new PHP_Parser_CoreyyToken('print ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6077 "Core.php" -#line 708 "Core.y" +#line 6142 "Core.php" +#line 773 "Core.y" function yy_r133(){$this->lex->trackWhitespace(); } -#line 6080 "Core.php" -#line 710 "Core.y" +#line 6145 "Core.php" +#line 775 "Core.y" function yy_r134(){$this->_retvalue = new PHP_Parser_CoreyyToken('()'); } -#line 6083 "Core.php" -#line 711 "Core.y" +#line 6148 "Core.php" +#line 776 "Core.y" function yy_r135(){$this->_retvalue = new PHP_Parser_CoreyyToken('(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -1]->minor); } -#line 6086 "Core.php" -#line 728 "Core.y" +#line 6151 "Core.php" +#line 793 "Core.y" function yy_r141(){$this->_retvalue = '-' . $this->yystack[$this->yyidx + 0]->minor; } -#line 6089 "Core.php" -#line 729 "Core.y" +#line 6154 "Core.php" +#line 794 "Core.y" function yy_r142(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; // have to do all because of nested arrays $this->lex->stopTrackingWhitespace(); // we only need whitespace for // array default values } -#line 6097 "Core.php" -#line 737 "Core.y" +#line 6162 "Core.php" +#line 802 "Core.y" function yy_r144(){ $this->lex->trackWhitespace(); $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } -#line 6103 "Core.php" -#line 743 "Core.y" +#line 6168 "Core.php" +#line 808 "Core.y" function yy_r146(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; } -#line 6108 "Core.php" -#line 746 "Core.y" +#line 6173 "Core.php" +#line 811 "Core.y" function yy_r147(){$this->_retvalue = ''; } -#line 6111 "Core.php" -#line 748 "Core.y" +#line 6176 "Core.php" +#line 813 "Core.y" function yy_r148(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor . $this->yystack[$this->yyidx + -3]->minor . $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; } -#line 6116 "Core.php" -#line 751 "Core.y" +#line 6181 "Core.php" +#line 816 "Core.y" function yy_r149(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; } -#line 6121 "Core.php" -#line 759 "Core.y" +#line 6186 "Core.php" +#line 824 "Core.y" function yy_r152(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . '::' . $this->yystack[$this->yyidx + 0]->minor; } -#line 6126 "Core.php" -#line 763 "Core.y" +#line 6191 "Core.php" +#line 828 "Core.y" function yy_r153(){ $this->_retvalue = new PHP_Parser_CoreyyToken(' => ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6131 "Core.php" -#line 769 "Core.y" +#line 6196 "Core.php" +#line 834 "Core.y" function yy_r156(){ $this->_retvalue = new PHP_Parser_CoreyyToken('&' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6136 "Core.php" -#line 774 "Core.y" +#line 6201 "Core.php" +#line 839 "Core.y" function yy_r158(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; } -#line 6139 "Core.php" -#line 783 "Core.y" +#line 6204 "Core.php" +#line 848 "Core.y" function yy_r163(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor . ' = ' . $this->yystack[$this->yyidx + 0]->minor, array('declare' => $this->yystack[$this->yyidx + -2]->minor, 'default' => $this->yystack[$this->yyidx + 0]->minor)); } -#line 6144 "Core.php" -#line 786 "Core.y" +#line 6209 "Core.php" +#line 851 "Core.y" function yy_r164(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -4]->minor->string . ', ' . $this->yystack[$this->yyidx + -2]->minor . ' = ' . $this->yystack[$this->yyidx + 0]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + -4]->minor; $this->_retvalue[] = array('declare' => $this->yystack[$this->yyidx + -2]->minor, 'default' => $this->yystack[$this->yyidx + 0]->minor); } -#line 6151 "Core.php" -#line 797 "Core.y" +#line 6216 "Core.php" +#line 862 "Core.y" function yy_r169(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6158 "Core.php" -#line 802 "Core.y" +#line 6223 "Core.php" +#line 867 "Core.y" function yy_r170(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6164 "Core.php" -#line 813 "Core.y" +#line 6229 "Core.php" +#line 878 "Core.y" function yy_r175(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6171 "Core.php" -#line 820 "Core.y" +#line 6236 "Core.php" +#line 885 "Core.y" function yy_r177(){ $this->_retvalue = $this->yystack[$this->yyidx + -6]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + -3]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6178 "Core.php" -#line 836 "Core.y" +#line 6243 "Core.php" +#line 901 "Core.y" function yy_r185(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor, array( array( @@ -6182,8 +6238,8 @@ ) )); } -#line 6190 "Core.php" -#line 846 "Core.y" +#line 6255 "Core.php" +#line 911 "Core.y" function yy_r186(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor . '&' . $this->yystack[$this->yyidx + 0]->minor, array( array( @@ -6194,8 +6250,8 @@ ) )); } -#line 6202 "Core.php" -#line 856 "Core.y" +#line 6267 "Core.php" +#line 921 "Core.y" function yy_r187(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -4]->minor . '&' . $this->yystack[$this->yyidx + -2]->minor . ' = ' . $this->yystack[$this->yyidx + 0]->minor, array( array( @@ -6206,8 +6262,8 @@ ) )); } -#line 6214 "Core.php" -#line 866 "Core.y" +#line 6279 "Core.php" +#line 931 "Core.y" function yy_r188(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor . $this->yystack[$this->yyidx + -2]->minor . ' = ' . $this->yystack[$this->yyidx + 0]->minor, array( array( @@ -6218,8 +6274,8 @@ ) )); } -#line 6226 "Core.php" -#line 876 "Core.y" +#line 6291 "Core.php" +#line 941 "Core.y" function yy_r189(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . ', ' . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor, $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = @@ -6230,8 +6286,8 @@ 'default' => null, ); } -#line 6238 "Core.php" -#line 886 "Core.y" +#line 6303 "Core.php" +#line 951 "Core.y" function yy_r190(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -4]->minor->string . ', ' . $this->yystack[$this->yyidx + -2]->minor . '&' . $this->yystack[$this->yyidx + 0]->minor, $this->yystack[$this->yyidx + -4]->minor); $this->_retvalue[] = @@ -6242,8 +6298,8 @@ 'default' => null, ); } -#line 6250 "Core.php" -#line 896 "Core.y" +#line 6315 "Core.php" +#line 961 "Core.y" function yy_r191(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -6]->minor->string . ', ' . $this->yystack[$this->yyidx + -4]->minor . $this->yystack[$this->yyidx + -2]->minor . ' = ' . $this->yystack[$this->yyidx + 0]->minor, $this->yystack[$this->yyidx + -6]->minor); $this->_retvalue[] = @@ -6254,8 +6310,8 @@ 'default' => $this->yystack[$this->yyidx + 0]->minor, ); } -#line 6262 "Core.php" -#line 906 "Core.y" +#line 6327 "Core.php" +#line 971 "Core.y" function yy_r192(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -5]->minor->string . ', ' . $this->yystack[$this->yyidx + -3]->minor . $this->yystack[$this->yyidx + -2]->minor . ' = ' . $this->yystack[$this->yyidx + 0]->minor, $this->yystack[$this->yyidx + -5]->minor); $this->_retvalue[] = @@ -6266,11 +6322,11 @@ 'default' => $this->yystack[$this->yyidx + 0]->minor, ); } -#line 6274 "Core.php" -#line 924 "Core.y" +#line 6339 "Core.php" +#line 989 "Core.y" function yy_r197(){$this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + 0]->minor); } -#line 6277 "Core.php" -#line 926 "Core.y" +#line 6342 "Core.php" +#line 991 "Core.y" function yy_r199(){ if ($this->yystack[$this->yyidx + 0]->minor instanceof PHP_Parser_CoreyyToken) { $b = $this->yystack[$this->yyidx + 0]->minor->string; @@ -6278,8 +6334,8 @@ $b = (string) $this->yystack[$this->yyidx + 0]->minor; } $this->_retvalue = new PHP_Parser_CoreyyToken('&' . $b, $this->yystack[$this->yyidx + 0]->minor); } -#line 6286 "Core.php" -#line 933 "Core.y" +#line 6351 "Core.php" +#line 998 "Core.y" function yy_r200(){ if ($this->yystack[$this->yyidx + 0]->minor instanceof PHP_Parser_CoreyyToken) { $b = $this->yystack[$this->yyidx + 0]->minor->string; @@ -6289,8 +6345,8 @@ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ', ' . $b, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6297 "Core.php" -#line 951 "Core.y" +#line 6362 "Core.php" +#line 1016 "Core.y" function yy_r202(){ if ($this->yystack[$this->yyidx + 0]->minor instanceof PHP_Parser_CoreyyToken) { $b = $this->yystack[$this->yyidx + 0]->minor->string; @@ -6300,49 +6356,49 @@ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . ', &' . $b, $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6308 "Core.php" -#line 961 "Core.y" +#line 6373 "Core.php" +#line 1026 "Core.y" function yy_r203(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6314 "Core.php" -#line 967 "Core.y" +#line 6379 "Core.php" +#line 1032 "Core.y" function yy_r205(){$this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + 0]->minor, array('global' => $this->yystack[$this->yyidx + 0]->minor)); } -#line 6317 "Core.php" -#line 968 "Core.y" +#line 6382 "Core.php" +#line 1033 "Core.y" function yy_r206(){$this->_retvalue = new PHP_Parser_CoreyyToken('$' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6320 "Core.php" -#line 969 "Core.y" +#line 6385 "Core.php" +#line 1034 "Core.y" function yy_r207(){ $this->_retvalue = new PHP_Parser_CoreyyToken('${' . $this->yystack[$this->yyidx + -1]->minor->string . '}', $this->yystack[$this->yyidx + -1]->minor); } -#line 6325 "Core.php" -#line 974 "Core.y" +#line 6390 "Core.php" +#line 1039 "Core.y" function yy_r208(){ $this->_retvalue = new PHP_Parser_CoreyyToken(''); $this->_retvalue[] = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = array('static' => $this->yystack[$this->yyidx + 0]->minor, 'default' => null); } -#line 6332 "Core.php" -#line 979 "Core.y" +#line 6397 "Core.php" +#line 1044 "Core.y" function yy_r209(){ $this->_retvalue = new PHP_Parser_CoreyyToken(''); $this->_retvalue[] = $this->yystack[$this->yyidx + -4]->minor; $this->_retvalue[] = array('static' => $this->yystack[$this->yyidx + -2]->minor, 'default' => $this->yystack[$this->yyidx + 0]->minor); } -#line 6339 "Core.php" -#line 984 "Core.y" +#line 6404 "Core.php" +#line 1049 "Core.y" function yy_r210(){ $this->_retvalue = new PHP_Parser_CoreyyToken('', array('static' => $this->yystack[$this->yyidx + 0]->minor, 'default' => null)); } -#line 6344 "Core.php" -#line 987 "Core.y" +#line 6409 "Core.php" +#line 1052 "Core.y" function yy_r211(){ $this->_retvalue = new PHP_Parser_CoreyyToken('', array('static' => $this->yystack[$this->yyidx + -2]->minor, 'default' => $this->yystack[$this->yyidx + 0]->minor)); } -#line 6349 "Core.php" -#line 997 "Core.y" +#line 6414 "Core.php" +#line 1062 "Core.y" function yy_r214(){ $a = array(); foreach ($this->yystack[$this->yyidx + -1]->minor as $item) { @@ -6352,12 +6408,15 @@ 'line' => $item['line'], 'default' => $item['default'], 'modifiers' => $this->yystack[$this->yyidx + -2]->minor, + 'doc' => $item['doc'], + 'parseddoc' => $item['parseddoc'], + 'docline' => $item['docline'], ); } $this->_retvalue = new PHP_Parser_CoreyyToken('', $a); } -#line 6364 "Core.php" -#line 1010 "Core.y" +#line 6432 "Core.php" +#line 1078 "Core.y" function yy_r215(){ $a = array(); foreach ($this->yystack[$this->yyidx + -1]->minor as $item) { @@ -6366,109 +6425,153 @@ 'name' => $item['name'], 'line' => $item['line'], 'value' => $item['value'], + 'doc' => $item['doc'], + 'parseddoc' => $item['parseddoc'], + 'docline' => $item['docline'], ); } $this->_retvalue = new PHP_Parser_CoreyyToken('', $a); } -#line 6378 "Core.php" -#line 1023 "Core.y" +#line 6449 "Core.php" +#line 1093 "Core.y" + function yy_r216(){ + $this->_retvalue = array($this->lex->line, $lastcom); + } +#line 6454 "Core.php" +#line 1096 "Core.y" function yy_r217(){ + list($doc, $parsed, $line) = $this->yystack[$this->yyidx + -6]->minor[1]; $this->_retvalue = new PHP_Parser_CoreyyToken('', array( array( 'type' => 'method', 'name' => $this->yystack[$this->yyidx + -4]->minor, - 'startline' => $this->yystack[$this->yyidx + -6]->minor, + 'startline' => $this->yystack[$this->yyidx + -6]->minor[0], 'endline' => $this->lex->line, 'parameters' => $this->yystack[$this->yyidx + -2]->minor->metadata, 'modifiers' => $this->yystack[$this->yyidx + -7]->minor, - 'info' => $this->yystack[$this->yyidx + 0]->minor->metadata + 'info' => $this->yystack[$this->yyidx + 0]->minor->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ) )); } -#line 6393 "Core.php" -#line 1039 "Core.y" +#line 6473 "Core.php" +#line 1116 "Core.y" function yy_r219(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; } -#line 6398 "Core.php" -#line 1044 "Core.y" +#line 6478 "Core.php" +#line 1121 "Core.y" function yy_r221(){$this->_retvalue = array('public'); } -#line 6401 "Core.php" -#line 1049 "Core.y" +#line 6481 "Core.php" +#line 1126 "Core.y" function yy_r224(){$this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); } -#line 6404 "Core.php" -#line 1055 "Core.y" +#line 6484 "Core.php" +#line 1132 "Core.y" function yy_r226(){$this->_retvalue = strtolower($this->yystack[$this->yyidx + 0]->minor); } -#line 6407 "Core.php" -#line 1057 "Core.y" +#line 6487 "Core.php" +#line 1134 "Core.y" function yy_r227(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor, $this->lex->line); } -#line 6412 "Core.php" -#line 1061 "Core.y" +#line 6492 "Core.php" +#line 1138 "Core.y" function yy_r228(){ + list($doc, $parsed, $line) = $this->lex->getLastComment(); $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = array( 'name' => $this->yystack[$this->yyidx + 0]->minor[0], 'default' => null, 'line' => $this->yystack[$this->yyidx + 0]->minor[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -#line 6422 "Core.php" -#line 1069 "Core.y" +#line 6506 "Core.php" +#line 1150 "Core.y" function yy_r229(){ + list($doc, $parsed, $line) = $this->lex->getLastComment(); $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor; $this->_retvalue[] = array( 'name' => $this->yystack[$this->yyidx + -2]->minor[0], 'default' => $this->yystack[$this->yyidx + 0]->minor, - 'line' => $this->yystack[$this->yyidx + -2]->minor[1] + 'line' => $this->yystack[$this->yyidx + -2]->minor[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -#line 6432 "Core.php" -#line 1077 "Core.y" +#line 6520 "Core.php" +#line 1162 "Core.y" function yy_r230(){ + list($doc, $parsed, $line) = $this->lex->getLastComment(); $this->_retvalue = array( array( 'name' => $this->yystack[$this->yyidx + 0]->minor, 'default' => null, 'line' => $this->lex->line, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ) ); } -#line 6443 "Core.php" -#line 1086 "Core.y" +#line 6535 "Core.php" +#line 1175 "Core.y" function yy_r231(){ + list($doc, $parsed, $line) = $this->lex->getLastComment(); $this->_retvalue = array( array( 'name' => $this->yystack[$this->yyidx + -2]->minor[0], 'default' => $this->yystack[$this->yyidx + 0]->minor, 'line' => $this->yystack[$this->yyidx + -2]->minor[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ) ); } -#line 6454 "Core.php" -#line 1100 "Core.y" +#line 6550 "Core.php" +#line 1189 "Core.y" + function yy_r232(){ + $doc = $this->lex->getLastComment(); + $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor, $this->lex->line, $doc); + } +#line 6556 "Core.php" +#line 1194 "Core.y" function yy_r233(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor; - $this->_retvalue[] = array('name' => $this->yystack[$this->yyidx + -2]->minor[0], 'value' => $this->yystack[$this->yyidx + 0]->minor, 'line' => $this->yystack[$this->yyidx + -2]->minor[1]); + list($doc, $parsed, $line) = $this->yystack[$this->yyidx + -2]->minor[2]; + $this->_retvalue[] = array('name' => $this->yystack[$this->yyidx + -2]->minor[0], 'value' => $this->yystack[$this->yyidx + 0]->minor, 'line' => $this->yystack[$this->yyidx + -2]->minor[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ); } -#line 6460 "Core.php" -#line 1104 "Core.y" +#line 6567 "Core.php" +#line 1203 "Core.y" function yy_r234(){ + list($doc, $parsed, $line) = $this->yystack[$this->yyidx + -2]->minor[2]; $this->_retvalue = array( - array('name' => $this->yystack[$this->yyidx + -2]->minor[0], 'value' => $this->yystack[$this->yyidx + 0]->minor, 'line' => $this->yystack[$this->yyidx + -2]->minor[1]) + array('name' => $this->yystack[$this->yyidx + -2]->minor[0], 'value' => $this->yystack[$this->yyidx + 0]->minor, 'line' => $this->yystack[$this->yyidx + -2]->minor[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ) ); } -#line 6467 "Core.php" -#line 1110 "Core.y" +#line 6579 "Core.php" +#line 1214 "Core.y" function yy_r235(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor;$this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6470 "Core.php" -#line 1122 "Core.y" +#line 6582 "Core.php" +#line 1226 "Core.y" function yy_r241(){ $this->_retvalue = '(' . $this->yystack[$this->yyidx + -1]->minor . ')'; } -#line 6475 "Core.php" -#line 1132 "Core.y" +#line 6587 "Core.php" +#line 1236 "Core.y" function yy_r245(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -4]->minor->string . '->' . $this->yystack[$this->yyidx + -2]->minor->string . $this->yystack[$this->yyidx + -1]->minor->string . $this->yystack[$this->yyidx + 0]->minor->string, array()); @@ -6490,24 +6593,24 @@ } $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6498 "Core.php" -#line 1158 "Core.y" +#line 6610 "Core.php" +#line 1262 "Core.y" function yy_r249(){ $this->_retvalue = new PHP_Parser_CoreyyToken('->' . $this->yystack[$this->yyidx + -1]->minor->string . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -1]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6504 "Core.php" -#line 1163 "Core.y" +#line 6616 "Core.php" +#line 1267 "Core.y" function yy_r250(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(' . $this->yystack[$this->yyidx + -1]->minor . ')', $this->yystack[$this->yyidx + -1]->minor); } -#line 6509 "Core.php" -#line 1169 "Core.y" +#line 6621 "Core.php" +#line 1273 "Core.y" function yy_r253(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6514 "Core.php" -#line 1173 "Core.y" +#line 6626 "Core.php" +#line 1277 "Core.y" function yy_r254(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor . '::' . $this->yystack[$this->yyidx + 0]->minor->string, array( array( @@ -6516,232 +6619,266 @@ )); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6524 "Core.php" -#line 1191 "Core.y" +#line 6636 "Core.php" +#line 1295 "Core.y" function yy_r260(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . '[' . $this->yystack[$this->yyidx + -1]->minor->string . ']', array()); $this->_retvalue[] = $this->yystack[$this->yyidx + -3]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + -1]->minor; } -#line 6531 "Core.php" -#line 1196 "Core.y" +#line 6643 "Core.php" +#line 1300 "Core.y" function yy_r261(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . '{' . $this->yystack[$this->yyidx + -1]->minor->string . '}', array()); $this->_retvalue[] = $this->yystack[$this->yyidx + -3]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + -1]->minor; } -#line 6538 "Core.php" -#line 1204 "Core.y" +#line 6650 "Core.php" +#line 1308 "Core.y" function yy_r264(){$this->_retvalue = new PHP_Parser_CoreyyToken('${' . $this->yystack[$this->yyidx + -1]->minor->string . '}', $this->yystack[$this->yyidx + -1]->minor); } -#line 6541 "Core.php" -#line 1212 "Core.y" +#line 6653 "Core.php" +#line 1316 "Core.y" function yy_r269(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . '[' . $this->yystack[$this->yyidx + -1]->minor->string . ']', $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + -1]->minor; } -#line 6547 "Core.php" -#line 1216 "Core.y" +#line 6659 "Core.php" +#line 1320 "Core.y" function yy_r270(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . '{' . $this->yystack[$this->yyidx + -1]->minor->string . '}', $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + -1]->minor; } -#line 6553 "Core.php" -#line 1223 "Core.y" +#line 6665 "Core.php" +#line 1327 "Core.y" function yy_r273(){$this->_retvalue = new PHP_Parser_CoreyyToken('{' . $this->yystack[$this->yyidx + -1]->minor->string . '}', $this->yystack[$this->yyidx + -1]->minor); } -#line 6556 "Core.php" -#line 1225 "Core.y" +#line 6668 "Core.php" +#line 1329 "Core.y" function yy_r274(){$this->_retvalue = '$'; } -#line 6559 "Core.php" -#line 1226 "Core.y" +#line 6671 "Core.php" +#line 1330 "Core.y" function yy_r275(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor . '$'; } -#line 6562 "Core.php" -#line 1228 "Core.y" +#line 6674 "Core.php" +#line 1332 "Core.y" function yy_r276(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ', ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6568 "Core.php" -#line 1235 "Core.y" +#line 6680 "Core.php" +#line 1339 "Core.y" function yy_r279(){ $this->_retvalue = new PHP_Parser_CoreyyToken('list(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -1]->minor); } -#line 6573 "Core.php" -#line 1240 "Core.y" +#line 6685 "Core.php" +#line 1344 "Core.y" function yy_r281(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor->string . $this->yystack[$this->yyidx + 0]->minor, $this->yystack[$this->yyidx + -1]->minor); } -#line 6578 "Core.php" -#line 1245 "Core.y" +#line 6690 "Core.php" +#line 1349 "Core.y" function yy_r283(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . ' => &' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6584 "Core.php" -#line 1253 "Core.y" +#line 6696 "Core.php" +#line 1357 "Core.y" function yy_r286(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -4]->minor->string . ', ' . $this->yystack[$this->yyidx + -2]->minor->string . ' => ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -4]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6591 "Core.php" -#line 1262 "Core.y" +#line 6703 "Core.php" +#line 1366 "Core.y" function yy_r288(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' => ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6597 "Core.php" -#line 1266 "Core.y" +#line 6709 "Core.php" +#line 1370 "Core.y" function yy_r289(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -5]->minor->string . ', ' . $this->yystack[$this->yyidx + -3]->minor->string . ' => &' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -5]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + -3]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6604 "Core.php" -#line 1271 "Core.y" +#line 6716 "Core.php" +#line 1375 "Core.y" function yy_r290(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . ', &' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6610 "Core.php" -#line 1277 "Core.y" +#line 6722 "Core.php" +#line 1381 "Core.y" function yy_r291(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor->string . $this->yystack[$this->yyidx + 0]->minor, $this->yystack[$this->yyidx + -1]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6616 "Core.php" -#line 1296 "Core.y" +#line 6728 "Core.php" +#line 1400 "Core.y" function yy_r297(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor->string . '[', $this->yystack[$this->yyidx + -1]->minor); } -#line 6621 "Core.php" -#line 1299 "Core.y" +#line 6733 "Core.php" +#line 1403 "Core.y" function yy_r298(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor->string . ']', $this->yystack[$this->yyidx + -1]->minor); } -#line 6626 "Core.php" -#line 1302 "Core.y" +#line 6738 "Core.php" +#line 1406 "Core.y" function yy_r299(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor->string . '{', $this->yystack[$this->yyidx + -1]->minor); } -#line 6631 "Core.php" -#line 1305 "Core.y" +#line 6743 "Core.php" +#line 1409 "Core.y" function yy_r300(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor->string . '}', $this->yystack[$this->yyidx + -1]->minor); } -#line 6636 "Core.php" -#line 1308 "Core.y" +#line 6748 "Core.php" +#line 1412 "Core.y" function yy_r301(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor->string . '->', $this->yystack[$this->yyidx + -1]->minor); } -#line 6641 "Core.php" -#line 1314 "Core.y" +#line 6753 "Core.php" +#line 1418 "Core.y" function yy_r304(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor . '[' . $this->yystack[$this->yyidx + -1]->minor . ']'); } -#line 6646 "Core.php" -#line 1317 "Core.y" +#line 6758 "Core.php" +#line 1421 "Core.y" function yy_r305(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor . '->' . $this->yystack[$this->yyidx + 0]->minor); } -#line 6651 "Core.php" -#line 1323 "Core.y" +#line 6763 "Core.php" +#line 1427 "Core.y" function yy_r307(){ $this->_retvalue = new PHP_Parser_CoreyyToken('${' . $this->yystack[$this->yyidx + -4]->minor . '[' . $this->yystack[$this->yyidx + -2]->minor->string . ']}', $this->yystack[$this->yyidx + -2]->minor); } -#line 6656 "Core.php" -#line 1326 "Core.y" +#line 6768 "Core.php" +#line 1430 "Core.y" function yy_r308(){ $this->_retvalue = new PHP_Parser_CoreyyToken('{' . $this->yystack[$this->yyidx + -1]->minor->string, '}', $this->yystack[$this->yyidx + -1]->minor); } -#line 6661 "Core.php" -#line 1330 "Core.y" +#line 6773 "Core.php" +#line 1434 "Core.y" function yy_r309(){ $this->_retvalue = new PHP_Parser_CoreyyToken('isset(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -1]->minor); } -#line 6666 "Core.php" -#line 1333 "Core.y" +#line 6778 "Core.php" +#line 1437 "Core.y" function yy_r310(){ $this->_retvalue = new PHP_Parser_CoreyyToken('empty(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -1]->minor); } -#line 6671 "Core.php" -#line 1336 "Core.y" - function yy_r311(){$this->_retvalue=$this->lex->line; } -#line 6674 "Core.php" -#line 1337 "Core.y" +#line 6783 "Core.php" +#line 1440 "Core.y" + function yy_r311(){$this->_retvalue=array($this->lex->line, $this->lex->getLastComment()); } +#line 6786 "Core.php" +#line 1441 "Core.y" function yy_r312(){ $this->_retvalue = new PHP_Parser_CoreyyToken('include ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); + list($doc, $parsed, $line) = $this->yystack[$this->yyidx + -1]->minor[1]; $this->_retvalue[] = array( 'type' => 'include', 'file' => $this->yystack[$this->yyidx + 0]->minor->string, - 'line' => $this->yystack[$this->yyidx + -1]->minor, + 'line' => $this->yystack[$this->yyidx + -1]->minor[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->includes[] = array( 'type' => 'include', 'file' => $this->yystack[$this->yyidx + 0]->minor->string, - 'line' => $this->yystack[$this->yyidx + -1]->minor, + 'line' => $this->yystack[$this->yyidx + -1]->minor[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -#line 6689 "Core.php" -#line 1351 "Core.y" +#line 6808 "Core.php" +#line 1461 "Core.y" + function yy_r313(){$this->_retvalue=$this->lex->line; } +#line 6811 "Core.php" +#line 1462 "Core.y" function yy_r314(){ $this->_retvalue = new PHP_Parser_CoreyyToken('include_once ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); + list($doc, $parsed, $line) = $this->yystack[$this->yyidx + -1]->minor[1]; $this->_retvalue[] = array( 'type' => 'include_once', 'file' => $this->yystack[$this->yyidx + 0]->minor->string, - 'line' => $this->yystack[$this->yyidx + -1]->minor, + 'line' => $this->yystack[$this->yyidx + -1]->minor[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->includes[] = array( 'type' => 'include_once', 'file' => $this->yystack[$this->yyidx + 0]->minor->string, - 'line' => $this->yystack[$this->yyidx + -1]->minor, + 'line' => $this->yystack[$this->yyidx + -1]->minor[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -#line 6704 "Core.php" -#line 1364 "Core.y" +#line 6833 "Core.php" +#line 1482 "Core.y" function yy_r315(){ $this->_retvalue = new PHP_Parser_CoreyyToken('eval ' . $this->yystack[$this->yyidx + -1]->minor->string, $this->yystack[$this->yyidx + -1]->minor); } -#line 6709 "Core.php" -#line 1368 "Core.y" +#line 6838 "Core.php" +#line 1486 "Core.y" function yy_r317(){ + list($doc, $parsed, $line) = $this->yystack[$this->yyidx + -1]->minor[1]; $this->_retvalue = new PHP_Parser_CoreyyToken('require ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); $this->_retvalue[] = array( 'type' => 'require', 'file' => $this->yystack[$this->yyidx + 0]->minor->string, - 'line' => $this->yystack[$this->yyidx + -1]->minor, + 'line' => $this->yystack[$this->yyidx + -1]->minor[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->includes[] = array( 'type' => 'require', 'file' => $this->yystack[$this->yyidx + 0]->minor->string, - 'line' => $this->yystack[$this->yyidx + -1]->minor, + 'line' => $this->yystack[$this->yyidx + -1]->minor[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -#line 6724 "Core.php" -#line 1382 "Core.y" +#line 6860 "Core.php" +#line 1506 "Core.y" + function yy_r318(){$this->_retvalue=array($this->lex->line,$this->lex->getLastComment()); } +#line 6863 "Core.php" +#line 1507 "Core.y" function yy_r319(){ + list($doc, $parsed, $line) = $this->yystack[$this->yyidx + -1]->minor[1]; $this->_retvalue = new PHP_Parser_CoreyyToken('require_once ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); $this->_retvalue[] = array( 'type' => 'require_once', 'file' => $this->yystack[$this->yyidx + 0]->minor->string, - 'line' => $this->yystack[$this->yyidx + -1]->minor, + 'line' => $this->yystack[$this->yyidx + -1]->minor[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->includes[] = array( 'type' => 'require_once', 'file' => $this->yystack[$this->yyidx + 0]->minor->string, - 'line' => $this->yystack[$this->yyidx + -1]->minor, + 'line' => $this->yystack[$this->yyidx + -1]->minor[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -#line 6739 "Core.php" -#line 1402 "Core.y" +#line 6885 "Core.php" +#line 1534 "Core.y" function yy_r322(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor . '::' . $this->yystack[$this->yyidx + 0]->minor, array('usedclass' => $this->yystack[$this->yyidx + -2]->minor)); $this->_retvalue[] = array('usedclassconstant' => $this->yystack[$this->yyidx + -2]->minor . '::' . $this->yystack[$this->yyidx + 0]->minor); } -#line 6745 "Core.php" -#line 1409 "Core.y" +#line 6891 "Core.php" +#line 1541 "Core.y" function yy_r324(){$this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor . '(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -1]->minor); } -#line 6748 "Core.php" -#line 1410 "Core.y" +#line 6894 "Core.php" +#line 1542 "Core.y" function yy_r325(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -5]->minor . '::' . $this->yystack[$this->yyidx + -3]->minor . '(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -1]->minor); @@ -6755,8 +6892,8 @@ 'name' => trim($this->yystack[$this->yyidx + -3]->minor), ); } -#line 6763 "Core.php" -#line 1423 "Core.y" +#line 6909 "Core.php" +#line 1555 "Core.y" function yy_r326(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -5]->minor . '::' . $this->yystack[$this->yyidx + -3]->minor->string . '(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + -1]->minor; @@ -6765,55 +6902,55 @@ 'name' => trim($this->yystack[$this->yyidx + -5]->minor), ); } -#line 6773 "Core.php" -#line 1431 "Core.y" +#line 6919 "Core.php" +#line 1563 "Core.y" function yy_r327(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . '(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + -1]->minor; } -#line 6779 "Core.php" -#line 1440 "Core.y" +#line 6925 "Core.php" +#line 1572 "Core.y" function yy_r332(){ $this->_retvalue = new PHP_Parser_CoreyyToken('"' . $this->yystack[$this->yyidx + -1]->minor->string . '"', $this->yystack[$this->yyidx + -1]->minor); } -#line 6784 "Core.php" -#line 1443 "Core.y" +#line 6930 "Core.php" +#line 1575 "Core.y" function yy_r333(){ $this->_retvalue = new PHP_Parser_CoreyyToken("'" . $this->yystack[$this->yyidx + -1]->minor->string . "'", $this->yystack[$this->yyidx + -1]->minor); } -#line 6789 "Core.php" -#line 1446 "Core.y" +#line 6935 "Core.php" +#line 1578 "Core.y" function yy_r334(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . $this->yystack[$this->yyidx + -1]->minor->string . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -1]->minor); } -#line 6794 "Core.php" -#line 1453 "Core.y" +#line 6940 "Core.php" +#line 1585 "Core.y" function yy_r337(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . '->' . $this->yystack[$this->yyidx + -1]->minor->string . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = array('usedmember' => array($this->yystack[$this->yyidx + -3]->minor->string, $this->yystack[$this->yyidx + -1]->minor->string)); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6801 "Core.php" -#line 1460 "Core.y" +#line 6947 "Core.php" +#line 1592 "Core.y" function yy_r339(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; $this->yystack[$this->yyidx + -1]->minor[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6807 "Core.php" -#line 1466 "Core.y" +#line 6953 "Core.php" +#line 1598 "Core.y" function yy_r341(){ $this->_retvalue = new PHP_Parser_CoreyyToken('->' . $this->yystack[$this->yyidx + 0]->minor->string, array('usedmember' => $this->yystack[$this->yyidx + 0]->minor->string)); } -#line 6812 "Core.php" -#line 1475 "Core.y" +#line 6958 "Core.php" +#line 1607 "Core.y" function yy_r344(){$this->_retvalue = ','; } -#line 6815 "Core.php" -#line 1487 "Core.y" +#line 6961 "Core.php" +#line 1619 "Core.y" function yy_r350(){$this->_retvalue = true; } -#line 6818 "Core.php" -#line 1488 "Core.y" +#line 6964 "Core.php" +#line 1620 "Core.y" function yy_r351(){$this->_retvalue = false; } -#line 6821 "Core.php" +#line 6967 "Core.php" /** * placeholder for the left hand side in a reduce operation. @@ -6942,7 +7079,7 @@ } throw new Exception('Unexpected ' . $this->tokenName($yymajor) . '(' . $TOKEN . '), expected one of: ' . implode(',', $expect)); -#line 6951 "Core.php" +#line 7097 "Core.php" } /** @@ -6962,7 +7099,7 @@ ** parser accepts */ #line 120 "Core.y" -#line 6972 "Core.php" +#line 7118 "Core.php" } /** http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/Parser/Core.y?r1=1.4&r2=1.5&diff_format=u Index: pear/PHP_Parser/Parser/Core.y diff -u pear/PHP_Parser/Parser/Core.y:1.4 pear/PHP_Parser/Parser/Core.y:1.5 --- pear/PHP_Parser/Parser/Core.y:1.4 Sun Mar 4 17:15:46 2007 +++ pear/PHP_Parser/Parser/Core.y Mon Mar 5 05:05:50 2007 @@ -161,14 +161,14 @@ A[] = C; } unticked_statement(A) ::= T_FOR - LPAREN - for_expr(B) - SEMI - for_expr(C) - SEMI - for_expr(D) - RPAREN - for_statement(E). { + LPAREN + for_expr(B) + SEMI + for_expr(C) + SEMI + for_expr(D) + RPAREN + for_statement(E). { A = new PHP_Parser_CoreyyToken(''); A[] = B; A[] = C; @@ -211,14 +211,14 @@ A = new PHP_Parser_CoreyyToken('', B); } unticked_statement(A) ::= T_FOREACH LPAREN variable(B) T_AS - foreach_variable foreach_optional_arg RPAREN - foreach_statement(C). { + foreach_variable foreach_optional_arg RPAREN + foreach_statement(C). { A = new PHP_Parser_CoreyyToken('', B); A[] = C; } unticked_statement(A) ::= T_FOREACH LPAREN expr_without_variable(B) T_AS - variable foreach_optional_arg RPAREN - foreach_statement(C). { + variable foreach_optional_arg RPAREN + foreach_statement(C). { A = new PHP_Parser_CoreyyToken('', B); A[] = C; } @@ -228,11 +228,11 @@ } unticked_statement ::= SEMI. unticked_statement(A) ::= T_TRY LCURLY inner_statement_list(B) RCURLY - T_CATCH LPAREN - fully_qualified_class_name(C) - T_VARIABLE RPAREN - LCURLY inner_statement_list(D) RCURLY - additional_catches(E). { + T_CATCH LPAREN + fully_qualified_class_name(C) + T_VARIABLE RPAREN + LCURLY inner_statement_list(D) RCURLY + additional_catches(E). { A = new PHP_Parser_CoreyyToken(''); A[] = array('catches' => C); A[] = B; @@ -293,10 +293,11 @@ get_func_line(A) ::= T_FUNCTION. {A = $this->lex->line;} unticked_function_declaration_statement(A) ::= - get_func_line(LINE) is_reference(ref) T_STRING(funcname) LPAREN parameter_list(params) RPAREN - LCURLY inner_statement_list(funcinfo) RCURLY. { - A = new PHP_Parser_CoreyyToken('function ' . (ref ? '&' : '') . - funcname . '(' . params->string . ')'); + get_func_line(LINE) is_reference(ref) T_STRING(funcname) LPAREN parameter_list(params) RPAREN + LCURLY inner_statement_list(funcinfo) RCURLY. { + A = new PHP_Parser_CoreyyToken('function ' . (ref ? '&' : '') . + funcname . '(' . params->string . ')'); + list($doc, $parsed, $line) = $this->lex->getLastComment(); A[] = array( 'type' => 'function', 'startline' => LINE, @@ -305,6 +306,9 @@ 'name' => funcname, 'parameters' => params->metadata, 'info' => funcinfo->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->functions[funcname][] = array( 'type' => 'function', @@ -314,57 +318,74 @@ 'name' => funcname, 'parameters' => params->metadata, 'info' => funcinfo->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } unticked_class_declaration_statement(A) ::= - class_entry_type(classtype) T_STRING(C) extends_from(ext) - implements_list(impl) - LCURLY - class_statement_list(cinfo) - RCURLY. { - A = new PHP_Parser_CoreyyToken('', array( - 'type' => classtype['type'], + class_entry_type(classtype) T_STRING(C) extends_from(ext) + implements_list(impl) + LCURLY + class_statement_list(cinfo) + RCURLY. { + list($doc, $parsed, $line) = $this->lex->getLastComment(); + A = new PHP_Parser_CoreyyToken('', array( + 'type' => classtype['type'], 'startline' => classtype['line'], 'endline' => $this->lex->line, - 'modifiers' => classtype['modifiers'], - 'name' => C, - 'extends' => ext->metadata, - 'implements' => impl->metadata, - 'info' => cinfo->metadata, - )); - $this->classes[C][] = array( - 'type' => classtype['type'], + 'modifiers' => classtype['modifiers'], + 'name' => C, + 'extends' => ext->metadata, + 'implements' => impl->metadata, + 'info' => cinfo->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + )); + $this->classes[C][] = array( + 'type' => classtype['type'], 'startline' => classtype['line'], 'endline' => $this->lex->line, - 'modifiers' => classtype['modifiers'], - 'name' => C, - 'extends' => ext->metadata, - 'implements' => impl->metadata, - 'info' => cinfo->metadata, - ); + 'modifiers' => classtype['modifiers'], + 'name' => C, + 'extends' => ext->metadata, + 'implements' => impl->metadata, + 'info' => cinfo->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ); } unticked_class_declaration_statement(A) ::= - interface_entry(LINE) T_STRING(B) - interface_extends_list(C) - LCURLY - class_statement_list(D) - RCURLY. { + interface_entry(LINE) T_STRING(B) + interface_extends_list(C) + LCURLY + class_statement_list(D) + RCURLY. { + list($doc, $parsed, $line) = $this->lex->getLastComment(); A = new PHP_Parser_CoreyyToken('', array( - 'type' => 'interface', + 'type' => 'interface', 'startline' => LINE, 'endline' => $this->lex->line, - 'name' => B, - 'extends' => C->metadata, - 'info' => D->metadata, + 'name' => B, + 'extends' => C->metadata, + 'info' => D->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, )); $this->interfaces[B][] = array( - 'type' => 'interface', + 'type' => 'interface', 'startline' => LINE, 'endline' => $this->lex->line, - 'name' => B, - 'extends' => C->metadata, - 'info' => D->metadata, + 'name' => B, + 'extends' => C->metadata, + 'info' => D->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } @@ -402,12 +423,16 @@ } expr_without_variable(A) ::= variable(VAR) EQUALS expr(E). { if ($this->lex->globalSearch(VAR->string)) { + list($doc, $parsed, $line) = $this->lex->getLastComment(); A = new PHP_Parser_CoreyyToken(VAR->string . ' = ' . E->string, array( 'type' => 'global', 'name' => VAR->string, 'line' => $this->lex->line, 'default' => E->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, )); A[] = VAR; A[] = E; @@ -416,6 +441,9 @@ 'name' => VAR->string, 'line' => $this->lex->line, 'default' => E->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } else { A = new PHP_Parser_CoreyyToken(VAR->string . ' = ' . E->string, VAR); @@ -424,15 +452,29 @@ } expr_without_variable(A) ::= variable(VAR) EQUALS AMPERSAND variable(E).{ if ($this->lex->globalSearch(VAR->string)) { + list($doc, $parsed, $line) = $this->lex->getLastComment(); A = new PHP_Parser_CoreyyToken(VAR->string . ' = ' . E->string, array( 'type' => 'global', 'name' => VAR->string, 'line' => $this->lex->line, 'default' => '&' . E->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, )); A[] = VAR; A[] = E; + $this->globals[VAR->string][] = + array( + 'type' => 'global', + 'name' => VAR->string, + 'line' => $this->lex->line, + 'default' => '&' . E->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ); } else { A = new PHP_Parser_CoreyyToken(VAR->string . ' = &' . E->string, VAR); A[] = E; @@ -442,14 +484,28 @@ expr_without_variable(A) ::= variable(VAR) EQUALS AMPERSAND T_NEW class_name_reference(CL) ctor_arguments(ARGS). { $c = is_string(CL) ? CL : CL->string; if ($this->lex->globalSearch(VAR->string)) { + list($doc, $parsed, $line) = $this->lex->getLastComment(); A = new PHP_Parser_CoreyyToken(VAR->string . ' = &new ' . $c . ARGS->string, array( 'type' => 'global', 'name' => VAR->string, 'line' => $this->lex->line, 'default' => '&new ' . CL->string . ARGS->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, )); A[] = VAR; + $this->globals[VAR->string][] = + array( + 'type' => 'global', + 'name' => VAR->string, + 'line' => $this->lex->line, + 'default' => '&new ' . CL->string . ARGS->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ); } else { A = new PHP_Parser_CoreyyToken(VAR->string . ' = &new ' . $c . ARGS->string, VAR); } @@ -654,8 +710,8 @@ A = new PHP_Parser_CoreyyToken('(' . B->string . ')', B); } expr_without_variable(A) ::= expr(B) QUESTION - expr(C) COLON - expr(D). { + expr(C) COLON + expr(D). { A = new PHP_Parser_CoreyyToken(B->string . ' ? ' . C->string . ' : ' . D->string, B); A[] = C; A[] = D; @@ -712,14 +768,14 @@ exit_expr(A) ::= . {A = new PHP_Parser_CoreyyToken('');} common_scalar(A) ::= - T_LNUMBER - |T_DNUMBER - |T_CONSTANT_ENCAPSED_STRING - |T_LINE - |T_FILE - |T_CLASS_C - |T_METHOD_C - |T_FUNC_C(B). {A = B;} + T_LNUMBER + |T_DNUMBER + |T_CONSTANT_ENCAPSED_STRING + |T_LINE + |T_FILE + |T_CLASS_C + |T_METHOD_C + |T_FUNC_C(B). {A = B;} /* compile-time evaluated scalars */ static_scalar(A) ::= common_scalar(B). {A = B;} @@ -1003,6 +1059,9 @@ 'line' => $item['line'], 'default' => $item['default'], 'modifiers' => mod, + 'doc' => $item['doc'], + 'parseddoc' => $item['parseddoc'], + 'docline' => $item['docline'], ); } A = new PHP_Parser_CoreyyToken('', $a); @@ -1015,21 +1074,30 @@ 'name' => $item['name'], 'line' => $item['line'], 'value' => $item['value'], + 'doc' => $item['doc'], + 'parseddoc' => $item['parseddoc'], + 'docline' => $item['docline'], ); } A = new PHP_Parser_CoreyyToken('', $a); } -get_method_line(A) ::= T_FUNCTION. {A = $this->lex->line;} +get_method_line(A) ::= T_FUNCTION. { + A = array($this->lex->line, $lastcom); +} class_statement(A) ::= method_modifiers(mod) get_method_line(LINE) is_reference T_STRING(B) LPAREN parameter_list(params) RPAREN method_body(M). { + list($doc, $parsed, $line) = LINE[1]; A = new PHP_Parser_CoreyyToken('', array( array( 'type' => 'method', 'name' => B, - 'startline' => LINE, + 'startline' => LINE[0], 'endline' => $this->lex->line, 'parameters' => params->metadata, 'modifiers' => mod, - 'info' => M->metadata + 'info' => M->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ) )); } @@ -1058,52 +1126,79 @@ A = array(B, $this->lex->line); } -class_variable_declaration(A) ::= class_variable_declaration(list) COMMA get_variable_line(var). { - A = list; +class_variable_declaration(A) ::= class_variable_declaration(LIST) COMMA get_variable_line(var). { + list($doc, $parsed, $line) = $this->lex->getLastComment(); + A = LIST; A[] = array( 'name' => var[0], 'default' => null, 'line' => var[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -class_variable_declaration(A) ::= class_variable_declaration(list) COMMA get_variable_line(var) EQUALS static_scalar(val). { - A = list; +class_variable_declaration(A) ::= class_variable_declaration(LIST) COMMA get_variable_line(var) EQUALS static_scalar(val). { + list($doc, $parsed, $line) = $this->lex->getLastComment(); + A = LIST; A[] = array( 'name' => var[0], 'default' => val, - 'line' => var[1] + 'line' => var[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } class_variable_declaration(A) ::= T_VARIABLE(B). { + list($doc, $parsed, $line) = $this->lex->getLastComment(); A = array( array( 'name' => B, 'default' => null, 'line' => $this->lex->line, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ) ); } class_variable_declaration(A) ::= get_variable_line(var) EQUALS static_scalar(val). { + list($doc, $parsed, $line) = $this->lex->getLastComment(); A = array( array( 'name' => var[0], 'default' => val, 'line' => var[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ) ); } get_constant_line(A) ::= T_STRING(B). { - A = array(B, $this->lex->line); + $doc = $this->lex->getLastComment(); + A = array(B, $this->lex->line, $doc); } -class_constant_declaration(A) ::= class_constant_declaration(list) COMMA get_constant_line(n) EQUALS static_scalar(v). { - A = list; - A[] = array('name' => n[0], 'value' => v, 'line' => n[1]); +class_constant_declaration(A) ::= class_constant_declaration(LIST) COMMA get_constant_line(n) EQUALS static_scalar(v). { + A = LIST; + list($doc, $parsed, $line) = n[2]; + A[] = array('name' => n[0], 'value' => v, 'line' => n[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ); } class_constant_declaration(A) ::= T_CONST get_constant_line(n) EQUALS static_scalar(v). { + list($doc, $parsed, $line) = n[2]; A = array( - array('name' => n[0], 'value' => v, 'line' => n[1]) + array('name' => n[0], 'value' => v, 'line' => n[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ) ); } @@ -1187,7 +1282,7 @@ A = new PHP_Parser_CoreyyToken(I . B->string, B); } base_variable(A) ::= static_member(B). {A = B;} - + reference_variable(A) ::= reference_variable(REF) LBRACKET dim_offset(DIM) RBRACKET. { A = new PHP_Parser_CoreyyToken(REF->string . '[' . DIM->string . ']', array()); A[] = REF; @@ -1333,63 +1428,91 @@ internal_functions_in_yacc(A) ::= T_EMPTY LPAREN variable(B) RPAREN. { A = new PHP_Parser_CoreyyToken('empty(' . B->string . ')', B); } -get_include_line(A) ::= T_INCLUDE. {A=$this->lex->line;} +get_include_line(A) ::= T_INCLUDE. {A=array($this->lex->line, $this->lex->getLastComment());} internal_functions_in_yacc(A) ::= get_include_line(LINE) expr(B). { A = new PHP_Parser_CoreyyToken('include ' . B->string, B); + list($doc, $parsed, $line) = LINE[1]; A[] = array( 'type' => 'include', 'file' => B->string, - 'line' => LINE, + 'line' => LINE[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->includes[] = array( 'type' => 'include', 'file' => B->string, - 'line' => LINE, + 'line' => LINE[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } get_include_once_line(A) ::= T_INCLUDE_ONCE. {A=$this->lex->line;} internal_functions_in_yacc(A) ::= get_include_once_line(LINE) expr(B). { A = new PHP_Parser_CoreyyToken('include_once ' . B->string, B); + list($doc, $parsed, $line) = LINE[1]; A[] = array( 'type' => 'include_once', 'file' => B->string, - 'line' => LINE, + 'line' => LINE[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->includes[] = array( 'type' => 'include_once', 'file' => B->string, - 'line' => LINE, + 'line' => LINE[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } internal_functions_in_yacc(A) ::= T_EVAL LPAREN expr(B) RPAREN. { A = new PHP_Parser_CoreyyToken('eval ' . B->string, B); } -get_require_line(A) ::= T_REQUIRE. {A=$this->lex->line;} +get_require_line(A) ::= T_REQUIRE. {A=array($this->lex->line, $this->lex->getLastComment());} internal_functions_in_yacc(A) ::= get_require_line(LINE) expr(B). { + list($doc, $parsed, $line) = LINE[1]; A = new PHP_Parser_CoreyyToken('require ' . B->string, B); A[] = array( 'type' => 'require', 'file' => B->string, - 'line' => LINE, + 'line' => LINE[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->includes[] = array( 'type' => 'require', 'file' => B->string, - 'line' => LINE, + 'line' => LINE[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -get_require_once_line(A) ::= T_REQUIRE_ONCE. {A=$this->lex->line;} +get_require_once_line(A) ::= T_REQUIRE_ONCE. {A=array($this->lex->line,$this->lex->getLastComment());} internal_functions_in_yacc(A) ::= get_require_once_line(LINE) expr(B). { + list($doc, $parsed, $line) = LINE[1]; A = new PHP_Parser_CoreyyToken('require_once ' . B->string, B); A[] = array( 'type' => 'require_once', 'file' => B->string, - 'line' => LINE, + 'line' => LINE[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->includes[] = array( 'type' => 'require_once', 'file' => B->string, - 'line' => LINE, + 'line' => LINE[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/Parser/Tokenizer.php?r1=1.12&r2=1.13&diff_format=u Index: pear/PHP_Parser/Parser/Tokenizer.php diff -u pear/PHP_Parser/Parser/Tokenizer.php:1.12 pear/PHP_Parser/Parser/Tokenizer.php:1.13 --- pear/PHP_Parser/Parser/Tokenizer.php:1.12 Sun Mar 4 17:15:46 2007 +++ pear/PHP_Parser/Parser/Tokenizer.php Mon Mar 5 05:05:50 2007 @@ -16,7 +16,7 @@ // | Authors: nobody <nobody@localhost> | // +----------------------------------------------------------------------+ // -// $Id: Tokenizer.php,v 1.12 2007/03/04 17:15:46 cellog Exp $ +// $Id: Tokenizer.php,v 1.13 2007/03/05 05:05:50 cellog Exp $ // require_once 'PHP/Parser/Core.php'; @@ -40,7 +40,7 @@ * - {@link $line} - current line number * - {@link $pos} - current token id * - {@link $N} - total no. of tokens -* @version $Id: Tokenizer.php,v 1.12 2007/03/04 17:15:46 cellog Exp $ +* @version $Id: Tokenizer.php,v 1.13 2007/03/05 05:05:50 cellog Exp $ */ class PHP_Parser_Tokenizer { @@ -126,7 +126,7 @@ */ var $lastCommentLine; - + /** * The string of the last Comment Token * @@ -135,6 +135,15 @@ */ var $lastComment; + + /** + * The string of the last Comment Token + * + * @var string + * @access public + */ + + var $lastParsedComment; /** * String of global variable to search for @@ -248,20 +257,22 @@ * * * - * @return array ($commmentstring and $tokenPosition) + * @return array array('comment' => $commmentstring, 'parsed' => $parsed, 'line' => $linenumber) * @access public */ function getLastComment() { $com = $this->lastComment; + $last = $this->lastParsedComment; $tok = $this->lastCommentToken; $line = $this->lastCommentLine; $this->lastComment = ''; + $this->lastParsedComment = false; $this->lastCommentToken = -1; $this->lastCommentLine = -1; - return array($com, $tok, $line); + return array($com, $last, $line); } /** @@ -279,7 +290,7 @@ $this->lastParsedComment = $this->_docParser->parse($this->lastComment, $this); } catch (Exception $e) { - + $this->lastParsedComment = false; } } } @@ -321,21 +332,16 @@ // comments - store for phpdoc case T_DOC_COMMENT; - - case T_COMMENT: - $this->lastComment = ''; - $this->lastCommentToken = -1; - $this->lastCommentLine = -1; if (substr($this->tokens[$this->pos][1], 0, 3) == '/**') { + $this->lastComment = ''; + $this->lastCommentToken = -1; + $this->lastCommentLine = -1; $this->_handleDocumentation(); } $this->line += substr_count ($this->tokens[$this->pos][1], "\n"); $this->pos++; continue; - - $this->_handleDocumentation(); - // ... continues into m/l skipeed tags.. // large case T_OPEN_TAG: @@ -351,11 +357,6 @@ //--- begin returnable values-- - // end statement - clear any comment details. - case 59; // ord(';'): - $this->lastComment = ''; - $this->lastCommentToken = -1; - // everything else! default: $this->line += substr_count ($this->tokens[$this->pos][1], "\n"); http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/tests/array_whitespace.phpt?r1=1.2&r2=1.3&diff_format=u Index: pear/PHP_Parser/tests/array_whitespace.phpt diff -u pear/PHP_Parser/tests/array_whitespace.phpt:1.2 pear/PHP_Parser/tests/array_whitespace.phpt:1.3 --- pear/PHP_Parser/tests/array_whitespace.phpt:1.2 Wed Feb 28 05:18:11 2007 +++ pear/PHP_Parser/tests/array_whitespace.phpt Mon Mar 5 05:05:50 2007 @@ -21,7 +21,7 @@ --EXPECT-- array(1) { [0]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -70,6 +70,12 @@ string(4) "Test" } } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } } array(0) { @@ -80,7 +86,7 @@ ["test1"]=> array(1) { [0]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -129,6 +135,12 @@ string(4) "Test" } } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } } } http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/tests/global_var.phpt?r1=1.1&r2=1.2&diff_format=u Index: pear/PHP_Parser/tests/global_var.phpt diff -u pear/PHP_Parser/tests/global_var.phpt:1.1 pear/PHP_Parser/tests/global_var.phpt:1.2 --- pear/PHP_Parser/tests/global_var.phpt:1.1 Sun Mar 4 17:15:46 2007 +++ pear/PHP_Parser/tests/global_var.phpt Mon Mar 5 05:05:50 2007 @@ -37,7 +37,7 @@ --EXPECT-- array(1) { [0]=> - array(4) { + array(7) { ["type"]=> string(6) "global" ["name"]=> @@ -46,6 +46,32 @@ int(6) ["default"]=> string(11) ""holy crap"" + ["doc"]=> + string(48) "/** + * @global string $GLOBALS['hi there'] + */" + ["parseddoc"]=> + array(2) { + ["desc"]=> + string(3) " + " + ["tags"]=> + array(1) { + ["global"]=> + array(1) { + [0]=> + array(2) { + ["tag"]=> + string(6) "global" + ["text"]=> + string(30) " string $GLOBALS['hi there'] +" + } + } + } + } + ["docline"]=> + int(3) } } array(0) { @@ -60,7 +86,7 @@ ["$GLOBALS['hi there']"]=> array(1) { [0]=> - array(4) { + array(7) { ["type"]=> string(6) "global" ["name"]=> @@ -69,6 +95,32 @@ int(6) ["default"]=> string(11) ""holy crap"" + ["doc"]=> + string(48) "/** + * @global string $GLOBALS['hi there'] + */" + ["parseddoc"]=> + array(2) { + ["desc"]=> + string(3) " + " + ["tags"]=> + array(1) { + ["global"]=> + array(1) { + [0]=> + array(2) { + ["tag"]=> + string(6) "global" + ["text"]=> + string(30) " string $GLOBALS['hi there'] +" + } + } + } + } + ["docline"]=> + int(3) } } } http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/tests/unticked_class_statement1.phpt?r1=1.3&r2=1.4&diff_format=u Index: pear/PHP_Parser/tests/unticked_class_statement1.phpt diff -u pear/PHP_Parser/tests/unticked_class_statement1.phpt:1.3 pear/PHP_Parser/tests/unticked_class_statement1.phpt:1.4 --- pear/PHP_Parser/tests/unticked_class_statement1.phpt:1.3 Wed Feb 28 05:18:11 2007 +++ pear/PHP_Parser/tests/unticked_class_statement1.phpt Mon Mar 5 05:05:50 2007 @@ -21,7 +21,7 @@ --EXPECT-- array(7) { [0]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -42,9 +42,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -67,9 +73,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [2]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -92,9 +104,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [3]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -117,9 +135,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [4]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -142,9 +166,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [5]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -169,9 +199,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [6]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -192,7 +228,7 @@ ["info"]=> array(42) { [0]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -206,9 +242,15 @@ [0]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [1]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -222,9 +264,15 @@ [0]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [2]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -238,9 +286,15 @@ [0]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [3]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -256,9 +310,15 @@ [1]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [4]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -274,9 +334,15 @@ [1]=> string(9) "protected" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [5]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -292,9 +358,15 @@ [1]=> string(5) "final" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [6]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -310,9 +382,15 @@ [1]=> string(8) "abstract" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [7]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -328,9 +406,15 @@ [1]=> string(7) "private" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [8]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -346,9 +430,15 @@ [1]=> string(7) "private" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [9]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -364,9 +454,15 @@ [1]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [10]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -382,9 +478,15 @@ [1]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [11]=> - array(4) { + array(7) { ["type"]=> string(5) "const" ["name"]=> @@ -393,9 +495,15 @@ int(54) ["value"]=> string(13) "array(1 => 2)" + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [12]=> - array(4) { + array(7) { ["type"]=> string(5) "const" ["name"]=> @@ -404,9 +512,15 @@ int(56) ["value"]=> string(1) "1" + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [13]=> - array(4) { + array(7) { ["type"]=> string(5) "const" ["name"]=> @@ -415,9 +529,15 @@ int(56) ["value"]=> string(7) "'matey'" + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [14]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -437,9 +557,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [15]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -459,9 +585,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [16]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -481,9 +613,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [17]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -513,9 +651,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [18]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -546,9 +690,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [19]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -579,9 +729,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [20]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -612,9 +768,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [21]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -645,9 +807,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [22]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -678,9 +846,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [23]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -711,9 +885,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [24]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -744,9 +924,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [25]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -777,9 +963,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [26]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -810,9 +1002,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [27]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -843,9 +1041,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [28]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -876,9 +1080,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [29]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -909,9 +1119,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [30]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -953,9 +1169,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [31]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -997,9 +1219,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [32]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1041,9 +1269,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [33]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1085,9 +1319,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [34]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1129,9 +1369,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [35]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1173,9 +1419,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [36]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1217,9 +1469,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [37]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1261,9 +1519,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [38]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1305,9 +1569,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [39]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1349,9 +1619,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [40]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1393,9 +1669,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [41]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1437,15 +1719,27 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } array(1) { ["foo"]=> array(7) { [0]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -1466,9 +1760,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -1491,9 +1791,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [2]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -1516,9 +1822,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [3]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -1541,9 +1853,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [4]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -1566,9 +1884,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [5]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -1593,9 +1917,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [6]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -1616,7 +1946,7 @@ ["info"]=> array(42) { [0]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1630,9 +1960,15 @@ [0]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [1]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1646,9 +1982,15 @@ [0]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [2]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1662,9 +2004,15 @@ [0]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [3]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1680,9 +2028,15 @@ [1]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [4]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1698,9 +2052,15 @@ [1]=> string(9) "protected" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [5]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1716,9 +2076,15 @@ [1]=> string(5) "final" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [6]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1734,9 +2100,15 @@ [1]=> string(8) "abstract" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [7]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1752,9 +2124,15 @@ [1]=> string(7) "private" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [8]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1770,9 +2148,15 @@ [1]=> string(7) "private" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [9]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1788,9 +2172,15 @@ [1]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [10]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1806,9 +2196,15 @@ [1]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [11]=> - array(4) { + array(7) { ["type"]=> string(5) "const" ["name"]=> @@ -1817,9 +2213,15 @@ int(54) ["value"]=> string(13) "array(1 => 2)" + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [12]=> - array(4) { + array(7) { ["type"]=> string(5) "const" ["name"]=> @@ -1828,9 +2230,15 @@ int(56) ["value"]=> string(1) "1" + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [13]=> - array(4) { + array(7) { ["type"]=> string(5) "const" ["name"]=> @@ -1839,9 +2247,15 @@ int(56) ["value"]=> string(7) "'matey'" + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [14]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1861,9 +2275,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [15]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1883,9 +2303,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [16]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1905,9 +2331,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [17]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1937,9 +2369,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [18]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1970,9 +2408,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [19]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2003,9 +2447,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [20]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2036,9 +2486,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [21]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2069,9 +2525,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [22]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2102,9 +2564,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [23]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2135,9 +2603,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [24]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2168,9 +2642,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [25]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2201,9 +2681,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [26]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2234,9 +2720,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [27]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2267,9 +2759,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [28]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2300,9 +2798,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [29]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2333,9 +2837,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [30]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2377,9 +2887,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [31]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2421,9 +2937,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [32]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2465,9 +2987,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [33]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2509,9 +3037,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [34]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2553,9 +3087,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [35]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2597,9 +3137,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [36]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2641,9 +3187,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [37]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2685,9 +3237,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [38]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2729,9 +3287,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [39]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2773,9 +3337,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [40]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2817,9 +3387,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [41]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2861,8 +3437,20 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } } http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/tests/unticked_class_statement2.phpt?r1=1.2&r2=1.3&diff_format=u Index: pear/PHP_Parser/tests/unticked_class_statement2.phpt diff -u pear/PHP_Parser/tests/unticked_class_statement2.phpt:1.2 pear/PHP_Parser/tests/unticked_class_statement2.phpt:1.3 --- pear/PHP_Parser/tests/unticked_class_statement2.phpt:1.2 Wed Feb 28 05:18:11 2007 +++ pear/PHP_Parser/tests/unticked_class_statement2.phpt Mon Mar 5 05:05:50 2007 @@ -21,7 +21,7 @@ --EXPECT-- array(1) { [0]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -42,7 +42,7 @@ ["info"]=> array(2) { [0]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -62,9 +62,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -208,7 +214,7 @@ string(9) "Classname" } [20]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -225,9 +231,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [21]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -248,9 +260,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [22]=> - array(6) { + array(9) { ["type"]=> string(9) "interface" ["startline"]=> @@ -265,17 +283,35 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } array(2) { ["inside"]=> array(1) { [0]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -296,12 +332,18 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } ["test"]=> array(1) { [0]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -322,7 +364,7 @@ ["info"]=> array(2) { [0]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -342,9 +384,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -488,7 +536,7 @@ string(9) "Classname" } [20]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -505,9 +553,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [21]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -528,9 +582,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [22]=> - array(6) { + array(9) { ["type"]=> string(9) "interface" ["startline"]=> @@ -545,10 +605,28 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } } @@ -556,7 +634,7 @@ ["inside"]=> array(1) { [0]=> - array(6) { + array(9) { ["type"]=> string(9) "interface" ["startline"]=> @@ -571,6 +649,12 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } } @@ -578,7 +662,7 @@ ["inside"]=> array(1) { [0]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -595,6 +679,12 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } } } http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/tests/unticked_class_statement3.phpt?r1=1.2&r2=1.3&diff_format=u Index: pear/PHP_Parser/tests/unticked_class_statement3.phpt diff -u pear/PHP_Parser/tests/unticked_class_statement3.phpt:1.2 pear/PHP_Parser/tests/unticked_class_statement3.phpt:1.3 --- pear/PHP_Parser/tests/unticked_class_statement3.phpt:1.2 Wed Feb 28 05:18:11 2007 +++ pear/PHP_Parser/tests/unticked_class_statement3.phpt Mon Mar 5 05:05:50 2007 @@ -21,7 +21,7 @@ --EXPECT-- array(1) { [0]=> - array(6) { + array(9) { ["type"]=> string(9) "interface" ["startline"]=> @@ -36,7 +36,7 @@ ["info"]=> array(3) { [0]=> - array(4) { + array(7) { ["type"]=> string(5) "const" ["name"]=> @@ -45,9 +45,15 @@ int(12) ["value"]=> string(1) "1" + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -67,9 +73,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [2]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -122,8 +134,20 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } array(0) { @@ -132,7 +156,7 @@ ["blah"]=> array(1) { [0]=> - array(6) { + array(9) { ["type"]=> string(9) "interface" ["startline"]=> @@ -147,7 +171,7 @@ ["info"]=> array(3) { [0]=> - array(4) { + array(7) { ["type"]=> string(5) "const" ["name"]=> @@ -156,9 +180,15 @@ int(12) ["value"]=> string(1) "1" + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -178,9 +208,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [2]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -233,8 +269,20 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } } http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/tests/unticked_function_statement1.phpt?r1=1.2&r2=1.3&diff_format=u Index: pear/PHP_Parser/tests/unticked_function_statement1.phpt diff -u pear/PHP_Parser/tests/unticked_function_statement1.phpt:1.2 pear/PHP_Parser/tests/unticked_function_statement1.phpt:1.3 --- pear/PHP_Parser/tests/unticked_function_statement1.phpt:1.2 Wed Feb 28 05:18:11 2007 +++ pear/PHP_Parser/tests/unticked_function_statement1.phpt Mon Mar 5 05:05:50 2007 @@ -21,7 +21,7 @@ --EXPECT-- array(26) { [0]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -38,9 +38,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -57,9 +63,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [2]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -87,9 +99,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [3]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -117,9 +135,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [4]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -147,9 +171,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [5]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -177,9 +207,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [6]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -207,9 +243,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [7]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -237,9 +279,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [8]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -267,9 +315,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [9]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -297,9 +351,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [10]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -327,9 +387,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [11]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -357,9 +423,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [12]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -387,9 +459,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [13]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -417,9 +495,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [14]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -458,9 +542,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [15]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -499,9 +589,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [16]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -540,9 +636,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [17]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -581,9 +683,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [18]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -622,9 +730,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [19]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -663,9 +777,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [20]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -704,9 +824,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [21]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -745,9 +871,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [22]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -786,9 +918,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [23]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -827,9 +965,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [24]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -868,9 +1012,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [25]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -909,6 +1059,12 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } array(0) { @@ -919,7 +1075,7 @@ ["test"]=> array(26) { [0]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -936,9 +1092,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -955,9 +1117,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [2]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -985,9 +1153,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [3]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1015,9 +1189,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [4]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1045,9 +1225,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [5]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1075,9 +1261,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [6]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1105,9 +1297,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [7]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1135,9 +1333,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [8]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1165,9 +1369,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [9]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1195,9 +1405,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [10]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1225,9 +1441,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [11]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1255,9 +1477,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [12]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1285,9 +1513,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [13]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1315,9 +1549,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [14]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1356,9 +1596,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [15]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1397,9 +1643,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [16]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1438,9 +1690,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [17]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1479,9 +1737,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [18]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1520,9 +1784,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [19]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1561,9 +1831,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [20]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1602,9 +1878,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [21]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1643,9 +1925,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [22]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1684,9 +1972,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [23]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1725,9 +2019,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [24]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1766,9 +2066,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [25]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1807,6 +2113,12 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } } http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/tests/unticked_function_statement2.phpt?r1=1.3&r2=1.4&diff_format=u Index: pear/PHP_Parser/tests/unticked_function_statement2.phpt diff -u pear/PHP_Parser/tests/unticked_function_statement2.phpt:1.3 pear/PHP_Parser/tests/unticked_function_statement2.phpt:1.4 --- pear/PHP_Parser/tests/unticked_function_statement2.phpt:1.3 Wed Feb 28 05:18:11 2007 +++ pear/PHP_Parser/tests/unticked_function_statement2.phpt Mon Mar 5 05:05:50 2007 @@ -21,7 +21,7 @@ --EXPECT-- array(2) { [0]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -38,9 +38,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -181,7 +187,7 @@ string(9) "Classname" } [20]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -198,9 +204,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [21]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -221,9 +233,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [22]=> - array(6) { + array(9) { ["type"]=> string(9) "interface" ["startline"]=> @@ -238,15 +256,27 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } array(1) { ["inside"]=> array(1) { [0]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -267,6 +297,12 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } } @@ -274,7 +310,7 @@ ["inside"]=> array(1) { [0]=> - array(6) { + array(9) { ["type"]=> string(9) "interface" ["startline"]=> @@ -289,6 +325,12 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } } @@ -296,7 +338,7 @@ ["test"]=> array(2) { [0]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -313,9 +355,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -456,7 +504,7 @@ string(9) "Classname" } [20]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -473,9 +521,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [21]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -496,9 +550,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [22]=> - array(6) { + array(9) { ["type"]=> string(9) "interface" ["startline"]=> @@ -513,14 +573,26 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } ["inside"]=> array(1) { [0]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -537,6 +609,12 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } }
http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/Parser/Core.php?r1=1.7&r2=1.8&diff_format=u Index: pear/PHP_Parser/Parser/Core.php diff -u pear/PHP_Parser/Parser/Core.php:1.7 pear/PHP_Parser/Parser/Core.php:1.8 --- pear/PHP_Parser/Parser/Core.php:1.7 Sun Mar 4 17:15:46 2007 +++ pear/PHP_Parser/Parser/Core.php Mon Mar 5 05:05:50 2007 @@ -5181,7 +5181,6 @@ 45 => 45, 48 => 48, 57 => 48, - 216 => 48, 49 => 49, 50 => 50, 51 => 51, @@ -5322,6 +5321,7 @@ 211 => 211, 214 => 214, 215 => 215, + 216 => 216, 217 => 217, 219 => 219, 221 => 221, @@ -5329,11 +5329,11 @@ 224 => 224, 226 => 226, 227 => 227, - 232 => 227, 228 => 228, 229 => 229, 230 => 230, 231 => 231, + 232 => 232, 233 => 233, 234 => 234, 235 => 235, @@ -5381,13 +5381,13 @@ 309 => 309, 310 => 310, 311 => 311, - 313 => 311, 316 => 311, - 318 => 311, 312 => 312, + 313 => 313, 314 => 314, 315 => 315, 317 => 317, + 318 => 318, 319 => 319, 322 => 322, 324 => 324, @@ -5553,8 +5553,9 @@ #line 5558 "Core.php" #line 297 "Core.y" function yy_r49(){ - $this->_retvalue = new PHP_Parser_CoreyyToken('function ' . ($this->yystack[$this->yyidx + -7]->minor ? '&' : '') . - $this->yystack[$this->yyidx + -6]->minor . '(' . $this->yystack[$this->yyidx + -4]->minor->string . ')'); + $this->_retvalue = new PHP_Parser_CoreyyToken('function ' . ($this->yystack[$this->yyidx + -7]->minor ? '&' : '') . + $this->yystack[$this->yyidx + -6]->minor . '(' . $this->yystack[$this->yyidx + -4]->minor->string . ')'); + list($doc, $parsed, $line) = $this->lex->getLastComment(); $this->_retvalue[] = array( 'type' => 'function', 'startline' => $this->yystack[$this->yyidx + -8]->minor, @@ -5563,6 +5564,9 @@ 'name' => $this->yystack[$this->yyidx + -6]->minor, 'parameters' => $this->yystack[$this->yyidx + -4]->minor->metadata, 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->functions[$this->yystack[$this->yyidx + -6]->minor][] = array( 'type' => 'function', @@ -5572,93 +5576,114 @@ 'name' => $this->yystack[$this->yyidx + -6]->minor, 'parameters' => $this->yystack[$this->yyidx + -4]->minor->metadata, 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -#line 5582 "Core.php" -#line 325 "Core.y" +#line 5589 "Core.php" +#line 332 "Core.y" function yy_r50(){ - $this->_retvalue = new PHP_Parser_CoreyyToken('', array( - 'type' => $this->yystack[$this->yyidx + -6]->minor['type'], + list($doc, $parsed, $line) = $this->lex->getLastComment(); + $this->_retvalue = new PHP_Parser_CoreyyToken('', array( + 'type' => $this->yystack[$this->yyidx + -6]->minor['type'], 'startline' => $this->yystack[$this->yyidx + -6]->minor['line'], 'endline' => $this->lex->line, - 'modifiers' => $this->yystack[$this->yyidx + -6]->minor['modifiers'], - 'name' => $this->yystack[$this->yyidx + -5]->minor, - 'extends' => $this->yystack[$this->yyidx + -4]->minor->metadata, - 'implements' => $this->yystack[$this->yyidx + -3]->minor->metadata, - 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, - )); - $this->classes[$this->yystack[$this->yyidx + -5]->minor][] = array( - 'type' => $this->yystack[$this->yyidx + -6]->minor['type'], + 'modifiers' => $this->yystack[$this->yyidx + -6]->minor['modifiers'], + 'name' => $this->yystack[$this->yyidx + -5]->minor, + 'extends' => $this->yystack[$this->yyidx + -4]->minor->metadata, + 'implements' => $this->yystack[$this->yyidx + -3]->minor->metadata, + 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + )); + $this->classes[$this->yystack[$this->yyidx + -5]->minor][] = array( + 'type' => $this->yystack[$this->yyidx + -6]->minor['type'], 'startline' => $this->yystack[$this->yyidx + -6]->minor['line'], 'endline' => $this->lex->line, - 'modifiers' => $this->yystack[$this->yyidx + -6]->minor['modifiers'], - 'name' => $this->yystack[$this->yyidx + -5]->minor, - 'extends' => $this->yystack[$this->yyidx + -4]->minor->metadata, - 'implements' => $this->yystack[$this->yyidx + -3]->minor->metadata, - 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, - ); + 'modifiers' => $this->yystack[$this->yyidx + -6]->minor['modifiers'], + 'name' => $this->yystack[$this->yyidx + -5]->minor, + 'extends' => $this->yystack[$this->yyidx + -4]->minor->metadata, + 'implements' => $this->yystack[$this->yyidx + -3]->minor->metadata, + 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ); } -#line 5606 "Core.php" -#line 352 "Core.y" +#line 5620 "Core.php" +#line 366 "Core.y" function yy_r51(){ + list($doc, $parsed, $line) = $this->lex->getLastComment(); $this->_retvalue = new PHP_Parser_CoreyyToken('', array( - 'type' => 'interface', + 'type' => 'interface', 'startline' => $this->yystack[$this->yyidx + -5]->minor, 'endline' => $this->lex->line, - 'name' => $this->yystack[$this->yyidx + -4]->minor, - 'extends' => $this->yystack[$this->yyidx + -3]->minor->metadata, - 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, + 'name' => $this->yystack[$this->yyidx + -4]->minor, + 'extends' => $this->yystack[$this->yyidx + -3]->minor->metadata, + 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, )); $this->interfaces[$this->yystack[$this->yyidx + -4]->minor][] = array( - 'type' => 'interface', + 'type' => 'interface', 'startline' => $this->yystack[$this->yyidx + -5]->minor, 'endline' => $this->lex->line, - 'name' => $this->yystack[$this->yyidx + -4]->minor, - 'extends' => $this->yystack[$this->yyidx + -3]->minor->metadata, - 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, + 'name' => $this->yystack[$this->yyidx + -4]->minor, + 'extends' => $this->yystack[$this->yyidx + -3]->minor->metadata, + 'info' => $this->yystack[$this->yyidx + -1]->minor->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -#line 5626 "Core.php" -#line 371 "Core.y" +#line 5647 "Core.php" +#line 392 "Core.y" function yy_r52(){ $this->_retvalue = new PHP_Parser_CoreyyToken('', array('type' => 'class', 'modifiers' => array(), 'line' => $this->lex->line)); } -#line 5629 "Core.php" -#line 372 "Core.y" +#line 5650 "Core.php" +#line 393 "Core.y" function yy_r53(){ $this->_retvalue = new PHP_Parser_CoreyyToken('', array('type' => 'class', 'modifiers' => array('abstract'), 'line' => $this->lex->line)); } -#line 5634 "Core.php" -#line 375 "Core.y" +#line 5655 "Core.php" +#line 396 "Core.y" function yy_r54(){ $this->_retvalue = new PHP_Parser_CoreyyToken('', array('type' => 'class', 'modifiers' => array('final'), 'line' => $this->lex->line)); } -#line 5639 "Core.php" -#line 379 "Core.y" +#line 5660 "Core.php" +#line 400 "Core.y" function yy_r55(){$this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + 0]->minor, array($this->yystack[$this->yyidx + 0]->minor)); } -#line 5642 "Core.php" -#line 390 "Core.y" +#line 5663 "Core.php" +#line 411 "Core.y" function yy_r62(){$this->_retvalue = new PHP_Parser_CoreyyToken('', array($this->yystack[$this->yyidx + 0]->minor)); } -#line 5645 "Core.php" -#line 391 "Core.y" +#line 5666 "Core.php" +#line 412 "Core.y" function yy_r63(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = array($this->yystack[$this->yyidx + 0]->minor); } -#line 5651 "Core.php" -#line 399 "Core.y" +#line 5672 "Core.php" +#line 420 "Core.y" function yy_r66(){ $this->_retvalue = new PHP_Parser_CoreyyToken('list(' . $this->yystack[$this->yyidx + -3]->minor->string . ') = ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5657 "Core.php" -#line 403 "Core.y" +#line 5678 "Core.php" +#line 424 "Core.y" function yy_r67(){ if ($this->lex->globalSearch($this->yystack[$this->yyidx + -2]->minor->string)) { + list($doc, $parsed, $line) = $this->lex->getLastComment(); $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' = ' . $this->yystack[$this->yyidx + 0]->minor->string, array( 'type' => 'global', 'name' => $this->yystack[$this->yyidx + -2]->minor->string, 'line' => $this->lex->line, 'default' => $this->yystack[$this->yyidx + 0]->minor->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, )); $this->_retvalue[] = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; @@ -5667,43 +5692,74 @@ 'name' => $this->yystack[$this->yyidx + -2]->minor->string, 'line' => $this->lex->line, 'default' => $this->yystack[$this->yyidx + 0]->minor->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } else { $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' = ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } } -#line 5681 "Core.php" -#line 425 "Core.y" +#line 5712 "Core.php" +#line 456 "Core.y" function yy_r68(){ if ($this->lex->globalSearch($this->yystack[$this->yyidx + -3]->minor->string)) { + list($doc, $parsed, $line) = $this->lex->getLastComment(); $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . ' = ' . $this->yystack[$this->yyidx + 0]->minor->string, array( 'type' => 'global', 'name' => $this->yystack[$this->yyidx + -3]->minor->string, 'line' => $this->lex->line, 'default' => '&' . $this->yystack[$this->yyidx + 0]->minor->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, )); $this->_retvalue[] = $this->yystack[$this->yyidx + -3]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; + $this->globals[$this->yystack[$this->yyidx + -3]->minor->string][] = + array( + 'type' => 'global', + 'name' => $this->yystack[$this->yyidx + -3]->minor->string, + 'line' => $this->lex->line, + 'default' => '&' . $this->yystack[$this->yyidx + 0]->minor->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ); } else { $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . ' = &' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } } -#line 5699 "Core.php" -#line 442 "Core.y" +#line 5747 "Core.php" +#line 490 "Core.y" function yy_r69(){ $c = is_string($this->yystack[$this->yyidx + -1]->minor) ? $this->yystack[$this->yyidx + -1]->minor : $this->yystack[$this->yyidx + -1]->minor->string; if ($this->lex->globalSearch($this->yystack[$this->yyidx + -5]->minor->string)) { + list($doc, $parsed, $line) = $this->lex->getLastComment(); $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -5]->minor->string . ' = &new ' . $c . $this->yystack[$this->yyidx + 0]->minor->string, array( 'type' => 'global', 'name' => $this->yystack[$this->yyidx + -5]->minor->string, 'line' => $this->lex->line, 'default' => '&new ' . $this->yystack[$this->yyidx + -1]->minor->string . $this->yystack[$this->yyidx + 0]->minor->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, )); $this->_retvalue[] = $this->yystack[$this->yyidx + -5]->minor; + $this->globals[$this->yystack[$this->yyidx + -5]->minor->string][] = + array( + 'type' => 'global', + 'name' => $this->yystack[$this->yyidx + -5]->minor->string, + 'line' => $this->lex->line, + 'default' => '&new ' . $this->yystack[$this->yyidx + -1]->minor->string . $this->yystack[$this->yyidx + 0]->minor->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ); } else { $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -5]->minor->string . ' = &new ' . $c . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -5]->minor); } @@ -5712,8 +5768,8 @@ } $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5720 "Core.php" -#line 461 "Core.y" +#line 5785 "Core.php" +#line 526 "Core.y" function yy_r70(){ $b = is_string($this->yystack[$this->yyidx + -1]->minor) ? $this->yystack[$this->yyidx + -1]->minor : $this->yystack[$this->yyidx + -1]->minor->string; $this->_retvalue = new PHP_Parser_CoreyyToken('new ' . $b . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -1]->minor); @@ -5722,263 +5778,263 @@ $this->_retvalue[] = array('uses' => 'class', 'name' => trim($this->yystack[$this->yyidx + -1]->minor)); } } -#line 5730 "Core.php" -#line 469 "Core.y" +#line 5795 "Core.php" +#line 534 "Core.y" function yy_r71(){ $this->_retvalue = new PHP_Parser_CoreyyToken('clone ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 5735 "Core.php" -#line 472 "Core.y" +#line 5800 "Core.php" +#line 537 "Core.y" function yy_r72(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' += ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5741 "Core.php" -#line 476 "Core.y" +#line 5806 "Core.php" +#line 541 "Core.y" function yy_r73(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' -= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5747 "Core.php" -#line 481 "Core.y" +#line 5812 "Core.php" +#line 546 "Core.y" function yy_r74(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' *= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5753 "Core.php" -#line 486 "Core.y" +#line 5818 "Core.php" +#line 551 "Core.y" function yy_r75(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' /= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5759 "Core.php" -#line 491 "Core.y" +#line 5824 "Core.php" +#line 556 "Core.y" function yy_r76(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' .= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5765 "Core.php" -#line 496 "Core.y" +#line 5830 "Core.php" +#line 561 "Core.y" function yy_r77(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' %= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5771 "Core.php" -#line 501 "Core.y" +#line 5836 "Core.php" +#line 566 "Core.y" function yy_r78(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' &= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5777 "Core.php" -#line 506 "Core.y" +#line 5842 "Core.php" +#line 571 "Core.y" function yy_r79(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' |= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5783 "Core.php" -#line 511 "Core.y" +#line 5848 "Core.php" +#line 576 "Core.y" function yy_r80(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' ^= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5789 "Core.php" -#line 516 "Core.y" +#line 5854 "Core.php" +#line 581 "Core.y" function yy_r81(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' <<= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5795 "Core.php" -#line 521 "Core.y" +#line 5860 "Core.php" +#line 586 "Core.y" function yy_r82(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' >>= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5801 "Core.php" -#line 526 "Core.y" +#line 5866 "Core.php" +#line 591 "Core.y" function yy_r83(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor->string . '++', $this->yystack[$this->yyidx + -1]->minor); } -#line 5806 "Core.php" -#line 529 "Core.y" +#line 5871 "Core.php" +#line 594 "Core.y" function yy_r84(){ $this->_retvalue = new PHP_Parser_CoreyyToken('++' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 5811 "Core.php" -#line 532 "Core.y" +#line 5876 "Core.php" +#line 597 "Core.y" function yy_r85(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor->string . '--', $this->yystack[$this->yyidx + -1]->minor); } -#line 5816 "Core.php" -#line 535 "Core.y" +#line 5881 "Core.php" +#line 600 "Core.y" function yy_r86(){ $this->_retvalue = new PHP_Parser_CoreyyToken('--' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 5821 "Core.php" -#line 538 "Core.y" +#line 5886 "Core.php" +#line 603 "Core.y" function yy_r87(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' || ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5827 "Core.php" -#line 542 "Core.y" +#line 5892 "Core.php" +#line 607 "Core.y" function yy_r88(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' && ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5833 "Core.php" -#line 546 "Core.y" +#line 5898 "Core.php" +#line 611 "Core.y" function yy_r89(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' OR ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5839 "Core.php" -#line 550 "Core.y" +#line 5904 "Core.php" +#line 615 "Core.y" function yy_r90(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' AND ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5845 "Core.php" -#line 554 "Core.y" +#line 5910 "Core.php" +#line 619 "Core.y" function yy_r91(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' XOR ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5851 "Core.php" -#line 558 "Core.y" +#line 5916 "Core.php" +#line 623 "Core.y" function yy_r92(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' | ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5857 "Core.php" -#line 562 "Core.y" +#line 5922 "Core.php" +#line 627 "Core.y" function yy_r93(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' & ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5863 "Core.php" -#line 566 "Core.y" +#line 5928 "Core.php" +#line 631 "Core.y" function yy_r94(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' ^ ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5869 "Core.php" -#line 570 "Core.y" +#line 5934 "Core.php" +#line 635 "Core.y" function yy_r95(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' . ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5875 "Core.php" -#line 574 "Core.y" +#line 5940 "Core.php" +#line 639 "Core.y" function yy_r96(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' + ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5881 "Core.php" -#line 578 "Core.y" +#line 5946 "Core.php" +#line 643 "Core.y" function yy_r97(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' - ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5887 "Core.php" -#line 582 "Core.y" +#line 5952 "Core.php" +#line 647 "Core.y" function yy_r98(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' * ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5893 "Core.php" -#line 586 "Core.y" +#line 5958 "Core.php" +#line 651 "Core.y" function yy_r99(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' / ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5899 "Core.php" -#line 590 "Core.y" +#line 5964 "Core.php" +#line 655 "Core.y" function yy_r100(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' % ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5905 "Core.php" -#line 594 "Core.y" +#line 5970 "Core.php" +#line 659 "Core.y" function yy_r101(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' << ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5911 "Core.php" -#line 598 "Core.y" +#line 5976 "Core.php" +#line 663 "Core.y" function yy_r102(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' >> ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5917 "Core.php" -#line 602 "Core.y" +#line 5982 "Core.php" +#line 667 "Core.y" function yy_r103(){ $this->_retvalue = new PHP_Parser_CoreyyToken('+' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 5922 "Core.php" -#line 605 "Core.y" +#line 5987 "Core.php" +#line 670 "Core.y" function yy_r104(){ $this->_retvalue = new PHP_Parser_CoreyyToken('-' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 5927 "Core.php" -#line 608 "Core.y" +#line 5992 "Core.php" +#line 673 "Core.y" function yy_r105(){ $this->_retvalue = new PHP_Parser_CoreyyToken('!' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 5932 "Core.php" -#line 611 "Core.y" +#line 5997 "Core.php" +#line 676 "Core.y" function yy_r106(){ $this->_retvalue = new PHP_Parser_CoreyyToken('~' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 5937 "Core.php" -#line 614 "Core.y" +#line 6002 "Core.php" +#line 679 "Core.y" function yy_r107(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' === ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5943 "Core.php" -#line 618 "Core.y" +#line 6008 "Core.php" +#line 683 "Core.y" function yy_r108(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' !== ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5949 "Core.php" -#line 622 "Core.y" +#line 6014 "Core.php" +#line 687 "Core.y" function yy_r109(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' == ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5955 "Core.php" -#line 626 "Core.y" +#line 6020 "Core.php" +#line 691 "Core.y" function yy_r110(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' != ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5961 "Core.php" -#line 630 "Core.y" +#line 6026 "Core.php" +#line 695 "Core.y" function yy_r111(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' < ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5967 "Core.php" -#line 634 "Core.y" +#line 6032 "Core.php" +#line 699 "Core.y" function yy_r112(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' <= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5973 "Core.php" -#line 638 "Core.y" +#line 6038 "Core.php" +#line 703 "Core.y" function yy_r113(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' > ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5979 "Core.php" -#line 642 "Core.y" +#line 6044 "Core.php" +#line 707 "Core.y" function yy_r114(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' >= ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 5985 "Core.php" -#line 646 "Core.y" +#line 6050 "Core.php" +#line 711 "Core.y" function yy_r115(){ $c = is_string($this->yystack[$this->yyidx + 0]->minor) ? $this->yystack[$this->yyidx + 0]->minor : $this->yystack[$this->yyidx + 0]->minor->string; $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' instanceof ' . $c, $this->yystack[$this->yyidx + -2]->minor); @@ -5986,192 +6042,192 @@ $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } } -#line 5994 "Core.php" -#line 653 "Core.y" +#line 6059 "Core.php" +#line 718 "Core.y" function yy_r116(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -1]->minor); } -#line 5999 "Core.php" -#line 658 "Core.y" +#line 6064 "Core.php" +#line 723 "Core.y" function yy_r117(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -4]->minor->string . ' ? ' . $this->yystack[$this->yyidx + -2]->minor->string . ' : ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -4]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6006 "Core.php" -#line 664 "Core.y" +#line 6071 "Core.php" +#line 729 "Core.y" function yy_r119(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(int) ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6011 "Core.php" -#line 667 "Core.y" +#line 6076 "Core.php" +#line 732 "Core.y" function yy_r120(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(double) ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6016 "Core.php" -#line 670 "Core.y" +#line 6081 "Core.php" +#line 735 "Core.y" function yy_r121(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(string) ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6021 "Core.php" -#line 673 "Core.y" +#line 6086 "Core.php" +#line 738 "Core.y" function yy_r122(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(array) ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6026 "Core.php" -#line 676 "Core.y" +#line 6091 "Core.php" +#line 741 "Core.y" function yy_r123(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(object) ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6031 "Core.php" -#line 679 "Core.y" +#line 6096 "Core.php" +#line 744 "Core.y" function yy_r124(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(binary) ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6036 "Core.php" -#line 682 "Core.y" +#line 6101 "Core.php" +#line 747 "Core.y" function yy_r125(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(bool) ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6041 "Core.php" -#line 685 "Core.y" +#line 6106 "Core.php" +#line 750 "Core.y" function yy_r126(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(unset) ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6046 "Core.php" -#line 688 "Core.y" +#line 6111 "Core.php" +#line 753 "Core.y" function yy_r127(){ $this->_retvalue = new PHP_Parser_CoreyyToken('exit ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6051 "Core.php" -#line 691 "Core.y" +#line 6116 "Core.php" +#line 756 "Core.y" function yy_r128(){ $this->_retvalue = new PHP_Parser_CoreyyToken('@' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6056 "Core.php" -#line 694 "Core.y" +#line 6121 "Core.php" +#line 759 "Core.y" function yy_r129(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6061 "Core.php" -#line 697 "Core.y" +#line 6126 "Core.php" +#line 762 "Core.y" function yy_r130(){ $this->lex->stopTrackingWhitespace(); $this->_retvalue = new PHP_Parser_CoreyyToken('array(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -1]->minor); } -#line 6067 "Core.php" -#line 701 "Core.y" +#line 6132 "Core.php" +#line 766 "Core.y" function yy_r131(){ $this->_retvalue = new PHP_Parser_CoreyyToken('`' . $this->yystack[$this->yyidx + -1]->minor->string . '`'); } -#line 6072 "Core.php" -#line 704 "Core.y" +#line 6137 "Core.php" +#line 769 "Core.y" function yy_r132(){ $this->_retvalue = new PHP_Parser_CoreyyToken('print ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6077 "Core.php" -#line 708 "Core.y" +#line 6142 "Core.php" +#line 773 "Core.y" function yy_r133(){$this->lex->trackWhitespace(); } -#line 6080 "Core.php" -#line 710 "Core.y" +#line 6145 "Core.php" +#line 775 "Core.y" function yy_r134(){$this->_retvalue = new PHP_Parser_CoreyyToken('()'); } -#line 6083 "Core.php" -#line 711 "Core.y" +#line 6148 "Core.php" +#line 776 "Core.y" function yy_r135(){$this->_retvalue = new PHP_Parser_CoreyyToken('(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -1]->minor); } -#line 6086 "Core.php" -#line 728 "Core.y" +#line 6151 "Core.php" +#line 793 "Core.y" function yy_r141(){$this->_retvalue = '-' . $this->yystack[$this->yyidx + 0]->minor; } -#line 6089 "Core.php" -#line 729 "Core.y" +#line 6154 "Core.php" +#line 794 "Core.y" function yy_r142(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; // have to do all because of nested arrays $this->lex->stopTrackingWhitespace(); // we only need whitespace for // array default values } -#line 6097 "Core.php" -#line 737 "Core.y" +#line 6162 "Core.php" +#line 802 "Core.y" function yy_r144(){ $this->lex->trackWhitespace(); $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } -#line 6103 "Core.php" -#line 743 "Core.y" +#line 6168 "Core.php" +#line 808 "Core.y" function yy_r146(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; } -#line 6108 "Core.php" -#line 746 "Core.y" +#line 6173 "Core.php" +#line 811 "Core.y" function yy_r147(){$this->_retvalue = ''; } -#line 6111 "Core.php" -#line 748 "Core.y" +#line 6176 "Core.php" +#line 813 "Core.y" function yy_r148(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor . $this->yystack[$this->yyidx + -3]->minor . $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; } -#line 6116 "Core.php" -#line 751 "Core.y" +#line 6181 "Core.php" +#line 816 "Core.y" function yy_r149(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; } -#line 6121 "Core.php" -#line 759 "Core.y" +#line 6186 "Core.php" +#line 824 "Core.y" function yy_r152(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . '::' . $this->yystack[$this->yyidx + 0]->minor; } -#line 6126 "Core.php" -#line 763 "Core.y" +#line 6191 "Core.php" +#line 828 "Core.y" function yy_r153(){ $this->_retvalue = new PHP_Parser_CoreyyToken(' => ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6131 "Core.php" -#line 769 "Core.y" +#line 6196 "Core.php" +#line 834 "Core.y" function yy_r156(){ $this->_retvalue = new PHP_Parser_CoreyyToken('&' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6136 "Core.php" -#line 774 "Core.y" +#line 6201 "Core.php" +#line 839 "Core.y" function yy_r158(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; } -#line 6139 "Core.php" -#line 783 "Core.y" +#line 6204 "Core.php" +#line 848 "Core.y" function yy_r163(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor . ' = ' . $this->yystack[$this->yyidx + 0]->minor, array('declare' => $this->yystack[$this->yyidx + -2]->minor, 'default' => $this->yystack[$this->yyidx + 0]->minor)); } -#line 6144 "Core.php" -#line 786 "Core.y" +#line 6209 "Core.php" +#line 851 "Core.y" function yy_r164(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -4]->minor->string . ', ' . $this->yystack[$this->yyidx + -2]->minor . ' = ' . $this->yystack[$this->yyidx + 0]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + -4]->minor; $this->_retvalue[] = array('declare' => $this->yystack[$this->yyidx + -2]->minor, 'default' => $this->yystack[$this->yyidx + 0]->minor); } -#line 6151 "Core.php" -#line 797 "Core.y" +#line 6216 "Core.php" +#line 862 "Core.y" function yy_r169(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6158 "Core.php" -#line 802 "Core.y" +#line 6223 "Core.php" +#line 867 "Core.y" function yy_r170(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6164 "Core.php" -#line 813 "Core.y" +#line 6229 "Core.php" +#line 878 "Core.y" function yy_r175(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6171 "Core.php" -#line 820 "Core.y" +#line 6236 "Core.php" +#line 885 "Core.y" function yy_r177(){ $this->_retvalue = $this->yystack[$this->yyidx + -6]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + -3]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6178 "Core.php" -#line 836 "Core.y" +#line 6243 "Core.php" +#line 901 "Core.y" function yy_r185(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor, array( array( @@ -6182,8 +6238,8 @@ ) )); } -#line 6190 "Core.php" -#line 846 "Core.y" +#line 6255 "Core.php" +#line 911 "Core.y" function yy_r186(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor . '&' . $this->yystack[$this->yyidx + 0]->minor, array( array( @@ -6194,8 +6250,8 @@ ) )); } -#line 6202 "Core.php" -#line 856 "Core.y" +#line 6267 "Core.php" +#line 921 "Core.y" function yy_r187(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -4]->minor . '&' . $this->yystack[$this->yyidx + -2]->minor . ' = ' . $this->yystack[$this->yyidx + 0]->minor, array( array( @@ -6206,8 +6262,8 @@ ) )); } -#line 6214 "Core.php" -#line 866 "Core.y" +#line 6279 "Core.php" +#line 931 "Core.y" function yy_r188(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor . $this->yystack[$this->yyidx + -2]->minor . ' = ' . $this->yystack[$this->yyidx + 0]->minor, array( array( @@ -6218,8 +6274,8 @@ ) )); } -#line 6226 "Core.php" -#line 876 "Core.y" +#line 6291 "Core.php" +#line 941 "Core.y" function yy_r189(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . ', ' . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor, $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = @@ -6230,8 +6286,8 @@ 'default' => null, ); } -#line 6238 "Core.php" -#line 886 "Core.y" +#line 6303 "Core.php" +#line 951 "Core.y" function yy_r190(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -4]->minor->string . ', ' . $this->yystack[$this->yyidx + -2]->minor . '&' . $this->yystack[$this->yyidx + 0]->minor, $this->yystack[$this->yyidx + -4]->minor); $this->_retvalue[] = @@ -6242,8 +6298,8 @@ 'default' => null, ); } -#line 6250 "Core.php" -#line 896 "Core.y" +#line 6315 "Core.php" +#line 961 "Core.y" function yy_r191(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -6]->minor->string . ', ' . $this->yystack[$this->yyidx + -4]->minor . $this->yystack[$this->yyidx + -2]->minor . ' = ' . $this->yystack[$this->yyidx + 0]->minor, $this->yystack[$this->yyidx + -6]->minor); $this->_retvalue[] = @@ -6254,8 +6310,8 @@ 'default' => $this->yystack[$this->yyidx + 0]->minor, ); } -#line 6262 "Core.php" -#line 906 "Core.y" +#line 6327 "Core.php" +#line 971 "Core.y" function yy_r192(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -5]->minor->string . ', ' . $this->yystack[$this->yyidx + -3]->minor . $this->yystack[$this->yyidx + -2]->minor . ' = ' . $this->yystack[$this->yyidx + 0]->minor, $this->yystack[$this->yyidx + -5]->minor); $this->_retvalue[] = @@ -6266,11 +6322,11 @@ 'default' => $this->yystack[$this->yyidx + 0]->minor, ); } -#line 6274 "Core.php" -#line 924 "Core.y" +#line 6339 "Core.php" +#line 989 "Core.y" function yy_r197(){$this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + 0]->minor); } -#line 6277 "Core.php" -#line 926 "Core.y" +#line 6342 "Core.php" +#line 991 "Core.y" function yy_r199(){ if ($this->yystack[$this->yyidx + 0]->minor instanceof PHP_Parser_CoreyyToken) { $b = $this->yystack[$this->yyidx + 0]->minor->string; @@ -6278,8 +6334,8 @@ $b = (string) $this->yystack[$this->yyidx + 0]->minor; } $this->_retvalue = new PHP_Parser_CoreyyToken('&' . $b, $this->yystack[$this->yyidx + 0]->minor); } -#line 6286 "Core.php" -#line 933 "Core.y" +#line 6351 "Core.php" +#line 998 "Core.y" function yy_r200(){ if ($this->yystack[$this->yyidx + 0]->minor instanceof PHP_Parser_CoreyyToken) { $b = $this->yystack[$this->yyidx + 0]->minor->string; @@ -6289,8 +6345,8 @@ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ', ' . $b, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6297 "Core.php" -#line 951 "Core.y" +#line 6362 "Core.php" +#line 1016 "Core.y" function yy_r202(){ if ($this->yystack[$this->yyidx + 0]->minor instanceof PHP_Parser_CoreyyToken) { $b = $this->yystack[$this->yyidx + 0]->minor->string; @@ -6300,49 +6356,49 @@ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . ', &' . $b, $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6308 "Core.php" -#line 961 "Core.y" +#line 6373 "Core.php" +#line 1026 "Core.y" function yy_r203(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6314 "Core.php" -#line 967 "Core.y" +#line 6379 "Core.php" +#line 1032 "Core.y" function yy_r205(){$this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + 0]->minor, array('global' => $this->yystack[$this->yyidx + 0]->minor)); } -#line 6317 "Core.php" -#line 968 "Core.y" +#line 6382 "Core.php" +#line 1033 "Core.y" function yy_r206(){$this->_retvalue = new PHP_Parser_CoreyyToken('$' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6320 "Core.php" -#line 969 "Core.y" +#line 6385 "Core.php" +#line 1034 "Core.y" function yy_r207(){ $this->_retvalue = new PHP_Parser_CoreyyToken('${' . $this->yystack[$this->yyidx + -1]->minor->string . '}', $this->yystack[$this->yyidx + -1]->minor); } -#line 6325 "Core.php" -#line 974 "Core.y" +#line 6390 "Core.php" +#line 1039 "Core.y" function yy_r208(){ $this->_retvalue = new PHP_Parser_CoreyyToken(''); $this->_retvalue[] = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = array('static' => $this->yystack[$this->yyidx + 0]->minor, 'default' => null); } -#line 6332 "Core.php" -#line 979 "Core.y" +#line 6397 "Core.php" +#line 1044 "Core.y" function yy_r209(){ $this->_retvalue = new PHP_Parser_CoreyyToken(''); $this->_retvalue[] = $this->yystack[$this->yyidx + -4]->minor; $this->_retvalue[] = array('static' => $this->yystack[$this->yyidx + -2]->minor, 'default' => $this->yystack[$this->yyidx + 0]->minor); } -#line 6339 "Core.php" -#line 984 "Core.y" +#line 6404 "Core.php" +#line 1049 "Core.y" function yy_r210(){ $this->_retvalue = new PHP_Parser_CoreyyToken('', array('static' => $this->yystack[$this->yyidx + 0]->minor, 'default' => null)); } -#line 6344 "Core.php" -#line 987 "Core.y" +#line 6409 "Core.php" +#line 1052 "Core.y" function yy_r211(){ $this->_retvalue = new PHP_Parser_CoreyyToken('', array('static' => $this->yystack[$this->yyidx + -2]->minor, 'default' => $this->yystack[$this->yyidx + 0]->minor)); } -#line 6349 "Core.php" -#line 997 "Core.y" +#line 6414 "Core.php" +#line 1062 "Core.y" function yy_r214(){ $a = array(); foreach ($this->yystack[$this->yyidx + -1]->minor as $item) { @@ -6352,12 +6408,15 @@ 'line' => $item['line'], 'default' => $item['default'], 'modifiers' => $this->yystack[$this->yyidx + -2]->minor, + 'doc' => $item['doc'], + 'parseddoc' => $item['parseddoc'], + 'docline' => $item['docline'], ); } $this->_retvalue = new PHP_Parser_CoreyyToken('', $a); } -#line 6364 "Core.php" -#line 1010 "Core.y" +#line 6432 "Core.php" +#line 1078 "Core.y" function yy_r215(){ $a = array(); foreach ($this->yystack[$this->yyidx + -1]->minor as $item) { @@ -6366,109 +6425,153 @@ 'name' => $item['name'], 'line' => $item['line'], 'value' => $item['value'], + 'doc' => $item['doc'], + 'parseddoc' => $item['parseddoc'], + 'docline' => $item['docline'], ); } $this->_retvalue = new PHP_Parser_CoreyyToken('', $a); } -#line 6378 "Core.php" -#line 1023 "Core.y" +#line 6449 "Core.php" +#line 1093 "Core.y" + function yy_r216(){ + $this->_retvalue = array($this->lex->line, $lastcom); + } +#line 6454 "Core.php" +#line 1096 "Core.y" function yy_r217(){ + list($doc, $parsed, $line) = $this->yystack[$this->yyidx + -6]->minor[1]; $this->_retvalue = new PHP_Parser_CoreyyToken('', array( array( 'type' => 'method', 'name' => $this->yystack[$this->yyidx + -4]->minor, - 'startline' => $this->yystack[$this->yyidx + -6]->minor, + 'startline' => $this->yystack[$this->yyidx + -6]->minor[0], 'endline' => $this->lex->line, 'parameters' => $this->yystack[$this->yyidx + -2]->minor->metadata, 'modifiers' => $this->yystack[$this->yyidx + -7]->minor, - 'info' => $this->yystack[$this->yyidx + 0]->minor->metadata + 'info' => $this->yystack[$this->yyidx + 0]->minor->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ) )); } -#line 6393 "Core.php" -#line 1039 "Core.y" +#line 6473 "Core.php" +#line 1116 "Core.y" function yy_r219(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; } -#line 6398 "Core.php" -#line 1044 "Core.y" +#line 6478 "Core.php" +#line 1121 "Core.y" function yy_r221(){$this->_retvalue = array('public'); } -#line 6401 "Core.php" -#line 1049 "Core.y" +#line 6481 "Core.php" +#line 1126 "Core.y" function yy_r224(){$this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); } -#line 6404 "Core.php" -#line 1055 "Core.y" +#line 6484 "Core.php" +#line 1132 "Core.y" function yy_r226(){$this->_retvalue = strtolower($this->yystack[$this->yyidx + 0]->minor); } -#line 6407 "Core.php" -#line 1057 "Core.y" +#line 6487 "Core.php" +#line 1134 "Core.y" function yy_r227(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor, $this->lex->line); } -#line 6412 "Core.php" -#line 1061 "Core.y" +#line 6492 "Core.php" +#line 1138 "Core.y" function yy_r228(){ + list($doc, $parsed, $line) = $this->lex->getLastComment(); $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = array( 'name' => $this->yystack[$this->yyidx + 0]->minor[0], 'default' => null, 'line' => $this->yystack[$this->yyidx + 0]->minor[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -#line 6422 "Core.php" -#line 1069 "Core.y" +#line 6506 "Core.php" +#line 1150 "Core.y" function yy_r229(){ + list($doc, $parsed, $line) = $this->lex->getLastComment(); $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor; $this->_retvalue[] = array( 'name' => $this->yystack[$this->yyidx + -2]->minor[0], 'default' => $this->yystack[$this->yyidx + 0]->minor, - 'line' => $this->yystack[$this->yyidx + -2]->minor[1] + 'line' => $this->yystack[$this->yyidx + -2]->minor[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -#line 6432 "Core.php" -#line 1077 "Core.y" +#line 6520 "Core.php" +#line 1162 "Core.y" function yy_r230(){ + list($doc, $parsed, $line) = $this->lex->getLastComment(); $this->_retvalue = array( array( 'name' => $this->yystack[$this->yyidx + 0]->minor, 'default' => null, 'line' => $this->lex->line, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ) ); } -#line 6443 "Core.php" -#line 1086 "Core.y" +#line 6535 "Core.php" +#line 1175 "Core.y" function yy_r231(){ + list($doc, $parsed, $line) = $this->lex->getLastComment(); $this->_retvalue = array( array( 'name' => $this->yystack[$this->yyidx + -2]->minor[0], 'default' => $this->yystack[$this->yyidx + 0]->minor, 'line' => $this->yystack[$this->yyidx + -2]->minor[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ) ); } -#line 6454 "Core.php" -#line 1100 "Core.y" +#line 6550 "Core.php" +#line 1189 "Core.y" + function yy_r232(){ + $doc = $this->lex->getLastComment(); + $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor, $this->lex->line, $doc); + } +#line 6556 "Core.php" +#line 1194 "Core.y" function yy_r233(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor; - $this->_retvalue[] = array('name' => $this->yystack[$this->yyidx + -2]->minor[0], 'value' => $this->yystack[$this->yyidx + 0]->minor, 'line' => $this->yystack[$this->yyidx + -2]->minor[1]); + list($doc, $parsed, $line) = $this->yystack[$this->yyidx + -2]->minor[2]; + $this->_retvalue[] = array('name' => $this->yystack[$this->yyidx + -2]->minor[0], 'value' => $this->yystack[$this->yyidx + 0]->minor, 'line' => $this->yystack[$this->yyidx + -2]->minor[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ); } -#line 6460 "Core.php" -#line 1104 "Core.y" +#line 6567 "Core.php" +#line 1203 "Core.y" function yy_r234(){ + list($doc, $parsed, $line) = $this->yystack[$this->yyidx + -2]->minor[2]; $this->_retvalue = array( - array('name' => $this->yystack[$this->yyidx + -2]->minor[0], 'value' => $this->yystack[$this->yyidx + 0]->minor, 'line' => $this->yystack[$this->yyidx + -2]->minor[1]) + array('name' => $this->yystack[$this->yyidx + -2]->minor[0], 'value' => $this->yystack[$this->yyidx + 0]->minor, 'line' => $this->yystack[$this->yyidx + -2]->minor[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ) ); } -#line 6467 "Core.php" -#line 1110 "Core.y" +#line 6579 "Core.php" +#line 1214 "Core.y" function yy_r235(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor;$this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6470 "Core.php" -#line 1122 "Core.y" +#line 6582 "Core.php" +#line 1226 "Core.y" function yy_r241(){ $this->_retvalue = '(' . $this->yystack[$this->yyidx + -1]->minor . ')'; } -#line 6475 "Core.php" -#line 1132 "Core.y" +#line 6587 "Core.php" +#line 1236 "Core.y" function yy_r245(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -4]->minor->string . '->' . $this->yystack[$this->yyidx + -2]->minor->string . $this->yystack[$this->yyidx + -1]->minor->string . $this->yystack[$this->yyidx + 0]->minor->string, array()); @@ -6490,24 +6593,24 @@ } $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6498 "Core.php" -#line 1158 "Core.y" +#line 6610 "Core.php" +#line 1262 "Core.y" function yy_r249(){ $this->_retvalue = new PHP_Parser_CoreyyToken('->' . $this->yystack[$this->yyidx + -1]->minor->string . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -1]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6504 "Core.php" -#line 1163 "Core.y" +#line 6616 "Core.php" +#line 1267 "Core.y" function yy_r250(){ $this->_retvalue = new PHP_Parser_CoreyyToken('(' . $this->yystack[$this->yyidx + -1]->minor . ')', $this->yystack[$this->yyidx + -1]->minor); } -#line 6509 "Core.php" -#line 1169 "Core.y" +#line 6621 "Core.php" +#line 1273 "Core.y" function yy_r253(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); } -#line 6514 "Core.php" -#line 1173 "Core.y" +#line 6626 "Core.php" +#line 1277 "Core.y" function yy_r254(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor . '::' . $this->yystack[$this->yyidx + 0]->minor->string, array( array( @@ -6516,232 +6619,266 @@ )); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6524 "Core.php" -#line 1191 "Core.y" +#line 6636 "Core.php" +#line 1295 "Core.y" function yy_r260(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . '[' . $this->yystack[$this->yyidx + -1]->minor->string . ']', array()); $this->_retvalue[] = $this->yystack[$this->yyidx + -3]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + -1]->minor; } -#line 6531 "Core.php" -#line 1196 "Core.y" +#line 6643 "Core.php" +#line 1300 "Core.y" function yy_r261(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . '{' . $this->yystack[$this->yyidx + -1]->minor->string . '}', array()); $this->_retvalue[] = $this->yystack[$this->yyidx + -3]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + -1]->minor; } -#line 6538 "Core.php" -#line 1204 "Core.y" +#line 6650 "Core.php" +#line 1308 "Core.y" function yy_r264(){$this->_retvalue = new PHP_Parser_CoreyyToken('${' . $this->yystack[$this->yyidx + -1]->minor->string . '}', $this->yystack[$this->yyidx + -1]->minor); } -#line 6541 "Core.php" -#line 1212 "Core.y" +#line 6653 "Core.php" +#line 1316 "Core.y" function yy_r269(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . '[' . $this->yystack[$this->yyidx + -1]->minor->string . ']', $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + -1]->minor; } -#line 6547 "Core.php" -#line 1216 "Core.y" +#line 6659 "Core.php" +#line 1320 "Core.y" function yy_r270(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . '{' . $this->yystack[$this->yyidx + -1]->minor->string . '}', $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + -1]->minor; } -#line 6553 "Core.php" -#line 1223 "Core.y" +#line 6665 "Core.php" +#line 1327 "Core.y" function yy_r273(){$this->_retvalue = new PHP_Parser_CoreyyToken('{' . $this->yystack[$this->yyidx + -1]->minor->string . '}', $this->yystack[$this->yyidx + -1]->minor); } -#line 6556 "Core.php" -#line 1225 "Core.y" +#line 6668 "Core.php" +#line 1329 "Core.y" function yy_r274(){$this->_retvalue = '$'; } -#line 6559 "Core.php" -#line 1226 "Core.y" +#line 6671 "Core.php" +#line 1330 "Core.y" function yy_r275(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor . '$'; } -#line 6562 "Core.php" -#line 1228 "Core.y" +#line 6674 "Core.php" +#line 1332 "Core.y" function yy_r276(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ', ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6568 "Core.php" -#line 1235 "Core.y" +#line 6680 "Core.php" +#line 1339 "Core.y" function yy_r279(){ $this->_retvalue = new PHP_Parser_CoreyyToken('list(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -1]->minor); } -#line 6573 "Core.php" -#line 1240 "Core.y" +#line 6685 "Core.php" +#line 1344 "Core.y" function yy_r281(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor->string . $this->yystack[$this->yyidx + 0]->minor, $this->yystack[$this->yyidx + -1]->minor); } -#line 6578 "Core.php" -#line 1245 "Core.y" +#line 6690 "Core.php" +#line 1349 "Core.y" function yy_r283(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . ' => &' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6584 "Core.php" -#line 1253 "Core.y" +#line 6696 "Core.php" +#line 1357 "Core.y" function yy_r286(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -4]->minor->string . ', ' . $this->yystack[$this->yyidx + -2]->minor->string . ' => ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -4]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6591 "Core.php" -#line 1262 "Core.y" +#line 6703 "Core.php" +#line 1366 "Core.y" function yy_r288(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . ' => ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -2]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6597 "Core.php" -#line 1266 "Core.y" +#line 6709 "Core.php" +#line 1370 "Core.y" function yy_r289(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -5]->minor->string . ', ' . $this->yystack[$this->yyidx + -3]->minor->string . ' => &' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -5]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + -3]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6604 "Core.php" -#line 1271 "Core.y" +#line 6716 "Core.php" +#line 1375 "Core.y" function yy_r290(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . ', &' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6610 "Core.php" -#line 1277 "Core.y" +#line 6722 "Core.php" +#line 1381 "Core.y" function yy_r291(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor->string . $this->yystack[$this->yyidx + 0]->minor, $this->yystack[$this->yyidx + -1]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6616 "Core.php" -#line 1296 "Core.y" +#line 6728 "Core.php" +#line 1400 "Core.y" function yy_r297(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor->string . '[', $this->yystack[$this->yyidx + -1]->minor); } -#line 6621 "Core.php" -#line 1299 "Core.y" +#line 6733 "Core.php" +#line 1403 "Core.y" function yy_r298(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor->string . ']', $this->yystack[$this->yyidx + -1]->minor); } -#line 6626 "Core.php" -#line 1302 "Core.y" +#line 6738 "Core.php" +#line 1406 "Core.y" function yy_r299(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor->string . '{', $this->yystack[$this->yyidx + -1]->minor); } -#line 6631 "Core.php" -#line 1305 "Core.y" +#line 6743 "Core.php" +#line 1409 "Core.y" function yy_r300(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor->string . '}', $this->yystack[$this->yyidx + -1]->minor); } -#line 6636 "Core.php" -#line 1308 "Core.y" +#line 6748 "Core.php" +#line 1412 "Core.y" function yy_r301(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -1]->minor->string . '->', $this->yystack[$this->yyidx + -1]->minor); } -#line 6641 "Core.php" -#line 1314 "Core.y" +#line 6753 "Core.php" +#line 1418 "Core.y" function yy_r304(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor . '[' . $this->yystack[$this->yyidx + -1]->minor . ']'); } -#line 6646 "Core.php" -#line 1317 "Core.y" +#line 6758 "Core.php" +#line 1421 "Core.y" function yy_r305(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor . '->' . $this->yystack[$this->yyidx + 0]->minor); } -#line 6651 "Core.php" -#line 1323 "Core.y" +#line 6763 "Core.php" +#line 1427 "Core.y" function yy_r307(){ $this->_retvalue = new PHP_Parser_CoreyyToken('${' . $this->yystack[$this->yyidx + -4]->minor . '[' . $this->yystack[$this->yyidx + -2]->minor->string . ']}', $this->yystack[$this->yyidx + -2]->minor); } -#line 6656 "Core.php" -#line 1326 "Core.y" +#line 6768 "Core.php" +#line 1430 "Core.y" function yy_r308(){ $this->_retvalue = new PHP_Parser_CoreyyToken('{' . $this->yystack[$this->yyidx + -1]->minor->string, '}', $this->yystack[$this->yyidx + -1]->minor); } -#line 6661 "Core.php" -#line 1330 "Core.y" +#line 6773 "Core.php" +#line 1434 "Core.y" function yy_r309(){ $this->_retvalue = new PHP_Parser_CoreyyToken('isset(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -1]->minor); } -#line 6666 "Core.php" -#line 1333 "Core.y" +#line 6778 "Core.php" +#line 1437 "Core.y" function yy_r310(){ $this->_retvalue = new PHP_Parser_CoreyyToken('empty(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -1]->minor); } -#line 6671 "Core.php" -#line 1336 "Core.y" - function yy_r311(){$this->_retvalue=$this->lex->line; } -#line 6674 "Core.php" -#line 1337 "Core.y" +#line 6783 "Core.php" +#line 1440 "Core.y" + function yy_r311(){$this->_retvalue=array($this->lex->line, $this->lex->getLastComment()); } +#line 6786 "Core.php" +#line 1441 "Core.y" function yy_r312(){ $this->_retvalue = new PHP_Parser_CoreyyToken('include ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); + list($doc, $parsed, $line) = $this->yystack[$this->yyidx + -1]->minor[1]; $this->_retvalue[] = array( 'type' => 'include', 'file' => $this->yystack[$this->yyidx + 0]->minor->string, - 'line' => $this->yystack[$this->yyidx + -1]->minor, + 'line' => $this->yystack[$this->yyidx + -1]->minor[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->includes[] = array( 'type' => 'include', 'file' => $this->yystack[$this->yyidx + 0]->minor->string, - 'line' => $this->yystack[$this->yyidx + -1]->minor, + 'line' => $this->yystack[$this->yyidx + -1]->minor[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -#line 6689 "Core.php" -#line 1351 "Core.y" +#line 6808 "Core.php" +#line 1461 "Core.y" + function yy_r313(){$this->_retvalue=$this->lex->line; } +#line 6811 "Core.php" +#line 1462 "Core.y" function yy_r314(){ $this->_retvalue = new PHP_Parser_CoreyyToken('include_once ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); + list($doc, $parsed, $line) = $this->yystack[$this->yyidx + -1]->minor[1]; $this->_retvalue[] = array( 'type' => 'include_once', 'file' => $this->yystack[$this->yyidx + 0]->minor->string, - 'line' => $this->yystack[$this->yyidx + -1]->minor, + 'line' => $this->yystack[$this->yyidx + -1]->minor[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->includes[] = array( 'type' => 'include_once', 'file' => $this->yystack[$this->yyidx + 0]->minor->string, - 'line' => $this->yystack[$this->yyidx + -1]->minor, + 'line' => $this->yystack[$this->yyidx + -1]->minor[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -#line 6704 "Core.php" -#line 1364 "Core.y" +#line 6833 "Core.php" +#line 1482 "Core.y" function yy_r315(){ $this->_retvalue = new PHP_Parser_CoreyyToken('eval ' . $this->yystack[$this->yyidx + -1]->minor->string, $this->yystack[$this->yyidx + -1]->minor); } -#line 6709 "Core.php" -#line 1368 "Core.y" +#line 6838 "Core.php" +#line 1486 "Core.y" function yy_r317(){ + list($doc, $parsed, $line) = $this->yystack[$this->yyidx + -1]->minor[1]; $this->_retvalue = new PHP_Parser_CoreyyToken('require ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); $this->_retvalue[] = array( 'type' => 'require', 'file' => $this->yystack[$this->yyidx + 0]->minor->string, - 'line' => $this->yystack[$this->yyidx + -1]->minor, + 'line' => $this->yystack[$this->yyidx + -1]->minor[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->includes[] = array( 'type' => 'require', 'file' => $this->yystack[$this->yyidx + 0]->minor->string, - 'line' => $this->yystack[$this->yyidx + -1]->minor, + 'line' => $this->yystack[$this->yyidx + -1]->minor[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -#line 6724 "Core.php" -#line 1382 "Core.y" +#line 6860 "Core.php" +#line 1506 "Core.y" + function yy_r318(){$this->_retvalue=array($this->lex->line,$this->lex->getLastComment()); } +#line 6863 "Core.php" +#line 1507 "Core.y" function yy_r319(){ + list($doc, $parsed, $line) = $this->yystack[$this->yyidx + -1]->minor[1]; $this->_retvalue = new PHP_Parser_CoreyyToken('require_once ' . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + 0]->minor); $this->_retvalue[] = array( 'type' => 'require_once', 'file' => $this->yystack[$this->yyidx + 0]->minor->string, - 'line' => $this->yystack[$this->yyidx + -1]->minor, + 'line' => $this->yystack[$this->yyidx + -1]->minor[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->includes[] = array( 'type' => 'require_once', 'file' => $this->yystack[$this->yyidx + 0]->minor->string, - 'line' => $this->yystack[$this->yyidx + -1]->minor, + 'line' => $this->yystack[$this->yyidx + -1]->minor[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -#line 6739 "Core.php" -#line 1402 "Core.y" +#line 6885 "Core.php" +#line 1534 "Core.y" function yy_r322(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor . '::' . $this->yystack[$this->yyidx + 0]->minor, array('usedclass' => $this->yystack[$this->yyidx + -2]->minor)); $this->_retvalue[] = array('usedclassconstant' => $this->yystack[$this->yyidx + -2]->minor . '::' . $this->yystack[$this->yyidx + 0]->minor); } -#line 6745 "Core.php" -#line 1409 "Core.y" +#line 6891 "Core.php" +#line 1541 "Core.y" function yy_r324(){$this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor . '(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -1]->minor); } -#line 6748 "Core.php" -#line 1410 "Core.y" +#line 6894 "Core.php" +#line 1542 "Core.y" function yy_r325(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -5]->minor . '::' . $this->yystack[$this->yyidx + -3]->minor . '(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -1]->minor); @@ -6755,8 +6892,8 @@ 'name' => trim($this->yystack[$this->yyidx + -3]->minor), ); } -#line 6763 "Core.php" -#line 1423 "Core.y" +#line 6909 "Core.php" +#line 1555 "Core.y" function yy_r326(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -5]->minor . '::' . $this->yystack[$this->yyidx + -3]->minor->string . '(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + -1]->minor; @@ -6765,55 +6902,55 @@ 'name' => trim($this->yystack[$this->yyidx + -5]->minor), ); } -#line 6773 "Core.php" -#line 1431 "Core.y" +#line 6919 "Core.php" +#line 1563 "Core.y" function yy_r327(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . '(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = $this->yystack[$this->yyidx + -1]->minor; } -#line 6779 "Core.php" -#line 1440 "Core.y" +#line 6925 "Core.php" +#line 1572 "Core.y" function yy_r332(){ $this->_retvalue = new PHP_Parser_CoreyyToken('"' . $this->yystack[$this->yyidx + -1]->minor->string . '"', $this->yystack[$this->yyidx + -1]->minor); } -#line 6784 "Core.php" -#line 1443 "Core.y" +#line 6930 "Core.php" +#line 1575 "Core.y" function yy_r333(){ $this->_retvalue = new PHP_Parser_CoreyyToken("'" . $this->yystack[$this->yyidx + -1]->minor->string . "'", $this->yystack[$this->yyidx + -1]->minor); } -#line 6789 "Core.php" -#line 1446 "Core.y" +#line 6935 "Core.php" +#line 1578 "Core.y" function yy_r334(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -2]->minor->string . $this->yystack[$this->yyidx + -1]->minor->string . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -1]->minor); } -#line 6794 "Core.php" -#line 1453 "Core.y" +#line 6940 "Core.php" +#line 1585 "Core.y" function yy_r337(){ $this->_retvalue = new PHP_Parser_CoreyyToken($this->yystack[$this->yyidx + -3]->minor->string . '->' . $this->yystack[$this->yyidx + -1]->minor->string . $this->yystack[$this->yyidx + 0]->minor->string, $this->yystack[$this->yyidx + -3]->minor); $this->_retvalue[] = array('usedmember' => array($this->yystack[$this->yyidx + -3]->minor->string, $this->yystack[$this->yyidx + -1]->minor->string)); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6801 "Core.php" -#line 1460 "Core.y" +#line 6947 "Core.php" +#line 1592 "Core.y" function yy_r339(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; $this->yystack[$this->yyidx + -1]->minor[] = $this->yystack[$this->yyidx + 0]->minor; } -#line 6807 "Core.php" -#line 1466 "Core.y" +#line 6953 "Core.php" +#line 1598 "Core.y" function yy_r341(){ $this->_retvalue = new PHP_Parser_CoreyyToken('->' . $this->yystack[$this->yyidx + 0]->minor->string, array('usedmember' => $this->yystack[$this->yyidx + 0]->minor->string)); } -#line 6812 "Core.php" -#line 1475 "Core.y" +#line 6958 "Core.php" +#line 1607 "Core.y" function yy_r344(){$this->_retvalue = ','; } -#line 6815 "Core.php" -#line 1487 "Core.y" +#line 6961 "Core.php" +#line 1619 "Core.y" function yy_r350(){$this->_retvalue = true; } -#line 6818 "Core.php" -#line 1488 "Core.y" +#line 6964 "Core.php" +#line 1620 "Core.y" function yy_r351(){$this->_retvalue = false; } -#line 6821 "Core.php" +#line 6967 "Core.php" /** * placeholder for the left hand side in a reduce operation. @@ -6942,7 +7079,7 @@ } throw new Exception('Unexpected ' . $this->tokenName($yymajor) . '(' . $TOKEN . '), expected one of: ' . implode(',', $expect)); -#line 6951 "Core.php" +#line 7097 "Core.php" } /** @@ -6962,7 +7099,7 @@ ** parser accepts */ #line 120 "Core.y" -#line 6972 "Core.php" +#line 7118 "Core.php" } /** http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/Parser/Core.y?r1=1.4&r2=1.5&diff_format=u Index: pear/PHP_Parser/Parser/Core.y diff -u pear/PHP_Parser/Parser/Core.y:1.4 pear/PHP_Parser/Parser/Core.y:1.5 --- pear/PHP_Parser/Parser/Core.y:1.4 Sun Mar 4 17:15:46 2007 +++ pear/PHP_Parser/Parser/Core.y Mon Mar 5 05:05:50 2007 @@ -161,14 +161,14 @@ A[] = C; } unticked_statement(A) ::= T_FOR - LPAREN - for_expr(B) - SEMI - for_expr(C) - SEMI - for_expr(D) - RPAREN - for_statement(E). { + LPAREN + for_expr(B) + SEMI + for_expr(C) + SEMI + for_expr(D) + RPAREN + for_statement(E). { A = new PHP_Parser_CoreyyToken(''); A[] = B; A[] = C; @@ -211,14 +211,14 @@ A = new PHP_Parser_CoreyyToken('', B); } unticked_statement(A) ::= T_FOREACH LPAREN variable(B) T_AS - foreach_variable foreach_optional_arg RPAREN - foreach_statement(C). { + foreach_variable foreach_optional_arg RPAREN + foreach_statement(C). { A = new PHP_Parser_CoreyyToken('', B); A[] = C; } unticked_statement(A) ::= T_FOREACH LPAREN expr_without_variable(B) T_AS - variable foreach_optional_arg RPAREN - foreach_statement(C). { + variable foreach_optional_arg RPAREN + foreach_statement(C). { A = new PHP_Parser_CoreyyToken('', B); A[] = C; } @@ -228,11 +228,11 @@ } unticked_statement ::= SEMI. unticked_statement(A) ::= T_TRY LCURLY inner_statement_list(B) RCURLY - T_CATCH LPAREN - fully_qualified_class_name(C) - T_VARIABLE RPAREN - LCURLY inner_statement_list(D) RCURLY - additional_catches(E). { + T_CATCH LPAREN + fully_qualified_class_name(C) + T_VARIABLE RPAREN + LCURLY inner_statement_list(D) RCURLY + additional_catches(E). { A = new PHP_Parser_CoreyyToken(''); A[] = array('catches' => C); A[] = B; @@ -293,10 +293,11 @@ get_func_line(A) ::= T_FUNCTION. {A = $this->lex->line;} unticked_function_declaration_statement(A) ::= - get_func_line(LINE) is_reference(ref) T_STRING(funcname) LPAREN parameter_list(params) RPAREN - LCURLY inner_statement_list(funcinfo) RCURLY. { - A = new PHP_Parser_CoreyyToken('function ' . (ref ? '&' : '') . - funcname . '(' . params->string . ')'); + get_func_line(LINE) is_reference(ref) T_STRING(funcname) LPAREN parameter_list(params) RPAREN + LCURLY inner_statement_list(funcinfo) RCURLY. { + A = new PHP_Parser_CoreyyToken('function ' . (ref ? '&' : '') . + funcname . '(' . params->string . ')'); + list($doc, $parsed, $line) = $this->lex->getLastComment(); A[] = array( 'type' => 'function', 'startline' => LINE, @@ -305,6 +306,9 @@ 'name' => funcname, 'parameters' => params->metadata, 'info' => funcinfo->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->functions[funcname][] = array( 'type' => 'function', @@ -314,57 +318,74 @@ 'name' => funcname, 'parameters' => params->metadata, 'info' => funcinfo->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } unticked_class_declaration_statement(A) ::= - class_entry_type(classtype) T_STRING(C) extends_from(ext) - implements_list(impl) - LCURLY - class_statement_list(cinfo) - RCURLY. { - A = new PHP_Parser_CoreyyToken('', array( - 'type' => classtype['type'], + class_entry_type(classtype) T_STRING(C) extends_from(ext) + implements_list(impl) + LCURLY + class_statement_list(cinfo) + RCURLY. { + list($doc, $parsed, $line) = $this->lex->getLastComment(); + A = new PHP_Parser_CoreyyToken('', array( + 'type' => classtype['type'], 'startline' => classtype['line'], 'endline' => $this->lex->line, - 'modifiers' => classtype['modifiers'], - 'name' => C, - 'extends' => ext->metadata, - 'implements' => impl->metadata, - 'info' => cinfo->metadata, - )); - $this->classes[C][] = array( - 'type' => classtype['type'], + 'modifiers' => classtype['modifiers'], + 'name' => C, + 'extends' => ext->metadata, + 'implements' => impl->metadata, + 'info' => cinfo->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + )); + $this->classes[C][] = array( + 'type' => classtype['type'], 'startline' => classtype['line'], 'endline' => $this->lex->line, - 'modifiers' => classtype['modifiers'], - 'name' => C, - 'extends' => ext->metadata, - 'implements' => impl->metadata, - 'info' => cinfo->metadata, - ); + 'modifiers' => classtype['modifiers'], + 'name' => C, + 'extends' => ext->metadata, + 'implements' => impl->metadata, + 'info' => cinfo->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ); } unticked_class_declaration_statement(A) ::= - interface_entry(LINE) T_STRING(B) - interface_extends_list(C) - LCURLY - class_statement_list(D) - RCURLY. { + interface_entry(LINE) T_STRING(B) + interface_extends_list(C) + LCURLY + class_statement_list(D) + RCURLY. { + list($doc, $parsed, $line) = $this->lex->getLastComment(); A = new PHP_Parser_CoreyyToken('', array( - 'type' => 'interface', + 'type' => 'interface', 'startline' => LINE, 'endline' => $this->lex->line, - 'name' => B, - 'extends' => C->metadata, - 'info' => D->metadata, + 'name' => B, + 'extends' => C->metadata, + 'info' => D->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, )); $this->interfaces[B][] = array( - 'type' => 'interface', + 'type' => 'interface', 'startline' => LINE, 'endline' => $this->lex->line, - 'name' => B, - 'extends' => C->metadata, - 'info' => D->metadata, + 'name' => B, + 'extends' => C->metadata, + 'info' => D->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } @@ -402,12 +423,16 @@ } expr_without_variable(A) ::= variable(VAR) EQUALS expr(E). { if ($this->lex->globalSearch(VAR->string)) { + list($doc, $parsed, $line) = $this->lex->getLastComment(); A = new PHP_Parser_CoreyyToken(VAR->string . ' = ' . E->string, array( 'type' => 'global', 'name' => VAR->string, 'line' => $this->lex->line, 'default' => E->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, )); A[] = VAR; A[] = E; @@ -416,6 +441,9 @@ 'name' => VAR->string, 'line' => $this->lex->line, 'default' => E->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } else { A = new PHP_Parser_CoreyyToken(VAR->string . ' = ' . E->string, VAR); @@ -424,15 +452,29 @@ } expr_without_variable(A) ::= variable(VAR) EQUALS AMPERSAND variable(E).{ if ($this->lex->globalSearch(VAR->string)) { + list($doc, $parsed, $line) = $this->lex->getLastComment(); A = new PHP_Parser_CoreyyToken(VAR->string . ' = ' . E->string, array( 'type' => 'global', 'name' => VAR->string, 'line' => $this->lex->line, 'default' => '&' . E->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, )); A[] = VAR; A[] = E; + $this->globals[VAR->string][] = + array( + 'type' => 'global', + 'name' => VAR->string, + 'line' => $this->lex->line, + 'default' => '&' . E->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ); } else { A = new PHP_Parser_CoreyyToken(VAR->string . ' = &' . E->string, VAR); A[] = E; @@ -442,14 +484,28 @@ expr_without_variable(A) ::= variable(VAR) EQUALS AMPERSAND T_NEW class_name_reference(CL) ctor_arguments(ARGS). { $c = is_string(CL) ? CL : CL->string; if ($this->lex->globalSearch(VAR->string)) { + list($doc, $parsed, $line) = $this->lex->getLastComment(); A = new PHP_Parser_CoreyyToken(VAR->string . ' = &new ' . $c . ARGS->string, array( 'type' => 'global', 'name' => VAR->string, 'line' => $this->lex->line, 'default' => '&new ' . CL->string . ARGS->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, )); A[] = VAR; + $this->globals[VAR->string][] = + array( + 'type' => 'global', + 'name' => VAR->string, + 'line' => $this->lex->line, + 'default' => '&new ' . CL->string . ARGS->string, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ); } else { A = new PHP_Parser_CoreyyToken(VAR->string . ' = &new ' . $c . ARGS->string, VAR); } @@ -654,8 +710,8 @@ A = new PHP_Parser_CoreyyToken('(' . B->string . ')', B); } expr_without_variable(A) ::= expr(B) QUESTION - expr(C) COLON - expr(D). { + expr(C) COLON + expr(D). { A = new PHP_Parser_CoreyyToken(B->string . ' ? ' . C->string . ' : ' . D->string, B); A[] = C; A[] = D; @@ -712,14 +768,14 @@ exit_expr(A) ::= . {A = new PHP_Parser_CoreyyToken('');} common_scalar(A) ::= - T_LNUMBER - |T_DNUMBER - |T_CONSTANT_ENCAPSED_STRING - |T_LINE - |T_FILE - |T_CLASS_C - |T_METHOD_C - |T_FUNC_C(B). {A = B;} + T_LNUMBER + |T_DNUMBER + |T_CONSTANT_ENCAPSED_STRING + |T_LINE + |T_FILE + |T_CLASS_C + |T_METHOD_C + |T_FUNC_C(B). {A = B;} /* compile-time evaluated scalars */ static_scalar(A) ::= common_scalar(B). {A = B;} @@ -1003,6 +1059,9 @@ 'line' => $item['line'], 'default' => $item['default'], 'modifiers' => mod, + 'doc' => $item['doc'], + 'parseddoc' => $item['parseddoc'], + 'docline' => $item['docline'], ); } A = new PHP_Parser_CoreyyToken('', $a); @@ -1015,21 +1074,30 @@ 'name' => $item['name'], 'line' => $item['line'], 'value' => $item['value'], + 'doc' => $item['doc'], + 'parseddoc' => $item['parseddoc'], + 'docline' => $item['docline'], ); } A = new PHP_Parser_CoreyyToken('', $a); } -get_method_line(A) ::= T_FUNCTION. {A = $this->lex->line;} +get_method_line(A) ::= T_FUNCTION. { + A = array($this->lex->line, $lastcom); +} class_statement(A) ::= method_modifiers(mod) get_method_line(LINE) is_reference T_STRING(B) LPAREN parameter_list(params) RPAREN method_body(M). { + list($doc, $parsed, $line) = LINE[1]; A = new PHP_Parser_CoreyyToken('', array( array( 'type' => 'method', 'name' => B, - 'startline' => LINE, + 'startline' => LINE[0], 'endline' => $this->lex->line, 'parameters' => params->metadata, 'modifiers' => mod, - 'info' => M->metadata + 'info' => M->metadata, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ) )); } @@ -1058,52 +1126,79 @@ A = array(B, $this->lex->line); } -class_variable_declaration(A) ::= class_variable_declaration(list) COMMA get_variable_line(var). { - A = list; +class_variable_declaration(A) ::= class_variable_declaration(LIST) COMMA get_variable_line(var). { + list($doc, $parsed, $line) = $this->lex->getLastComment(); + A = LIST; A[] = array( 'name' => var[0], 'default' => null, 'line' => var[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -class_variable_declaration(A) ::= class_variable_declaration(list) COMMA get_variable_line(var) EQUALS static_scalar(val). { - A = list; +class_variable_declaration(A) ::= class_variable_declaration(LIST) COMMA get_variable_line(var) EQUALS static_scalar(val). { + list($doc, $parsed, $line) = $this->lex->getLastComment(); + A = LIST; A[] = array( 'name' => var[0], 'default' => val, - 'line' => var[1] + 'line' => var[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } class_variable_declaration(A) ::= T_VARIABLE(B). { + list($doc, $parsed, $line) = $this->lex->getLastComment(); A = array( array( 'name' => B, 'default' => null, 'line' => $this->lex->line, + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ) ); } class_variable_declaration(A) ::= get_variable_line(var) EQUALS static_scalar(val). { + list($doc, $parsed, $line) = $this->lex->getLastComment(); A = array( array( 'name' => var[0], 'default' => val, 'line' => var[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ) ); } get_constant_line(A) ::= T_STRING(B). { - A = array(B, $this->lex->line); + $doc = $this->lex->getLastComment(); + A = array(B, $this->lex->line, $doc); } -class_constant_declaration(A) ::= class_constant_declaration(list) COMMA get_constant_line(n) EQUALS static_scalar(v). { - A = list; - A[] = array('name' => n[0], 'value' => v, 'line' => n[1]); +class_constant_declaration(A) ::= class_constant_declaration(LIST) COMMA get_constant_line(n) EQUALS static_scalar(v). { + A = LIST; + list($doc, $parsed, $line) = n[2]; + A[] = array('name' => n[0], 'value' => v, 'line' => n[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ); } class_constant_declaration(A) ::= T_CONST get_constant_line(n) EQUALS static_scalar(v). { + list($doc, $parsed, $line) = n[2]; A = array( - array('name' => n[0], 'value' => v, 'line' => n[1]) + array('name' => n[0], 'value' => v, 'line' => n[1], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, + ) ); } @@ -1187,7 +1282,7 @@ A = new PHP_Parser_CoreyyToken(I . B->string, B); } base_variable(A) ::= static_member(B). {A = B;} - + reference_variable(A) ::= reference_variable(REF) LBRACKET dim_offset(DIM) RBRACKET. { A = new PHP_Parser_CoreyyToken(REF->string . '[' . DIM->string . ']', array()); A[] = REF; @@ -1333,63 +1428,91 @@ internal_functions_in_yacc(A) ::= T_EMPTY LPAREN variable(B) RPAREN. { A = new PHP_Parser_CoreyyToken('empty(' . B->string . ')', B); } -get_include_line(A) ::= T_INCLUDE. {A=$this->lex->line;} +get_include_line(A) ::= T_INCLUDE. {A=array($this->lex->line, $this->lex->getLastComment());} internal_functions_in_yacc(A) ::= get_include_line(LINE) expr(B). { A = new PHP_Parser_CoreyyToken('include ' . B->string, B); + list($doc, $parsed, $line) = LINE[1]; A[] = array( 'type' => 'include', 'file' => B->string, - 'line' => LINE, + 'line' => LINE[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->includes[] = array( 'type' => 'include', 'file' => B->string, - 'line' => LINE, + 'line' => LINE[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } get_include_once_line(A) ::= T_INCLUDE_ONCE. {A=$this->lex->line;} internal_functions_in_yacc(A) ::= get_include_once_line(LINE) expr(B). { A = new PHP_Parser_CoreyyToken('include_once ' . B->string, B); + list($doc, $parsed, $line) = LINE[1]; A[] = array( 'type' => 'include_once', 'file' => B->string, - 'line' => LINE, + 'line' => LINE[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->includes[] = array( 'type' => 'include_once', 'file' => B->string, - 'line' => LINE, + 'line' => LINE[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } internal_functions_in_yacc(A) ::= T_EVAL LPAREN expr(B) RPAREN. { A = new PHP_Parser_CoreyyToken('eval ' . B->string, B); } -get_require_line(A) ::= T_REQUIRE. {A=$this->lex->line;} +get_require_line(A) ::= T_REQUIRE. {A=array($this->lex->line, $this->lex->getLastComment());} internal_functions_in_yacc(A) ::= get_require_line(LINE) expr(B). { + list($doc, $parsed, $line) = LINE[1]; A = new PHP_Parser_CoreyyToken('require ' . B->string, B); A[] = array( 'type' => 'require', 'file' => B->string, - 'line' => LINE, + 'line' => LINE[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->includes[] = array( 'type' => 'require', 'file' => B->string, - 'line' => LINE, + 'line' => LINE[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } -get_require_once_line(A) ::= T_REQUIRE_ONCE. {A=$this->lex->line;} +get_require_once_line(A) ::= T_REQUIRE_ONCE. {A=array($this->lex->line,$this->lex->getLastComment());} internal_functions_in_yacc(A) ::= get_require_once_line(LINE) expr(B). { + list($doc, $parsed, $line) = LINE[1]; A = new PHP_Parser_CoreyyToken('require_once ' . B->string, B); A[] = array( 'type' => 'require_once', 'file' => B->string, - 'line' => LINE, + 'line' => LINE[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); $this->includes[] = array( 'type' => 'require_once', 'file' => B->string, - 'line' => LINE, + 'line' => LINE[0], + 'doc' => $doc, + 'parseddoc' => $parsed, + 'docline' => $line, ); } http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/Parser/Tokenizer.php?r1=1.12&r2=1.13&diff_format=u Index: pear/PHP_Parser/Parser/Tokenizer.php diff -u pear/PHP_Parser/Parser/Tokenizer.php:1.12 pear/PHP_Parser/Parser/Tokenizer.php:1.13 --- pear/PHP_Parser/Parser/Tokenizer.php:1.12 Sun Mar 4 17:15:46 2007 +++ pear/PHP_Parser/Parser/Tokenizer.php Mon Mar 5 05:05:50 2007 @@ -16,7 +16,7 @@ // | Authors: nobody <nobody@localhost> | // +----------------------------------------------------------------------+ // -// $Id: Tokenizer.php,v 1.12 2007/03/04 17:15:46 cellog Exp $ +// $Id: Tokenizer.php,v 1.13 2007/03/05 05:05:50 cellog Exp $ // require_once 'PHP/Parser/Core.php'; @@ -40,7 +40,7 @@ * - {@link $line} - current line number * - {@link $pos} - current token id * - {@link $N} - total no. of tokens -* @version $Id: Tokenizer.php,v 1.12 2007/03/04 17:15:46 cellog Exp $ +* @version $Id: Tokenizer.php,v 1.13 2007/03/05 05:05:50 cellog Exp $ */ class PHP_Parser_Tokenizer { @@ -126,7 +126,7 @@ */ var $lastCommentLine; - + /** * The string of the last Comment Token * @@ -135,6 +135,15 @@ */ var $lastComment; + + /** + * The string of the last Comment Token + * + * @var string + * @access public + */ + + var $lastParsedComment; /** * String of global variable to search for @@ -248,20 +257,22 @@ * * * - * @return array ($commmentstring and $tokenPosition) + * @return array array('comment' => $commmentstring, 'parsed' => $parsed, 'line' => $linenumber) * @access public */ function getLastComment() { $com = $this->lastComment; + $last = $this->lastParsedComment; $tok = $this->lastCommentToken; $line = $this->lastCommentLine; $this->lastComment = ''; + $this->lastParsedComment = false; $this->lastCommentToken = -1; $this->lastCommentLine = -1; - return array($com, $tok, $line); + return array($com, $last, $line); } /** @@ -279,7 +290,7 @@ $this->lastParsedComment = $this->_docParser->parse($this->lastComment, $this); } catch (Exception $e) { - + $this->lastParsedComment = false; } } } @@ -321,21 +332,16 @@ // comments - store for phpdoc case T_DOC_COMMENT; - - case T_COMMENT: - $this->lastComment = ''; - $this->lastCommentToken = -1; - $this->lastCommentLine = -1; if (substr($this->tokens[$this->pos][1], 0, 3) == '/**') { + $this->lastComment = ''; + $this->lastCommentToken = -1; + $this->lastCommentLine = -1; $this->_handleDocumentation(); } $this->line += substr_count ($this->tokens[$this->pos][1], "\n"); $this->pos++; continue; - - $this->_handleDocumentation(); - // ... continues into m/l skipeed tags.. // large case T_OPEN_TAG: @@ -351,11 +357,6 @@ //--- begin returnable values-- - // end statement - clear any comment details. - case 59; // ord(';'): - $this->lastComment = ''; - $this->lastCommentToken = -1; - // everything else! default: $this->line += substr_count ($this->tokens[$this->pos][1], "\n"); http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/tests/array_whitespace.phpt?r1=1.2&r2=1.3&diff_format=u Index: pear/PHP_Parser/tests/array_whitespace.phpt diff -u pear/PHP_Parser/tests/array_whitespace.phpt:1.2 pear/PHP_Parser/tests/array_whitespace.phpt:1.3 --- pear/PHP_Parser/tests/array_whitespace.phpt:1.2 Wed Feb 28 05:18:11 2007 +++ pear/PHP_Parser/tests/array_whitespace.phpt Mon Mar 5 05:05:50 2007 @@ -21,7 +21,7 @@ --EXPECT-- array(1) { [0]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -70,6 +70,12 @@ string(4) "Test" } } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } } array(0) { @@ -80,7 +86,7 @@ ["test1"]=> array(1) { [0]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -129,6 +135,12 @@ string(4) "Test" } } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } } } http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/tests/global_var.phpt?r1=1.1&r2=1.2&diff_format=u Index: pear/PHP_Parser/tests/global_var.phpt diff -u pear/PHP_Parser/tests/global_var.phpt:1.1 pear/PHP_Parser/tests/global_var.phpt:1.2 --- pear/PHP_Parser/tests/global_var.phpt:1.1 Sun Mar 4 17:15:46 2007 +++ pear/PHP_Parser/tests/global_var.phpt Mon Mar 5 05:05:50 2007 @@ -37,7 +37,7 @@ --EXPECT-- array(1) { [0]=> - array(4) { + array(7) { ["type"]=> string(6) "global" ["name"]=> @@ -46,6 +46,32 @@ int(6) ["default"]=> string(11) ""holy crap"" + ["doc"]=> + string(48) "/** + * @global string $GLOBALS['hi there'] + */" + ["parseddoc"]=> + array(2) { + ["desc"]=> + string(3) " + " + ["tags"]=> + array(1) { + ["global"]=> + array(1) { + [0]=> + array(2) { + ["tag"]=> + string(6) "global" + ["text"]=> + string(30) " string $GLOBALS['hi there'] +" + } + } + } + } + ["docline"]=> + int(3) } } array(0) { @@ -60,7 +86,7 @@ ["$GLOBALS['hi there']"]=> array(1) { [0]=> - array(4) { + array(7) { ["type"]=> string(6) "global" ["name"]=> @@ -69,6 +95,32 @@ int(6) ["default"]=> string(11) ""holy crap"" + ["doc"]=> + string(48) "/** + * @global string $GLOBALS['hi there'] + */" + ["parseddoc"]=> + array(2) { + ["desc"]=> + string(3) " + " + ["tags"]=> + array(1) { + ["global"]=> + array(1) { + [0]=> + array(2) { + ["tag"]=> + string(6) "global" + ["text"]=> + string(30) " string $GLOBALS['hi there'] +" + } + } + } + } + ["docline"]=> + int(3) } } } http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/tests/unticked_class_statement1.phpt?r1=1.3&r2=1.4&diff_format=u Index: pear/PHP_Parser/tests/unticked_class_statement1.phpt diff -u pear/PHP_Parser/tests/unticked_class_statement1.phpt:1.3 pear/PHP_Parser/tests/unticked_class_statement1.phpt:1.4 --- pear/PHP_Parser/tests/unticked_class_statement1.phpt:1.3 Wed Feb 28 05:18:11 2007 +++ pear/PHP_Parser/tests/unticked_class_statement1.phpt Mon Mar 5 05:05:50 2007 @@ -21,7 +21,7 @@ --EXPECT-- array(7) { [0]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -42,9 +42,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -67,9 +73,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [2]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -92,9 +104,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [3]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -117,9 +135,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [4]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -142,9 +166,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [5]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -169,9 +199,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [6]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -192,7 +228,7 @@ ["info"]=> array(42) { [0]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -206,9 +242,15 @@ [0]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [1]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -222,9 +264,15 @@ [0]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [2]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -238,9 +286,15 @@ [0]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [3]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -256,9 +310,15 @@ [1]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [4]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -274,9 +334,15 @@ [1]=> string(9) "protected" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [5]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -292,9 +358,15 @@ [1]=> string(5) "final" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [6]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -310,9 +382,15 @@ [1]=> string(8) "abstract" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [7]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -328,9 +406,15 @@ [1]=> string(7) "private" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [8]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -346,9 +430,15 @@ [1]=> string(7) "private" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [9]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -364,9 +454,15 @@ [1]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [10]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -382,9 +478,15 @@ [1]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [11]=> - array(4) { + array(7) { ["type"]=> string(5) "const" ["name"]=> @@ -393,9 +495,15 @@ int(54) ["value"]=> string(13) "array(1 => 2)" + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [12]=> - array(4) { + array(7) { ["type"]=> string(5) "const" ["name"]=> @@ -404,9 +512,15 @@ int(56) ["value"]=> string(1) "1" + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [13]=> - array(4) { + array(7) { ["type"]=> string(5) "const" ["name"]=> @@ -415,9 +529,15 @@ int(56) ["value"]=> string(7) "'matey'" + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [14]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -437,9 +557,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [15]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -459,9 +585,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [16]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -481,9 +613,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [17]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -513,9 +651,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [18]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -546,9 +690,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [19]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -579,9 +729,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [20]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -612,9 +768,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [21]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -645,9 +807,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [22]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -678,9 +846,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [23]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -711,9 +885,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [24]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -744,9 +924,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [25]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -777,9 +963,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [26]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -810,9 +1002,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [27]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -843,9 +1041,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [28]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -876,9 +1080,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [29]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -909,9 +1119,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [30]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -953,9 +1169,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [31]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -997,9 +1219,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [32]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1041,9 +1269,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [33]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1085,9 +1319,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [34]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1129,9 +1369,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [35]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1173,9 +1419,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [36]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1217,9 +1469,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [37]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1261,9 +1519,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [38]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1305,9 +1569,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [39]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1349,9 +1619,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [40]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1393,9 +1669,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [41]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1437,15 +1719,27 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } array(1) { ["foo"]=> array(7) { [0]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -1466,9 +1760,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -1491,9 +1791,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [2]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -1516,9 +1822,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [3]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -1541,9 +1853,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [4]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -1566,9 +1884,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [5]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -1593,9 +1917,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [6]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -1616,7 +1946,7 @@ ["info"]=> array(42) { [0]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1630,9 +1960,15 @@ [0]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [1]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1646,9 +1982,15 @@ [0]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [2]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1662,9 +2004,15 @@ [0]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [3]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1680,9 +2028,15 @@ [1]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [4]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1698,9 +2052,15 @@ [1]=> string(9) "protected" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [5]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1716,9 +2076,15 @@ [1]=> string(5) "final" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [6]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1734,9 +2100,15 @@ [1]=> string(8) "abstract" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [7]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1752,9 +2124,15 @@ [1]=> string(7) "private" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [8]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1770,9 +2148,15 @@ [1]=> string(7) "private" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [9]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1788,9 +2172,15 @@ [1]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [10]=> - array(5) { + array(8) { ["type"]=> string(3) "var" ["name"]=> @@ -1806,9 +2196,15 @@ [1]=> string(6) "public" } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [11]=> - array(4) { + array(7) { ["type"]=> string(5) "const" ["name"]=> @@ -1817,9 +2213,15 @@ int(54) ["value"]=> string(13) "array(1 => 2)" + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [12]=> - array(4) { + array(7) { ["type"]=> string(5) "const" ["name"]=> @@ -1828,9 +2230,15 @@ int(56) ["value"]=> string(1) "1" + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [13]=> - array(4) { + array(7) { ["type"]=> string(5) "const" ["name"]=> @@ -1839,9 +2247,15 @@ int(56) ["value"]=> string(7) "'matey'" + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [14]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1861,9 +2275,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [15]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1883,9 +2303,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [16]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1905,9 +2331,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [17]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1937,9 +2369,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [18]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -1970,9 +2408,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [19]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2003,9 +2447,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [20]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2036,9 +2486,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [21]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2069,9 +2525,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [22]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2102,9 +2564,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [23]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2135,9 +2603,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [24]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2168,9 +2642,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [25]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2201,9 +2681,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [26]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2234,9 +2720,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [27]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2267,9 +2759,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [28]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2300,9 +2798,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [29]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2333,9 +2837,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [30]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2377,9 +2887,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [31]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2421,9 +2937,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [32]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2465,9 +2987,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [33]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2509,9 +3037,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [34]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2553,9 +3087,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [35]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2597,9 +3137,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [36]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2641,9 +3187,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [37]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2685,9 +3237,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [38]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2729,9 +3287,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [39]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2773,9 +3337,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [40]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2817,9 +3387,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [41]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -2861,8 +3437,20 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } } http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/tests/unticked_class_statement2.phpt?r1=1.2&r2=1.3&diff_format=u Index: pear/PHP_Parser/tests/unticked_class_statement2.phpt diff -u pear/PHP_Parser/tests/unticked_class_statement2.phpt:1.2 pear/PHP_Parser/tests/unticked_class_statement2.phpt:1.3 --- pear/PHP_Parser/tests/unticked_class_statement2.phpt:1.2 Wed Feb 28 05:18:11 2007 +++ pear/PHP_Parser/tests/unticked_class_statement2.phpt Mon Mar 5 05:05:50 2007 @@ -21,7 +21,7 @@ --EXPECT-- array(1) { [0]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -42,7 +42,7 @@ ["info"]=> array(2) { [0]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -62,9 +62,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -208,7 +214,7 @@ string(9) "Classname" } [20]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -225,9 +231,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [21]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -248,9 +260,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [22]=> - array(6) { + array(9) { ["type"]=> string(9) "interface" ["startline"]=> @@ -265,17 +283,35 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } array(2) { ["inside"]=> array(1) { [0]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -296,12 +332,18 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } ["test"]=> array(1) { [0]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -322,7 +364,7 @@ ["info"]=> array(2) { [0]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -342,9 +384,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -488,7 +536,7 @@ string(9) "Classname" } [20]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -505,9 +553,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [21]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -528,9 +582,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [22]=> - array(6) { + array(9) { ["type"]=> string(9) "interface" ["startline"]=> @@ -545,10 +605,28 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } } @@ -556,7 +634,7 @@ ["inside"]=> array(1) { [0]=> - array(6) { + array(9) { ["type"]=> string(9) "interface" ["startline"]=> @@ -571,6 +649,12 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } } @@ -578,7 +662,7 @@ ["inside"]=> array(1) { [0]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -595,6 +679,12 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } } } http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/tests/unticked_class_statement3.phpt?r1=1.2&r2=1.3&diff_format=u Index: pear/PHP_Parser/tests/unticked_class_statement3.phpt diff -u pear/PHP_Parser/tests/unticked_class_statement3.phpt:1.2 pear/PHP_Parser/tests/unticked_class_statement3.phpt:1.3 --- pear/PHP_Parser/tests/unticked_class_statement3.phpt:1.2 Wed Feb 28 05:18:11 2007 +++ pear/PHP_Parser/tests/unticked_class_statement3.phpt Mon Mar 5 05:05:50 2007 @@ -21,7 +21,7 @@ --EXPECT-- array(1) { [0]=> - array(6) { + array(9) { ["type"]=> string(9) "interface" ["startline"]=> @@ -36,7 +36,7 @@ ["info"]=> array(3) { [0]=> - array(4) { + array(7) { ["type"]=> string(5) "const" ["name"]=> @@ -45,9 +45,15 @@ int(12) ["value"]=> string(1) "1" + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -67,9 +73,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [2]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -122,8 +134,20 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } array(0) { @@ -132,7 +156,7 @@ ["blah"]=> array(1) { [0]=> - array(6) { + array(9) { ["type"]=> string(9) "interface" ["startline"]=> @@ -147,7 +171,7 @@ ["info"]=> array(3) { [0]=> - array(4) { + array(7) { ["type"]=> string(5) "const" ["name"]=> @@ -156,9 +180,15 @@ int(12) ["value"]=> string(1) "1" + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -178,9 +208,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [2]=> - array(7) { + array(10) { ["type"]=> string(6) "method" ["name"]=> @@ -233,8 +269,20 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } } http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/tests/unticked_function_statement1.phpt?r1=1.2&r2=1.3&diff_format=u Index: pear/PHP_Parser/tests/unticked_function_statement1.phpt diff -u pear/PHP_Parser/tests/unticked_function_statement1.phpt:1.2 pear/PHP_Parser/tests/unticked_function_statement1.phpt:1.3 --- pear/PHP_Parser/tests/unticked_function_statement1.phpt:1.2 Wed Feb 28 05:18:11 2007 +++ pear/PHP_Parser/tests/unticked_function_statement1.phpt Mon Mar 5 05:05:50 2007 @@ -21,7 +21,7 @@ --EXPECT-- array(26) { [0]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -38,9 +38,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -57,9 +63,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [2]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -87,9 +99,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [3]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -117,9 +135,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [4]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -147,9 +171,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [5]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -177,9 +207,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [6]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -207,9 +243,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [7]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -237,9 +279,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [8]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -267,9 +315,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [9]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -297,9 +351,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [10]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -327,9 +387,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [11]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -357,9 +423,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [12]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -387,9 +459,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [13]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -417,9 +495,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [14]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -458,9 +542,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [15]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -499,9 +589,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [16]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -540,9 +636,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [17]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -581,9 +683,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [18]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -622,9 +730,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [19]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -663,9 +777,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [20]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -704,9 +824,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [21]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -745,9 +871,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [22]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -786,9 +918,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [23]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -827,9 +965,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [24]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -868,9 +1012,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [25]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -909,6 +1059,12 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } array(0) { @@ -919,7 +1075,7 @@ ["test"]=> array(26) { [0]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -936,9 +1092,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -955,9 +1117,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [2]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -985,9 +1153,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [3]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1015,9 +1189,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [4]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1045,9 +1225,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [5]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1075,9 +1261,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [6]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1105,9 +1297,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [7]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1135,9 +1333,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [8]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1165,9 +1369,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [9]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1195,9 +1405,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [10]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1225,9 +1441,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [11]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1255,9 +1477,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [12]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1285,9 +1513,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [13]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1315,9 +1549,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [14]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1356,9 +1596,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [15]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1397,9 +1643,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [16]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1438,9 +1690,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [17]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1479,9 +1737,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [18]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1520,9 +1784,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [19]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1561,9 +1831,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [20]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1602,9 +1878,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [21]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1643,9 +1925,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [22]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1684,9 +1972,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [23]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1725,9 +2019,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [24]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1766,9 +2066,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [25]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -1807,6 +2113,12 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } } http://cvs.php.net/viewvc.cgi/pear/PHP_Parser/tests/unticked_function_statement2.phpt?r1=1.3&r2=1.4&diff_format=u Index: pear/PHP_Parser/tests/unticked_function_statement2.phpt diff -u pear/PHP_Parser/tests/unticked_function_statement2.phpt:1.3 pear/PHP_Parser/tests/unticked_function_statement2.phpt:1.4 --- pear/PHP_Parser/tests/unticked_function_statement2.phpt:1.3 Wed Feb 28 05:18:11 2007 +++ pear/PHP_Parser/tests/unticked_function_statement2.phpt Mon Mar 5 05:05:50 2007 @@ -21,7 +21,7 @@ --EXPECT-- array(2) { [0]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -38,9 +38,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -181,7 +187,7 @@ string(9) "Classname" } [20]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -198,9 +204,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [21]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -221,9 +233,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [22]=> - array(6) { + array(9) { ["type"]=> string(9) "interface" ["startline"]=> @@ -238,15 +256,27 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } array(1) { ["inside"]=> array(1) { [0]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -267,6 +297,12 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } } @@ -274,7 +310,7 @@ ["inside"]=> array(1) { [0]=> - array(6) { + array(9) { ["type"]=> string(9) "interface" ["startline"]=> @@ -289,6 +325,12 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } } @@ -296,7 +338,7 @@ ["test"]=> array(2) { [0]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -313,9 +355,15 @@ ["info"]=> array(0) { } + ["doc"]=> + NULL + ["parseddoc"]=> + NULL + ["docline"]=> + NULL } [1]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -456,7 +504,7 @@ string(9) "Classname" } [20]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -473,9 +521,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [21]=> - array(8) { + array(11) { ["type"]=> string(5) "class" ["startline"]=> @@ -496,9 +550,15 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } [22]=> - array(6) { + array(9) { ["type"]=> string(9) "interface" ["startline"]=> @@ -513,14 +573,26 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } ["inside"]=> array(1) { [0]=> - array(7) { + array(10) { ["type"]=> string(8) "function" ["startline"]=> @@ -537,6 +609,12 @@ ["info"]=> array(0) { } + ["doc"]=> + string(0) "" + ["parseddoc"]=> + bool(false) + ["docline"]=> + int(-1) } } }