d494ba5ee115dd8fb0ab0df4d885fba5f66205ae 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. interface {
  8. name {
  9. name: "I"
  10. }
  11. }
  12. }
  13. declarations {
  14. function {
  15. name {
  16. name: "Main"
  17. }
  18. param_pattern {
  19. }
  20. return_term {
  21. kind: Expression
  22. type {
  23. int_type_literal {
  24. }
  25. }
  26. }
  27. body {
  28. statements {
  29. variable_definition {
  30. pattern {
  31. binding_pattern {
  32. name: "a"
  33. type {
  34. auto_pattern {
  35. }
  36. }
  37. }
  38. }
  39. init {
  40. where {
  41. base {
  42. identifier {
  43. name: "I"
  44. }
  45. }
  46. clauses {
  47. equals {
  48. lhs {
  49. designator {
  50. name: "Self"
  51. }
  52. }
  53. rhs {
  54. int_type_literal {
  55. }
  56. }
  57. }
  58. }
  59. }
  60. }
  61. is_returned: false
  62. }
  63. }
  64. statements {
  65. assign {
  66. lhs {
  67. identifier {
  68. name: "a"
  69. }
  70. }
  71. rhs {
  72. int_type_literal {
  73. }
  74. }
  75. op: Plain
  76. }
  77. }
  78. statements {
  79. return_expression_statement {
  80. expression {
  81. int_literal {
  82. value: 0
  83. }
  84. }
  85. }
  86. }
  87. }
  88. }
  89. }
  90. }