0ad8ac2a88b1144df515cc60cb824fdef6c712ef 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. function {
  8. name {
  9. name: "f"
  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. return_expression_statement {
  23. expression {
  24. int_literal {
  25. value: 0
  26. }
  27. }
  28. }
  29. }
  30. }
  31. }
  32. }
  33. declarations {
  34. variable {
  35. binding {
  36. name: "y"
  37. type {
  38. expression_pattern {
  39. expression {
  40. int_type_literal {
  41. }
  42. }
  43. }
  44. }
  45. }
  46. initializer {
  47. call {
  48. function {
  49. identifier {
  50. name: "f"
  51. }
  52. }
  53. argument {
  54. tuple_literal {
  55. }
  56. }
  57. }
  58. }
  59. }
  60. }
  61. declarations {
  62. function {
  63. name {
  64. name: "Main"
  65. }
  66. param_pattern {
  67. }
  68. return_term {
  69. kind: Expression
  70. type {
  71. int_type_literal {
  72. }
  73. }
  74. }
  75. body {
  76. statements {
  77. return_expression_statement {
  78. expression {
  79. identifier {
  80. name: "y"
  81. }
  82. }
  83. }
  84. }
  85. }
  86. }
  87. }
  88. }