c5d1191a26e60b5d7346dfe077dc864d1d0f140b 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. interface {
  8. name {
  9. name: "A"
  10. }
  11. }
  12. }
  13. declarations {
  14. interface {
  15. name {
  16. name: "B"
  17. }
  18. members {
  19. function {
  20. name {
  21. name: "F"
  22. }
  23. param_pattern {
  24. }
  25. return_term {
  26. kind: Expression
  27. type {
  28. int_type_literal {
  29. }
  30. }
  31. }
  32. }
  33. }
  34. }
  35. }
  36. declarations {
  37. class_declaration {
  38. name {
  39. name: "C"
  40. }
  41. type_params {
  42. fields {
  43. generic_binding {
  44. name: "T"
  45. type {
  46. type_type_literal {
  47. }
  48. }
  49. }
  50. }
  51. }
  52. }
  53. }
  54. declarations {
  55. impl {
  56. kind: ExternalImpl
  57. impl_type {
  58. call {
  59. function {
  60. identifier {
  61. name: "C"
  62. }
  63. }
  64. argument {
  65. tuple_literal {
  66. fields {
  67. identifier {
  68. name: "T"
  69. }
  70. }
  71. }
  72. }
  73. }
  74. }
  75. interface {
  76. operator {
  77. op: BitwiseAnd
  78. arguments {
  79. call {
  80. function {
  81. identifier {
  82. name: "A"
  83. }
  84. }
  85. argument {
  86. tuple_literal {
  87. fields {
  88. identifier {
  89. name: "T"
  90. }
  91. }
  92. }
  93. }
  94. }
  95. }
  96. arguments {
  97. identifier {
  98. name: "B"
  99. }
  100. }
  101. }
  102. }
  103. members {
  104. function {
  105. name {
  106. name: "F"
  107. }
  108. param_pattern {
  109. }
  110. return_term {
  111. kind: Expression
  112. type {
  113. int_type_literal {
  114. }
  115. }
  116. }
  117. body {
  118. statements {
  119. return_expression_statement {
  120. expression {
  121. int_literal {
  122. value: 1
  123. }
  124. }
  125. }
  126. }
  127. }
  128. }
  129. }
  130. }
  131. }
  132. declarations {
  133. function {
  134. name {
  135. name: "Main"
  136. }
  137. param_pattern {
  138. }
  139. return_term {
  140. kind: Expression
  141. type {
  142. int_type_literal {
  143. }
  144. }
  145. }
  146. body {
  147. statements {
  148. variable_definition {
  149. pattern {
  150. binding_pattern {
  151. name: "v"
  152. type {
  153. expression_pattern {
  154. expression {
  155. call {
  156. function {
  157. identifier {
  158. name: "C"
  159. }
  160. }
  161. argument {
  162. tuple_literal {
  163. fields {
  164. int_type_literal {
  165. }
  166. }
  167. }
  168. }
  169. }
  170. }
  171. }
  172. }
  173. }
  174. }
  175. init {
  176. struct_literal {
  177. }
  178. }
  179. is_returned: false
  180. }
  181. }
  182. statements {
  183. return_expression_statement {
  184. expression {
  185. call {
  186. function {
  187. compound_member_access {
  188. object {
  189. identifier {
  190. name: "v"
  191. }
  192. }
  193. path {
  194. simple_member_access {
  195. field: "F"
  196. object {
  197. identifier {
  198. name: "B"
  199. }
  200. }
  201. }
  202. }
  203. }
  204. }
  205. argument {
  206. tuple_literal {
  207. }
  208. }
  209. }
  210. }
  211. }
  212. }
  213. }
  214. }
  215. }
  216. }