bb1d40f46f5a1b10ad1c4fe3f4dbe58c2490cd6d 2.4 KB

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