blockComments.test 795 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Comments on blocks
  2. -----
  3. <?php
  4. // foo
  5. {
  6. // bar
  7. {
  8. // baz
  9. $a;
  10. }
  11. }
  12. // empty
  13. {}
  14. -----
  15. array(
  16. 0: Stmt_Block(
  17. stmts: array(
  18. 0: Stmt_Block(
  19. stmts: array(
  20. 0: Stmt_Expression(
  21. expr: Expr_Variable(
  22. name: a
  23. )
  24. comments: array(
  25. 0: // baz
  26. )
  27. )
  28. )
  29. comments: array(
  30. 0: // bar
  31. )
  32. )
  33. )
  34. comments: array(
  35. 0: // foo
  36. )
  37. )
  38. 1: Stmt_Block(
  39. stmts: array(
  40. )
  41. comments: array(
  42. 0: // empty
  43. )
  44. )
  45. )