drupal-civicrm/vendor/nikic/php-parser/test/code/parser/blockComments.test

31 lines
347 B
Plaintext
Raw Permalink Normal View History

2018-01-14 15:10:16 +02:00
Comments on blocks
-----
<?php
// foo
{
// bar
{
// baz
$a;
}
}
// empty
{}
-----
array(
0: Expr_Variable(
name: a
comments: array(
0: // foo
1: // bar
2: // baz
)
)
1: Stmt_Nop(
comments: array(
0: // empty
)
)
)