| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329 |
- compilation_unit {
- package_statement {
- package_name: "ExplorerTest"
- }
- is_api: true
- declarations {
- namespace {
- name {
- name: "N"
- }
- }
- }
- declarations {
- mixin {
- name {
- qualifiers: "N"
- name: "Mixin"
- }
- self {
- name: "Self"
- type {
- type_type_literal {
- }
- }
- }
- }
- }
- declarations {
- class_declaration {
- name {
- qualifiers: "N"
- name: "BaseClass"
- }
- members {
- mix {
- mixin {
- identifier {
- name: "Mixin"
- }
- }
- }
- }
- }
- }
- declarations {
- class_declaration {
- name {
- qualifiers: "N"
- name: "DerivedClass"
- }
- }
- }
- declarations {
- namespace {
- name {
- qualifiers: "N"
- name: "Inner"
- }
- }
- }
- declarations {
- alias {
- name {
- qualifiers: "N"
- qualifiers: "Inner"
- name: "InnerClass"
- }
- target {
- identifier {
- name: "DerivedClass"
- }
- }
- }
- }
- declarations {
- choice {
- name {
- qualifiers: "N"
- name: "Choice"
- }
- alternatives {
- name: "A"
- signature {
- }
- }
- alternatives {
- name: "B"
- signature {
- }
- }
- alternatives {
- name: "C"
- signature {
- fields {
- identifier {
- name: "DerivedClass"
- }
- }
- }
- }
- }
- }
- declarations {
- interface {
- name {
- qualifiers: "N"
- name: "Iface"
- }
- members {
- function {
- name {
- name: "F"
- }
- param_pattern {
- }
- return_term {
- kind: Expression
- type {
- operator {
- op: Ptr
- arguments {
- identifier {
- name: "DerivedClass"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- declarations {
- constraint {
- name {
- qualifiers: "N"
- name: "Constraint"
- }
- members {
- interface_extends {
- base {
- identifier {
- name: "Iface"
- }
- }
- }
- }
- }
- }
- declarations {
- variable {
- binding {
- name: "v"
- type {
- expression_pattern {
- expression {
- simple_member_access {
- field: "DerivedClass"
- object {
- identifier {
- name: "N"
- }
- }
- }
- }
- }
- }
- }
- initializer {
- struct_literal {
- fields {
- name: "base"
- expression {
- struct_literal {
- }
- }
- }
- }
- }
- }
- }
- declarations {
- function {
- name {
- qualifiers: "N"
- name: "F"
- }
- deduced_parameters {
- name: "T"
- type {
- identifier {
- name: "Constraint"
- }
- }
- }
- param_pattern {
- }
- return_term {
- kind: Omitted
- }
- body {
- statements {
- variable_definition {
- pattern {
- binding_pattern {
- name: "v"
- type {
- expression_pattern {
- expression {
- simple_member_access {
- field: "InnerClass"
- object {
- identifier {
- name: "Inner"
- }
- }
- }
- }
- }
- }
- }
- }
- init {
- struct_literal {
- fields {
- name: "base"
- expression {
- struct_literal {
- }
- }
- }
- }
- }
- is_returned: false
- }
- }
- }
- }
- }
- declarations {
- impl {
- kind: InternalImpl
- impl_type {
- int_type_literal {
- }
- }
- interface {
- simple_member_access {
- field: "Constraint"
- object {
- identifier {
- name: "N"
- }
- }
- }
- }
- members {
- function {
- name {
- name: "F"
- }
- param_pattern {
- }
- return_term {
- kind: Expression
- type {
- operator {
- op: Ptr
- arguments {
- simple_member_access {
- field: "DerivedClass"
- object {
- identifier {
- name: "N"
- }
- }
- }
- }
- }
- }
- }
- body {
- statements {
- return_expression_statement {
- expression {
- operator {
- op: AddressOf
- arguments {
- identifier {
- name: "v"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- declarations {
- function {
- name {
- name: "Main"
- }
- param_pattern {
- }
- return_term {
- kind: Expression
- type {
- int_type_literal {
- }
- }
- }
- body {
- statements {
- return_expression_statement {
- expression {
- int_literal {
- value: 0
- }
- }
- }
- }
- }
- }
- }
- }
|