b1e9560f0665a4c7381526676797f330b5ddaf72 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. class_declaration {
  8. name {
  9. name: "HasI32Param"
  10. }
  11. type_params {
  12. fields {
  13. generic_binding {
  14. name: "V"
  15. type {
  16. int_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. binding_pattern {
  32. name: "x"
  33. type {
  34. expression_pattern {
  35. expression {
  36. call {
  37. function {
  38. identifier {
  39. name: "HasI32Param"
  40. }
  41. }
  42. argument {
  43. tuple_literal {
  44. fields {
  45. int_literal {
  46. value: 1
  47. }
  48. }
  49. }
  50. }
  51. }
  52. }
  53. }
  54. }
  55. }
  56. }
  57. }
  58. return_term {
  59. kind: Omitted
  60. }
  61. body {
  62. }
  63. }
  64. }
  65. declarations {
  66. function {
  67. name {
  68. name: "Main"
  69. }
  70. param_pattern {
  71. }
  72. return_term {
  73. kind: Expression
  74. type {
  75. int_type_literal {
  76. }
  77. }
  78. }
  79. body {
  80. statements {
  81. variable_definition {
  82. pattern {
  83. binding_pattern {
  84. name: "n"
  85. type {
  86. expression_pattern {
  87. expression {
  88. call {
  89. function {
  90. identifier {
  91. name: "HasI32Param"
  92. }
  93. }
  94. argument {
  95. tuple_literal {
  96. fields {
  97. int_literal {
  98. value: 0
  99. }
  100. }
  101. }
  102. }
  103. }
  104. }
  105. }
  106. }
  107. }
  108. }
  109. init {
  110. struct_literal {
  111. }
  112. }
  113. is_returned: false
  114. }
  115. }
  116. statements {
  117. expression_statement {
  118. expression {
  119. call {
  120. function {
  121. identifier {
  122. name: "F"
  123. }
  124. }
  125. argument {
  126. tuple_literal {
  127. fields {
  128. identifier {
  129. name: "n"
  130. }
  131. }
  132. }
  133. }
  134. }
  135. }
  136. }
  137. }
  138. statements {
  139. return_expression_statement {
  140. expression {
  141. int_literal {
  142. value: 0
  143. }
  144. }
  145. }
  146. }
  147. }
  148. }
  149. }
  150. }