1e4fb57739ad776cee50880a79f29cdc6b532a58 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. class_declaration {
  8. name {
  9. name: "A"
  10. }
  11. type_params {
  12. fields {
  13. generic_binding {
  14. name: "T"
  15. type {
  16. type_type_literal {
  17. }
  18. }
  19. }
  20. }
  21. }
  22. }
  23. }
  24. declarations {
  25. interface {
  26. name {
  27. name: "B"
  28. }
  29. }
  30. }
  31. declarations {
  32. impl {
  33. kind: ExternalImpl
  34. impl_type {
  35. call {
  36. function {
  37. identifier {
  38. name: "A"
  39. }
  40. }
  41. argument {
  42. tuple_literal {
  43. fields {
  44. identifier {
  45. name: "T"
  46. }
  47. }
  48. }
  49. }
  50. }
  51. }
  52. interface {
  53. call {
  54. function {
  55. identifier {
  56. name: "B"
  57. }
  58. }
  59. argument {
  60. tuple_literal {
  61. fields {
  62. int_type_literal {
  63. }
  64. }
  65. }
  66. }
  67. }
  68. }
  69. }
  70. }
  71. declarations {
  72. impl {
  73. kind: ExternalImpl
  74. impl_type {
  75. call {
  76. function {
  77. identifier {
  78. name: "A"
  79. }
  80. }
  81. argument {
  82. tuple_literal {
  83. fields {
  84. int_type_literal {
  85. }
  86. }
  87. }
  88. }
  89. }
  90. }
  91. interface {
  92. call {
  93. function {
  94. identifier {
  95. name: "B"
  96. }
  97. }
  98. argument {
  99. tuple_literal {
  100. fields {
  101. identifier {
  102. name: "T"
  103. }
  104. }
  105. }
  106. }
  107. }
  108. }
  109. }
  110. }
  111. declarations {
  112. function {
  113. name {
  114. name: "F"
  115. }
  116. deduced_parameters {
  117. name: "T"
  118. type {
  119. call {
  120. function {
  121. identifier {
  122. name: "B"
  123. }
  124. }
  125. argument {
  126. tuple_literal {
  127. fields {
  128. int_type_literal {
  129. }
  130. }
  131. }
  132. }
  133. }
  134. }
  135. }
  136. param_pattern {
  137. fields {
  138. binding_pattern {
  139. name: "x"
  140. type {
  141. expression_pattern {
  142. expression {
  143. identifier {
  144. name: "T"
  145. }
  146. }
  147. }
  148. }
  149. }
  150. }
  151. }
  152. return_term {
  153. kind: Omitted
  154. }
  155. body {
  156. }
  157. }
  158. }
  159. declarations {
  160. function {
  161. name {
  162. name: "G"
  163. }
  164. deduced_parameters {
  165. name: "T"
  166. type {
  167. call {
  168. function {
  169. identifier {
  170. name: "B"
  171. }
  172. }
  173. argument {
  174. tuple_literal {
  175. fields {
  176. bool_type_literal {
  177. }
  178. }
  179. }
  180. }
  181. }
  182. }
  183. }
  184. param_pattern {
  185. fields {
  186. binding_pattern {
  187. name: "x"
  188. type {
  189. expression_pattern {
  190. expression {
  191. identifier {
  192. name: "T"
  193. }
  194. }
  195. }
  196. }
  197. }
  198. }
  199. }
  200. return_term {
  201. kind: Omitted
  202. }
  203. body {
  204. }
  205. }
  206. }
  207. declarations {
  208. function {
  209. name {
  210. name: "Main"
  211. }
  212. param_pattern {
  213. }
  214. return_term {
  215. kind: Expression
  216. type {
  217. int_type_literal {
  218. }
  219. }
  220. }
  221. body {
  222. statements {
  223. variable_definition {
  224. pattern {
  225. binding_pattern {
  226. name: "a"
  227. type {
  228. expression_pattern {
  229. expression {
  230. call {
  231. function {
  232. identifier {
  233. name: "A"
  234. }
  235. }
  236. argument {
  237. tuple_literal {
  238. fields {
  239. bool_type_literal {
  240. }
  241. }
  242. }
  243. }
  244. }
  245. }
  246. }
  247. }
  248. }
  249. }
  250. init {
  251. struct_literal {
  252. }
  253. }
  254. is_returned: false
  255. }
  256. }
  257. statements {
  258. variable_definition {
  259. pattern {
  260. binding_pattern {
  261. name: "b"
  262. type {
  263. expression_pattern {
  264. expression {
  265. call {
  266. function {
  267. identifier {
  268. name: "A"
  269. }
  270. }
  271. argument {
  272. tuple_literal {
  273. fields {
  274. int_type_literal {
  275. }
  276. }
  277. }
  278. }
  279. }
  280. }
  281. }
  282. }
  283. }
  284. }
  285. init {
  286. struct_literal {
  287. }
  288. }
  289. is_returned: false
  290. }
  291. }
  292. statements {
  293. expression_statement {
  294. expression {
  295. call {
  296. function {
  297. identifier {
  298. name: "F"
  299. }
  300. }
  301. argument {
  302. tuple_literal {
  303. fields {
  304. identifier {
  305. name: "a"
  306. }
  307. }
  308. }
  309. }
  310. }
  311. }
  312. }
  313. }
  314. statements {
  315. expression_statement {
  316. expression {
  317. call {
  318. function {
  319. identifier {
  320. name: "G"
  321. }
  322. }
  323. argument {
  324. tuple_literal {
  325. fields {
  326. identifier {
  327. name: "b"
  328. }
  329. }
  330. }
  331. }
  332. }
  333. }
  334. }
  335. }
  336. statements {
  337. expression_statement {
  338. expression {
  339. call {
  340. function {
  341. identifier {
  342. name: "F"
  343. }
  344. }
  345. argument {
  346. tuple_literal {
  347. fields {
  348. identifier {
  349. name: "b"
  350. }
  351. }
  352. }
  353. }
  354. }
  355. }
  356. }
  357. }
  358. statements {
  359. return_expression_statement {
  360. expression {
  361. int_literal {
  362. value: 0
  363. }
  364. }
  365. }
  366. }
  367. }
  368. }
  369. }
  370. }