61d367a42b7becd1b4b939d56353897a36e5f096 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. function {
  8. name {
  9. name: "F"
  10. }
  11. deduced_parameters {
  12. name: "T"
  13. type {
  14. tuple_literal {
  15. fields {
  16. tuple_literal {
  17. }
  18. }
  19. fields {
  20. tuple_literal {
  21. }
  22. }
  23. }
  24. }
  25. }
  26. param_pattern {
  27. fields {
  28. binding_pattern {
  29. name: "x"
  30. type {
  31. expression_pattern {
  32. expression {
  33. identifier {
  34. name: "T"
  35. }
  36. }
  37. }
  38. }
  39. }
  40. }
  41. }
  42. return_term {
  43. kind: Expression
  44. type {
  45. tuple_literal {
  46. }
  47. }
  48. }
  49. body {
  50. statements {
  51. return_expression_statement {
  52. expression {
  53. index {
  54. object {
  55. identifier {
  56. name: "x"
  57. }
  58. }
  59. offset {
  60. int_literal {
  61. value: 0
  62. }
  63. }
  64. }
  65. }
  66. }
  67. }
  68. }
  69. }
  70. }
  71. declarations {
  72. function {
  73. name {
  74. name: "Main"
  75. }
  76. param_pattern {
  77. }
  78. return_term {
  79. kind: Expression
  80. type {
  81. int_type_literal {
  82. }
  83. }
  84. }
  85. body {
  86. statements {
  87. expression_statement {
  88. expression {
  89. call {
  90. function {
  91. identifier {
  92. name: "F"
  93. }
  94. }
  95. argument {
  96. tuple_literal {
  97. fields {
  98. tuple_literal {
  99. fields {
  100. tuple_literal {
  101. }
  102. }
  103. fields {
  104. tuple_literal {
  105. }
  106. }
  107. }
  108. }
  109. }
  110. }
  111. }
  112. }
  113. }
  114. }
  115. statements {
  116. return_expression_statement {
  117. expression {
  118. int_literal {
  119. value: 0
  120. }
  121. }
  122. }
  123. }
  124. }
  125. }
  126. }
  127. }