b90c4652e387f309191792de386c87b605bb1b5e 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. members {
  12. function {
  13. name {
  14. name: "F"
  15. }
  16. param_pattern {
  17. }
  18. return_term {
  19. kind: Omitted
  20. }
  21. body {
  22. }
  23. }
  24. }
  25. members {
  26. function {
  27. name {
  28. name: "G"
  29. }
  30. self_pattern {
  31. binding_pattern {
  32. name: "self"
  33. type {
  34. expression_pattern {
  35. expression {
  36. identifier {
  37. name: "Self"
  38. }
  39. }
  40. }
  41. }
  42. }
  43. }
  44. param_pattern {
  45. }
  46. return_term {
  47. kind: Omitted
  48. }
  49. body {
  50. }
  51. }
  52. }
  53. }
  54. }
  55. declarations {
  56. function {
  57. name {
  58. name: "ReturnF"
  59. }
  60. param_pattern {
  61. }
  62. return_term {
  63. kind: Auto
  64. }
  65. body {
  66. statements {
  67. return_expression_statement {
  68. expression {
  69. simple_member_access {
  70. field: "F"
  71. object {
  72. identifier {
  73. name: "C"
  74. }
  75. }
  76. }
  77. }
  78. }
  79. }
  80. }
  81. }
  82. }
  83. declarations {
  84. function {
  85. name {
  86. name: "ReturnG"
  87. }
  88. param_pattern {
  89. }
  90. return_term {
  91. kind: Auto
  92. }
  93. body {
  94. statements {
  95. return_expression_statement {
  96. expression {
  97. simple_member_access {
  98. field: "G"
  99. object {
  100. identifier {
  101. name: "C"
  102. }
  103. }
  104. }
  105. }
  106. }
  107. }
  108. }
  109. }
  110. }
  111. declarations {
  112. function {
  113. name {
  114. name: "Main"
  115. }
  116. param_pattern {
  117. }
  118. return_term {
  119. kind: Expression
  120. type {
  121. int_type_literal {
  122. }
  123. }
  124. }
  125. body {
  126. statements {
  127. return_expression_statement {
  128. expression {
  129. int_literal {
  130. value: 0
  131. }
  132. }
  133. }
  134. }
  135. }
  136. }
  137. }
  138. }