b301d94100ed0b15766a8e48767ea685c582104f 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. tuple_pattern {
  25. fields {
  26. binding_pattern {
  27. name: "x"
  28. type {
  29. expression_pattern {
  30. expression {
  31. int_type_literal {
  32. }
  33. }
  34. }
  35. }
  36. }
  37. }
  38. fields {
  39. binding_pattern {
  40. name: "y"
  41. type {
  42. expression_pattern {
  43. expression {
  44. int_type_literal {
  45. }
  46. }
  47. }
  48. }
  49. }
  50. }
  51. }
  52. }
  53. is_returned: false
  54. }
  55. }
  56. statements {
  57. assign {
  58. lhs {
  59. identifier {
  60. name: "x"
  61. }
  62. }
  63. rhs {
  64. int_literal {
  65. value: 1
  66. }
  67. }
  68. op: Plain
  69. }
  70. }
  71. statements {
  72. return_expression_statement {
  73. expression {
  74. identifier {
  75. name: "y"
  76. }
  77. }
  78. }
  79. }
  80. }
  81. }
  82. }
  83. }