3dce35e13b36c3f9ea7657ac00237fd3ad8d42c7 2.4 KB

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