php-parser/test/code/parser/blockComments.test
Nikita Popov cc600b67f6 Merge branch '3.x'
Conflicts:
	lib/PhpParser/Parser/Php5.php
	lib/PhpParser/Parser/Php7.php
2017-10-01 16:55:54 +02:00

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
)
)
)