7e2a2d5f2ca21106e70dd832ab2c795d31dd8c17 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. auto_pattern {
  28. }
  29. }
  30. }
  31. }
  32. init {
  33. tuple_literal {
  34. fields {
  35. int_literal {
  36. value: 0
  37. }
  38. }
  39. fields {
  40. int_literal {
  41. value: 1
  42. }
  43. }
  44. }
  45. }
  46. is_returned: false
  47. }
  48. }
  49. statements {
  50. return_expression_statement {
  51. expression {
  52. index {
  53. object {
  54. identifier {
  55. name: "x"
  56. }
  57. }
  58. offset {
  59. int_literal {
  60. value: 2
  61. }
  62. }
  63. }
  64. }
  65. }
  66. }
  67. }
  68. }
  69. }
  70. }