alias.test 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. Aliases (use)
  2. -----
  3. <?php
  4. use A\B;
  5. use C\D as E;
  6. use F\G as H, J;
  7. // evil alias notation - Do Not Use!
  8. use \A;
  9. use \A as B;
  10. -----
  11. array(
  12. 0: Stmt_Use(
  13. uses: array(
  14. 0: Stmt_UseUse(
  15. name: Name(
  16. parts: array(
  17. 0: A
  18. 1: B
  19. )
  20. )
  21. alias: B
  22. )
  23. )
  24. )
  25. 1: Stmt_Use(
  26. uses: array(
  27. 0: Stmt_UseUse(
  28. name: Name(
  29. parts: array(
  30. 0: C
  31. 1: D
  32. )
  33. )
  34. alias: E
  35. )
  36. )
  37. )
  38. 2: Stmt_Use(
  39. uses: array(
  40. 0: Stmt_UseUse(
  41. name: Name(
  42. parts: array(
  43. 0: F
  44. 1: G
  45. )
  46. )
  47. alias: H
  48. )
  49. 1: Stmt_UseUse(
  50. name: Name(
  51. parts: array(
  52. 0: J
  53. )
  54. )
  55. alias: J
  56. )
  57. )
  58. )
  59. 3: Stmt_Use(
  60. uses: array(
  61. 0: Stmt_UseUse(
  62. name: Name(
  63. parts: array(
  64. 0: A
  65. )
  66. )
  67. alias: A
  68. )
  69. )
  70. )
  71. 4: Stmt_Use(
  72. uses: array(
  73. 0: Stmt_UseUse(
  74. name: Name(
  75. parts: array(
  76. 0: A
  77. )
  78. )
  79. alias: B
  80. )
  81. )
  82. )
  83. )