2d454cacd53c4ed55138382f919c3547d81059fd 8.4 KB

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