39f118ee2121de551414b80dca0c8daa35c3b987 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. interface {
  8. name: "I"
  9. self {
  10. name: "Self"
  11. type {
  12. type_type_literal {
  13. }
  14. }
  15. }
  16. }
  17. }
  18. declarations {
  19. impl {
  20. kind: InternalImpl
  21. impl_type {
  22. int_type_literal {
  23. }
  24. }
  25. interface {
  26. identifier {
  27. name: "I"
  28. }
  29. }
  30. }
  31. }
  32. declarations {
  33. function {
  34. name: "F"
  35. param_pattern {
  36. fields {
  37. generic_binding {
  38. name: "A"
  39. type {
  40. int_type_literal {
  41. }
  42. }
  43. }
  44. }
  45. fields {
  46. generic_binding {
  47. name: "B"
  48. type {
  49. int_type_literal {
  50. }
  51. }
  52. }
  53. }
  54. fields {
  55. generic_binding {
  56. name: "C"
  57. type {
  58. int_type_literal {
  59. }
  60. }
  61. }
  62. }
  63. fields {
  64. generic_binding {
  65. name: "D"
  66. type {
  67. int_type_literal {
  68. }
  69. }
  70. }
  71. }
  72. fields {
  73. generic_binding {
  74. name: "E"
  75. type {
  76. int_type_literal {
  77. }
  78. }
  79. }
  80. }
  81. fields {
  82. generic_binding {
  83. name: "T"
  84. type {
  85. where {
  86. base {
  87. identifier {
  88. name: "I"
  89. }
  90. }
  91. clauses {
  92. equals {
  93. lhs {
  94. identifier {
  95. name: "A"
  96. }
  97. }
  98. rhs {
  99. identifier {
  100. name: "B"
  101. }
  102. }
  103. }
  104. }
  105. clauses {
  106. equals {
  107. lhs {
  108. identifier {
  109. name: "C"
  110. }
  111. }
  112. rhs {
  113. identifier {
  114. name: "D"
  115. }
  116. }
  117. }
  118. }
  119. clauses {
  120. equals {
  121. lhs {
  122. identifier {
  123. name: "C"
  124. }
  125. }
  126. rhs {
  127. identifier {
  128. name: "E"
  129. }
  130. }
  131. }
  132. }
  133. clauses {
  134. equals {
  135. lhs {
  136. identifier {
  137. name: "B"
  138. }
  139. }
  140. rhs {
  141. identifier {
  142. name: "D"
  143. }
  144. }
  145. }
  146. }
  147. }
  148. }
  149. }
  150. }
  151. }
  152. return_term {
  153. kind: Omitted
  154. }
  155. body {
  156. statements {
  157. expression_statement {
  158. expression {
  159. call {
  160. function {
  161. simple_member_access {
  162. field: "F"
  163. object {
  164. identifier {
  165. name: "T"
  166. }
  167. }
  168. }
  169. }
  170. argument {
  171. tuple_literal {
  172. }
  173. }
  174. }
  175. }
  176. }
  177. }
  178. }
  179. }
  180. }
  181. declarations {
  182. function {
  183. name: "Main"
  184. param_pattern {
  185. }
  186. return_term {
  187. kind: Expression
  188. type {
  189. int_type_literal {
  190. }
  191. }
  192. }
  193. body {
  194. statements {
  195. expression_statement {
  196. expression {
  197. call {
  198. function {
  199. identifier {
  200. name: "F"
  201. }
  202. }
  203. argument {
  204. tuple_literal {
  205. fields {
  206. int_literal {
  207. value: 1
  208. }
  209. }
  210. fields {
  211. int_literal {
  212. value: 1
  213. }
  214. }
  215. fields {
  216. int_literal {
  217. value: 1
  218. }
  219. }
  220. fields {
  221. int_literal {
  222. value: 1
  223. }
  224. }
  225. fields {
  226. int_literal {
  227. value: 1
  228. }
  229. }
  230. fields {
  231. int_type_literal {
  232. }
  233. }
  234. }
  235. }
  236. }
  237. }
  238. }
  239. }
  240. statements {
  241. return_expression_statement {
  242. expression {
  243. int_literal {
  244. value: 0
  245. }
  246. }
  247. }
  248. }
  249. }
  250. }
  251. }
  252. }