4972578fc0a523302c5bc9f42c2fdcae619712fc 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. inc_dec {
  41. operand {
  42. identifier {
  43. name: "x"
  44. }
  45. }
  46. is_increment: true
  47. }
  48. }
  49. statements {
  50. return_expression_statement {
  51. expression {
  52. identifier {
  53. name: "x"
  54. }
  55. }
  56. }
  57. }
  58. }
  59. }
  60. }
  61. }