[ Class { name: Identifier { name: "foo", }, attributes: [], extends: None, implements: [], body: [ Method { name: Identifier { name: "foreach", }, attributes: [], params: [], body: [], flags: [ Public, ], return_type: None, by_ref: false, }, ], flags: [], }, ]