11129722dc448b2011c92f79dc750129eff3858b 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. function {
  8. name {
  9. name: "Main"
  10. }
  11. param_pattern {
  12. }
  13. return_term {
  14. kind: Expression
  15. type {
  16. int_type_literal {
  17. }
  18. }
  19. }
  20. body {
  21. statements {
  22. variable_definition {
  23. pattern {
  24. binding_pattern {
  25. name: "x"
  26. type {
  27. expression_pattern {
  28. expression {
  29. int_type_literal {
  30. }
  31. }
  32. }
  33. }
  34. }
  35. }
  36. is_returned: false
  37. }
  38. }
  39. statements {
  40. variable_definition {
  41. pattern {
  42. binding_pattern {
  43. name: "y"
  44. type {
  45. expression_pattern {
  46. expression {
  47. int_type_literal {
  48. }
  49. }
  50. }
  51. }
  52. }
  53. }
  54. init {
  55. identifier {
  56. name: "x"
  57. }
  58. }
  59. is_returned: false
  60. }
  61. }
  62. statements {
  63. return_expression_statement {
  64. expression {
  65. identifier {
  66. name: "x"
  67. }
  68. }
  69. }
  70. }
  71. }
  72. }
  73. }
  74. }