8231f88ed019d7c867f63fd99a72ff83c877ce42 1.2 KB

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