b3fe9e4e59812a710955af9540ba6ab44efbaf64 865 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. variable {
  8. binding {
  9. name: "zero"
  10. type {
  11. expression_pattern {
  12. expression {
  13. int_type_literal {
  14. }
  15. }
  16. }
  17. }
  18. }
  19. initializer {
  20. int_literal {
  21. value: 0
  22. }
  23. }
  24. }
  25. }
  26. declarations {
  27. function {
  28. name {
  29. name: "Main"
  30. }
  31. param_pattern {
  32. }
  33. return_term {
  34. kind: Expression
  35. type {
  36. int_type_literal {
  37. }
  38. }
  39. }
  40. body {
  41. statements {
  42. return_expression_statement {
  43. expression {
  44. identifier {
  45. name: "zero"
  46. }
  47. }
  48. }
  49. }
  50. }
  51. }
  52. }
  53. }