a103add196c50b16925c2d218749cc812d912a7a 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. function {
  8. name {
  9. name: "F"
  10. }
  11. deduced_parameters {
  12. name: "T"
  13. type {
  14. operator {
  15. op: BitwiseAnd
  16. arguments {
  17. type_type_literal {
  18. }
  19. }
  20. arguments {
  21. type_type_literal {
  22. }
  23. }
  24. }
  25. }
  26. }
  27. param_pattern {
  28. fields {
  29. binding_pattern {
  30. name: "x"
  31. type {
  32. expression_pattern {
  33. expression {
  34. identifier {
  35. name: "T"
  36. }
  37. }
  38. }
  39. }
  40. }
  41. }
  42. }
  43. return_term {
  44. kind: Omitted
  45. }
  46. body {
  47. }
  48. }
  49. }
  50. declarations {
  51. function {
  52. name {
  53. name: "Main"
  54. }
  55. param_pattern {
  56. }
  57. return_term {
  58. kind: Expression
  59. type {
  60. int_type_literal {
  61. }
  62. }
  63. }
  64. body {
  65. statements {
  66. expression_statement {
  67. expression {
  68. call {
  69. function {
  70. identifier {
  71. name: "F"
  72. }
  73. }
  74. argument {
  75. tuple_literal {
  76. fields {
  77. int_literal {
  78. value: 0
  79. }
  80. }
  81. }
  82. }
  83. }
  84. }
  85. }
  86. }
  87. statements {
  88. return_expression_statement {
  89. expression {
  90. int_literal {
  91. value: 0
  92. }
  93. }
  94. }
  95. }
  96. }
  97. }
  98. }
  99. }