commentAtEndOfClass.test 815 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. Comment at end of class (#509)
  2. -----
  3. <?php
  4. class MyClass {
  5. protected $a;
  6. // my comment
  7. }
  8. -----
  9. array(
  10. 0: Stmt_Class(
  11. flags: 0
  12. name: Identifier(
  13. name: MyClass
  14. )
  15. extends: null
  16. implements: array(
  17. )
  18. stmts: array(
  19. 0: Stmt_Property(
  20. flags: MODIFIER_PROTECTED (2)
  21. type: null
  22. props: array(
  23. 0: Stmt_PropertyProperty(
  24. name: VarLikeIdentifier(
  25. name: a
  26. )
  27. default: null
  28. )
  29. )
  30. )
  31. 1: Stmt_Nop(
  32. comments: array(
  33. 0: // my comment
  34. )
  35. )
  36. )
  37. )
  38. )