70e5a8e81363e001a3c04485baff3c0b45f543c7 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. class_declaration {
  8. name {
  9. name: "C"
  10. }
  11. type_params {
  12. fields {
  13. generic_binding {
  14. name: "T"
  15. type {
  16. type_type_literal {
  17. }
  18. }
  19. }
  20. }
  21. }
  22. }
  23. }
  24. declarations {
  25. function {
  26. name {
  27. name: "F"
  28. }
  29. param_pattern {
  30. fields {
  31. generic_binding {
  32. name: "T"
  33. type {
  34. type_type_literal {
  35. }
  36. }
  37. }
  38. }
  39. }
  40. return_term {
  41. kind: Expression
  42. type {
  43. type_type_literal {
  44. }
  45. }
  46. }
  47. body {
  48. statements {
  49. return_expression_statement {
  50. expression {
  51. call {
  52. function {
  53. identifier {
  54. name: "C"
  55. }
  56. }
  57. argument {
  58. tuple_literal {
  59. fields {
  60. identifier {
  61. name: "T"
  62. }
  63. }
  64. }
  65. }
  66. }
  67. }
  68. }
  69. }
  70. }
  71. }
  72. }
  73. declarations {
  74. function {
  75. name {
  76. name: "Main"
  77. }
  78. param_pattern {
  79. }
  80. return_term {
  81. kind: Expression
  82. type {
  83. int_type_literal {
  84. }
  85. }
  86. }
  87. body {
  88. statements {
  89. variable_definition {
  90. pattern {
  91. binding_pattern {
  92. name: "v"
  93. type {
  94. expression_pattern {
  95. expression {
  96. call {
  97. function {
  98. identifier {
  99. name: "F"
  100. }
  101. }
  102. argument {
  103. tuple_literal {
  104. fields {
  105. int_type_literal {
  106. }
  107. }
  108. }
  109. }
  110. }
  111. }
  112. }
  113. }
  114. }
  115. }
  116. init {
  117. struct_literal {
  118. }
  119. }
  120. is_returned: false
  121. }
  122. }
  123. statements {
  124. variable_definition {
  125. pattern {
  126. binding_pattern {
  127. name: "w"
  128. type {
  129. expression_pattern {
  130. expression {
  131. call {
  132. function {
  133. identifier {
  134. name: "C"
  135. }
  136. }
  137. argument {
  138. tuple_literal {
  139. fields {
  140. int_type_literal {
  141. }
  142. }
  143. }
  144. }
  145. }
  146. }
  147. }
  148. }
  149. }
  150. }
  151. init {
  152. identifier {
  153. name: "v"
  154. }
  155. }
  156. is_returned: false
  157. }
  158. }
  159. statements {
  160. return_expression_statement {
  161. expression {
  162. int_literal {
  163. value: 0
  164. }
  165. }
  166. }
  167. }
  168. }
  169. }
  170. }
  171. }