菜谱项目

groupUsePositions.test 616B

12345678910111213141516171819202122232425262728
  1. Ensure correct file position attributes for group use prefix
  2. -----
  3. <?php
  4. use Foo\Bar\{Baz};
  5. -----
  6. !!positions
  7. array(
  8. 0: Stmt_GroupUse[2:1 - 2:17](
  9. type: TYPE_UNKNOWN (0)
  10. prefix: Name[2:5 - 2:11](
  11. parts: array(
  12. 0: Foo
  13. 1: Bar
  14. )
  15. )
  16. uses: array(
  17. 0: Stmt_UseUse[2:14 - 2:16](
  18. type: TYPE_NORMAL (1)
  19. name: Name[2:14 - 2:16](
  20. parts: array(
  21. 0: Baz
  22. )
  23. )
  24. alias: Baz
  25. )
  26. )
  27. )
  28. )