2ee264dd2bbf6040e1dbd35cec604eef029a39ba 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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: "t"
  26. type {
  27. auto_pattern {
  28. }
  29. }
  30. }
  31. }
  32. init {
  33. tuple_literal {
  34. fields {
  35. int_literal {
  36. value: 1
  37. }
  38. }
  39. fields {
  40. int_literal {
  41. value: 2
  42. }
  43. }
  44. }
  45. }
  46. is_returned: false
  47. }
  48. }
  49. statements {
  50. variable_definition {
  51. pattern {
  52. binding_pattern {
  53. name: "a"
  54. type {
  55. expression_pattern {
  56. expression {
  57. array_type_literal {
  58. element_type {
  59. int_type_literal {
  60. }
  61. }
  62. size {
  63. int_literal {
  64. value: 3
  65. }
  66. }
  67. }
  68. }
  69. }
  70. }
  71. }
  72. }
  73. init {
  74. identifier {
  75. name: "t"
  76. }
  77. }
  78. is_returned: false
  79. }
  80. }
  81. }
  82. }
  83. }
  84. }