24e5915a89c0544f8b6a98614ce1627362c9c004 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. function {
  8. name {
  9. name: "f"
  10. }
  11. param_pattern {
  12. fields {
  13. binding_pattern {
  14. name: "g"
  15. type {
  16. expression_pattern {
  17. expression {
  18. function_type {
  19. return_type {
  20. bool_literal {
  21. value: true
  22. }
  23. }
  24. parameter {
  25. fields {
  26. operator {
  27. op: Neg
  28. arguments {
  29. bool_literal {
  30. value: true
  31. }
  32. }
  33. }
  34. }
  35. }
  36. }
  37. }
  38. }
  39. }
  40. }
  41. }
  42. }
  43. return_term {
  44. kind: Omitted
  45. }
  46. body {
  47. }
  48. }
  49. }
  50. declarations {
  51. function {
  52. name {
  53. name: "Main"
  54. }
  55. param_pattern {
  56. }
  57. return_term {
  58. kind: Expression
  59. type {
  60. int_type_literal {
  61. }
  62. }
  63. }
  64. body {
  65. statements {
  66. return_expression_statement {
  67. expression {
  68. int_literal {
  69. value: 0
  70. }
  71. }
  72. }
  73. }
  74. }
  75. }
  76. }
  77. }