ee427228e0af7ff6d3f2934ea7b305d1db78add0 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. variable {
  8. binding {
  9. name: "x"
  10. type {
  11. expression_pattern {
  12. expression {
  13. int_type_literal {
  14. }
  15. }
  16. }
  17. }
  18. }
  19. initializer {
  20. identifier {
  21. name: "y"
  22. }
  23. }
  24. }
  25. }
  26. declarations {
  27. variable {
  28. binding {
  29. name: "y"
  30. type {
  31. expression_pattern {
  32. expression {
  33. int_type_literal {
  34. }
  35. }
  36. }
  37. }
  38. }
  39. initializer {
  40. int_literal {
  41. value: 0
  42. }
  43. }
  44. }
  45. }
  46. declarations {
  47. function {
  48. name {
  49. name: "Main"
  50. }
  51. param_pattern {
  52. }
  53. return_term {
  54. kind: Expression
  55. type {
  56. int_type_literal {
  57. }
  58. }
  59. }
  60. body {
  61. statements {
  62. return_expression_statement {
  63. expression {
  64. identifier {
  65. name: "x"
  66. }
  67. }
  68. }
  69. }
  70. }
  71. }
  72. }
  73. }