e2ebf55cbc076357576ce9c6d9901ded3df34748 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. namespace {
  8. name {
  9. name: "N"
  10. }
  11. }
  12. }
  13. declarations {
  14. interface {
  15. name {
  16. qualifiers: "N"
  17. name: "Interface"
  18. }
  19. }
  20. }
  21. declarations {
  22. class_declaration {
  23. name {
  24. qualifiers: "N"
  25. name: "A"
  26. }
  27. type_params {
  28. fields {
  29. generic_binding {
  30. name: "T"
  31. type {
  32. identifier {
  33. name: "Interface"
  34. }
  35. }
  36. }
  37. }
  38. }
  39. }
  40. }
  41. declarations {
  42. interface {
  43. name {
  44. qualifiers: "N"
  45. name: "B"
  46. }
  47. }
  48. }
  49. declarations {
  50. constraint {
  51. name {
  52. qualifiers: "N"
  53. name: "C"
  54. }
  55. }
  56. }
  57. declarations {
  58. mixin {
  59. name {
  60. qualifiers: "N"
  61. name: "D"
  62. }
  63. self {
  64. name: "Self"
  65. type {
  66. type_type_literal {
  67. }
  68. }
  69. }
  70. }
  71. }
  72. declarations {
  73. choice {
  74. name {
  75. qualifiers: "N"
  76. name: "E"
  77. }
  78. }
  79. }
  80. declarations {
  81. function {
  82. name {
  83. qualifiers: "N"
  84. name: "F"
  85. }
  86. deduced_parameters {
  87. name: "T"
  88. type {
  89. identifier {
  90. name: "Interface"
  91. }
  92. }
  93. }
  94. param_pattern {
  95. fields {
  96. binding_pattern {
  97. name: "a"
  98. type {
  99. expression_pattern {
  100. expression {
  101. call {
  102. function {
  103. identifier {
  104. name: "A"
  105. }
  106. }
  107. argument {
  108. tuple_literal {
  109. fields {
  110. identifier {
  111. name: "T"
  112. }
  113. }
  114. }
  115. }
  116. }
  117. }
  118. }
  119. }
  120. }
  121. }
  122. }
  123. return_term {
  124. kind: Omitted
  125. }
  126. body {
  127. }
  128. }
  129. }
  130. declarations {
  131. function {
  132. name {
  133. name: "Main"
  134. }
  135. param_pattern {
  136. }
  137. return_term {
  138. kind: Expression
  139. type {
  140. int_type_literal {
  141. }
  142. }
  143. }
  144. body {
  145. statements {
  146. return_expression_statement {
  147. expression {
  148. int_literal {
  149. value: 0
  150. }
  151. }
  152. }
  153. }
  154. }
  155. }
  156. }
  157. }