c3c3a8aee0abfdd263b57f387db0ef47be0c1fc1 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. variable {
  8. binding {
  9. name: "flag"
  10. type {
  11. expression_pattern {
  12. expression {
  13. int_type_literal {
  14. }
  15. }
  16. }
  17. }
  18. }
  19. initializer {
  20. int_literal {
  21. value: 1
  22. }
  23. }
  24. }
  25. }
  26. declarations {
  27. function {
  28. name {
  29. name: "flipFlag"
  30. }
  31. param_pattern {
  32. }
  33. return_term {
  34. kind: Omitted
  35. }
  36. body {
  37. statements {
  38. assign {
  39. lhs {
  40. identifier {
  41. name: "flag"
  42. }
  43. }
  44. rhs {
  45. int_literal {
  46. value: 0
  47. }
  48. }
  49. op: Plain
  50. }
  51. }
  52. }
  53. }
  54. }
  55. declarations {
  56. function {
  57. name {
  58. name: "Main"
  59. }
  60. param_pattern {
  61. }
  62. return_term {
  63. kind: Expression
  64. type {
  65. int_type_literal {
  66. }
  67. }
  68. }
  69. body {
  70. statements {
  71. expression_statement {
  72. expression {
  73. call {
  74. function {
  75. identifier {
  76. name: "flipFlag"
  77. }
  78. }
  79. argument {
  80. tuple_literal {
  81. }
  82. }
  83. }
  84. }
  85. }
  86. }
  87. statements {
  88. return_expression_statement {
  89. expression {
  90. identifier {
  91. name: "flag"
  92. }
  93. }
  94. }
  95. }
  96. }
  97. }
  98. }
  99. }