dfa98dcc49016ec99cb77ab6dc61ea74e7a781f4 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. array_type_literal {
  30. element_type {
  31. int_type_literal {
  32. }
  33. }
  34. size {
  35. operator {
  36. op: Neg
  37. arguments {
  38. int_literal {
  39. value: 1
  40. }
  41. }
  42. }
  43. }
  44. }
  45. }
  46. }
  47. }
  48. }
  49. }
  50. init {
  51. tuple_literal {
  52. }
  53. }
  54. is_returned: false
  55. }
  56. }
  57. statements {
  58. return_expression_statement {
  59. expression {
  60. index {
  61. object {
  62. identifier {
  63. name: "x"
  64. }
  65. }
  66. offset {
  67. int_literal {
  68. value: 0
  69. }
  70. }
  71. }
  72. }
  73. }
  74. }
  75. }
  76. }
  77. }
  78. }