d461c6f24473e9f2bbc61bedf75fe8e87ee5ac15 1.1 KB

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