[ Class { name: Identifier { name: "s", }, attributes: [], extends: None, implements: [], body: [], flags: [], }, Class { name: Identifier { name: "foo", }, attributes: [], extends: Some( Identifier { name: "s", }, ), implements: [], body: [ Method { name: Identifier { name: "bar", }, attributes: [], params: [], body: [ Return { value: Some( New { target: Identifier { name: "s", }, args: [], }, ), }, ], flags: [ Public, ], return_type: Some( ParentReference, ), by_ref: false, }, ], flags: [], }, ]