菜谱项目

groupUse.test 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. Group use declarations
  2. -----
  3. <?php
  4. use A\{B};
  5. use A\{B\C, D};
  6. use \A\B\{C\D, E};
  7. use function A\{b\c, d};
  8. use const \A\{B\C, D};
  9. use A\B\{C\D, function b\c, const D};
  10. -----
  11. array(
  12. 0: Stmt_GroupUse(
  13. type: TYPE_UNKNOWN (0)
  14. prefix: Name(
  15. parts: array(
  16. 0: A
  17. )
  18. )
  19. uses: array(
  20. 0: Stmt_UseUse(
  21. type: TYPE_NORMAL (1)
  22. name: Name(
  23. parts: array(
  24. 0: B
  25. )
  26. )
  27. alias: B
  28. )
  29. )
  30. )
  31. 1: Stmt_GroupUse(
  32. type: TYPE_UNKNOWN (0)
  33. prefix: Name(
  34. parts: array(
  35. 0: A
  36. )
  37. )
  38. uses: array(
  39. 0: Stmt_UseUse(
  40. type: TYPE_NORMAL (1)
  41. name: Name(
  42. parts: array(
  43. 0: B
  44. 1: C
  45. )
  46. )
  47. alias: C
  48. )
  49. 1: Stmt_UseUse(
  50. type: TYPE_NORMAL (1)
  51. name: Name(
  52. parts: array(
  53. 0: D
  54. )
  55. )
  56. alias: D
  57. )
  58. )
  59. )
  60. 2: Stmt_GroupUse(
  61. type: TYPE_UNKNOWN (0)
  62. prefix: Name(
  63. parts: array(
  64. 0: A
  65. 1: B
  66. )
  67. )
  68. uses: array(
  69. 0: Stmt_UseUse(
  70. type: TYPE_NORMAL (1)
  71. name: Name(
  72. parts: array(
  73. 0: C
  74. 1: D
  75. )
  76. )
  77. alias: D
  78. )
  79. 1: Stmt_UseUse(
  80. type: TYPE_NORMAL (1)
  81. name: Name(
  82. parts: array(
  83. 0: E
  84. )
  85. )
  86. alias: E
  87. )
  88. )
  89. )
  90. 3: Stmt_GroupUse(
  91. type: TYPE_FUNCTION (2)
  92. prefix: Name(
  93. parts: array(
  94. 0: A
  95. )
  96. )
  97. uses: array(
  98. 0: Stmt_UseUse(
  99. type: TYPE_UNKNOWN (0)
  100. name: Name(
  101. parts: array(
  102. 0: b
  103. 1: c
  104. )
  105. )
  106. alias: c
  107. )
  108. 1: Stmt_UseUse(
  109. type: TYPE_UNKNOWN (0)
  110. name: Name(
  111. parts: array(
  112. 0: d
  113. )
  114. )
  115. alias: d
  116. )
  117. )
  118. )
  119. 4: Stmt_GroupUse(
  120. type: TYPE_CONSTANT (3)
  121. prefix: Name(
  122. parts: array(
  123. 0: A
  124. )
  125. )
  126. uses: array(
  127. 0: Stmt_UseUse(
  128. type: TYPE_UNKNOWN (0)
  129. name: Name(
  130. parts: array(
  131. 0: B
  132. 1: C
  133. )
  134. )
  135. alias: C
  136. )
  137. 1: Stmt_UseUse(
  138. type: TYPE_UNKNOWN (0)
  139. name: Name(
  140. parts: array(
  141. 0: D
  142. )
  143. )
  144. alias: D
  145. )
  146. )
  147. )
  148. 5: Stmt_GroupUse(
  149. type: TYPE_UNKNOWN (0)
  150. prefix: Name(
  151. parts: array(
  152. 0: A
  153. 1: B
  154. )
  155. )
  156. uses: array(
  157. 0: Stmt_UseUse(
  158. type: TYPE_NORMAL (1)
  159. name: Name(
  160. parts: array(
  161. 0: C
  162. 1: D
  163. )
  164. )
  165. alias: D
  166. )
  167. 1: Stmt_UseUse(
  168. type: TYPE_FUNCTION (2)
  169. name: Name(
  170. parts: array(
  171. 0: b
  172. 1: c
  173. )
  174. )
  175. alias: c
  176. )
  177. 2: Stmt_UseUse(
  178. type: TYPE_CONSTANT (3)
  179. name: Name(
  180. parts: array(
  181. 0: D
  182. )
  183. )
  184. alias: D
  185. )
  186. )
  187. )
  188. )