0ac4e657eed8b5281248287683e3528421b1a4b6 1.1 KB

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