3e0db6c59759b3afcfef5e8ed5766dc316ff6d5f 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. compilation_unit {
  2. package_statement {
  3. package_name: "ExplorerTest"
  4. }
  5. is_api: true
  6. declarations {
  7. interface {
  8. name {
  9. name: "FrobWith"
  10. }
  11. }
  12. }
  13. declarations {
  14. function {
  15. name {
  16. name: "F"
  17. }
  18. deduced_parameters {
  19. name: "T"
  20. type {
  21. call {
  22. function {
  23. identifier {
  24. name: "FrobWith"
  25. }
  26. }
  27. argument {
  28. tuple_literal {
  29. fields {
  30. designator {
  31. name: "Self"
  32. }
  33. }
  34. }
  35. }
  36. }
  37. }
  38. }
  39. param_pattern {
  40. fields {
  41. binding_pattern {
  42. name: "U"
  43. type {
  44. expression_pattern {
  45. expression {
  46. designator {
  47. name: "Self"
  48. }
  49. }
  50. }
  51. }
  52. }
  53. }
  54. }
  55. return_term {
  56. kind: Omitted
  57. }
  58. body {
  59. }
  60. }
  61. }
  62. declarations {
  63. function {
  64. name {
  65. name: "Main"
  66. }
  67. param_pattern {
  68. }
  69. return_term {
  70. kind: Expression
  71. type {
  72. int_type_literal {
  73. }
  74. }
  75. }
  76. body {
  77. statements {
  78. return_expression_statement {
  79. expression {
  80. int_literal {
  81. value: 0
  82. }
  83. }
  84. }
  85. }
  86. }
  87. }
  88. }
  89. }