50afabdf6bcaac0128c38e8b07aaaf0139caa5b6 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. class_declaration {
  8. name {
  9. name: "X"
  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. function {
  26. name {
  27. name: "F"
  28. }
  29. deduced_parameters {
  30. name: "T"
  31. type {
  32. call {
  33. function {
  34. identifier {
  35. name: "X"
  36. }
  37. }
  38. argument {
  39. tuple_literal {
  40. fields {
  41. designator {
  42. name: "Self"
  43. }
  44. }
  45. }
  46. }
  47. }
  48. }
  49. }
  50. param_pattern {
  51. fields {
  52. binding_pattern {
  53. name: "x"
  54. type {
  55. expression_pattern {
  56. expression {
  57. identifier {
  58. name: "T"
  59. }
  60. }
  61. }
  62. }
  63. }
  64. }
  65. }
  66. return_term {
  67. kind: Omitted
  68. }
  69. body {
  70. }
  71. }
  72. }
  73. declarations {
  74. function {
  75. name {
  76. name: "Main"
  77. }
  78. param_pattern {
  79. }
  80. return_term {
  81. kind: Expression
  82. type {
  83. int_type_literal {
  84. }
  85. }
  86. }
  87. body {
  88. statements {
  89. return_expression_statement {
  90. expression {
  91. int_literal {
  92. value: 0
  93. }
  94. }
  95. }
  96. }
  97. }
  98. }
  99. }
  100. }