7196097c3c0a0a0c5e13f3ebd44cb8f70e3a369e 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. function {
  8. name {
  9. name: "Id"
  10. }
  11. param_pattern {
  12. fields {
  13. binding_pattern {
  14. name: "t"
  15. type {
  16. expression_pattern {
  17. expression {
  18. type_type_literal {
  19. }
  20. }
  21. }
  22. }
  23. }
  24. }
  25. }
  26. return_term {
  27. kind: Auto
  28. }
  29. body {
  30. statements {
  31. return_expression_statement {
  32. expression {
  33. identifier {
  34. name: "t"
  35. }
  36. }
  37. }
  38. }
  39. }
  40. }
  41. }
  42. declarations {
  43. function {
  44. name {
  45. name: "Main"
  46. }
  47. param_pattern {
  48. }
  49. return_term {
  50. kind: Expression
  51. type {
  52. call {
  53. function {
  54. identifier {
  55. name: "Id"
  56. }
  57. }
  58. argument {
  59. tuple_literal {
  60. fields {
  61. int_type_literal {
  62. }
  63. }
  64. }
  65. }
  66. }
  67. }
  68. }
  69. body {
  70. statements {
  71. return_expression_statement {
  72. expression {
  73. int_literal {
  74. value: 0
  75. }
  76. }
  77. }
  78. }
  79. }
  80. }
  81. }
  82. }