94b9e894207384a2fcb65d7422c04f18d179f4e5 3.6 KB

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