1fb3cabbe7b1d1db38a57e533dd8047bf828a338 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. param_pattern {
  12. fields {
  13. binding_pattern {
  14. name: "x"
  15. type {
  16. expression_pattern {
  17. expression {
  18. call {
  19. function {
  20. identifier {
  21. name: "F"
  22. }
  23. }
  24. argument {
  25. tuple_literal {
  26. fields {
  27. int_literal {
  28. value: 0
  29. }
  30. }
  31. }
  32. }
  33. }
  34. }
  35. }
  36. }
  37. }
  38. }
  39. }
  40. return_term {
  41. kind: Expression
  42. type {
  43. type_type_literal {
  44. }
  45. }
  46. }
  47. body {
  48. statements {
  49. return_expression_statement {
  50. expression {
  51. int_type_literal {
  52. }
  53. }
  54. }
  55. }
  56. }
  57. }
  58. }
  59. declarations {
  60. function {
  61. name {
  62. name: "Main"
  63. }
  64. param_pattern {
  65. }
  66. return_term {
  67. kind: Expression
  68. type {
  69. int_type_literal {
  70. }
  71. }
  72. }
  73. body {
  74. statements {
  75. return_expression_statement {
  76. expression {
  77. identifier {
  78. name: "x"
  79. }
  80. }
  81. }
  82. }
  83. }
  84. }
  85. }
  86. }