mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-27 04:24:43 +01:00
cc600b67f6
Conflicts: lib/PhpParser/Parser/Php5.php lib/PhpParser/Parser/Php7.php
36 lines
461 B
Plaintext
36 lines
461 B
Plaintext
Comments on blocks
|
|
-----
|
|
<?php
|
|
|
|
// foo
|
|
{
|
|
// bar
|
|
{
|
|
// baz
|
|
$a;
|
|
}
|
|
}
|
|
|
|
// empty
|
|
{}
|
|
-----
|
|
array(
|
|
0: Stmt_Expression(
|
|
expr: Expr_Variable(
|
|
name: a
|
|
comments: array(
|
|
0: // baz
|
|
)
|
|
)
|
|
comments: array(
|
|
0: // foo
|
|
1: // bar
|
|
2: // baz
|
|
)
|
|
)
|
|
1: Stmt_Nop(
|
|
comments: array(
|
|
0: // empty
|
|
)
|
|
)
|
|
) |