bfe98852a578baf4355b38a92b6a7e926c406a98 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. interface {
  8. name {
  9. name: "A"
  10. }
  11. }
  12. }
  13. declarations {
  14. alias {
  15. name {
  16. name: "B"
  17. }
  18. target {
  19. where {
  20. base {
  21. identifier {
  22. name: "A"
  23. }
  24. }
  25. clauses {
  26. equals {
  27. lhs {
  28. int_literal {
  29. value: 4
  30. }
  31. }
  32. rhs {
  33. int_type_literal {
  34. }
  35. }
  36. }
  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. }