--TEST-- Test parse and dump of class --FILE-- --EXPECTF-- Deprecated: ast\parse_code(): Version 60 is deprecated in %sclass.php on line 15 AST_STMT_LIST 0: AST_CLASS name: "A" docComment: null extends: AST_NAME flags: NAME_NOT_FQ (%d) name: "B" implements: AST_NAME_LIST 0: AST_NAME flags: NAME_NOT_FQ (%d) name: "D" 1: AST_NAME flags: NAME_NOT_FQ (%d) name: "E" stmts: AST_STMT_LIST 0: AST_USE_TRAIT traits: AST_NAME_LIST 0: AST_NAME flags: NAME_NOT_FQ (%d) name: "T" 1: AST_NAME flags: NAME_NOT_FQ (%d) name: "S" adaptations: null 1: AST_CLASS_CONST_DECL flags: MODIFIER_PUBLIC (%d) 0: AST_CONST_ELEM name: "X" value: "Y" docComment: null 1: AST_CONST_ELEM name: "Y" value: "X" docComment: null 2: AST_PROP_DECL flags: MODIFIER_PUBLIC (%d) 0: AST_PROP_ELEM name: "foo" default: null docComment: null 1: AST_PROP_ELEM name: "bar" default: null docComment: null 3: AST_METHOD flags: MODIFIER_PUBLIC | MODIFIER_ABSTRACT (%d) name: "test" docComment: null params: AST_PARAM_LIST stmts: null returnType: null __declId: 0 __declId: 1 AST_STMT_LIST 0: AST_CLASS name: "A" docComment: null extends: AST_NAME flags: NAME_NOT_FQ (%d) name: "B" implements: AST_NAME_LIST 0: AST_NAME flags: NAME_NOT_FQ (%d) name: "D" 1: AST_NAME flags: NAME_NOT_FQ (%d) name: "E" stmts: AST_STMT_LIST 0: AST_USE_TRAIT traits: AST_NAME_LIST 0: AST_NAME flags: NAME_NOT_FQ (%d) name: "T" 1: AST_NAME flags: NAME_NOT_FQ (%d) name: "S" adaptations: null 1: AST_CLASS_CONST_DECL flags: MODIFIER_PUBLIC (%d) 0: AST_CONST_ELEM name: "X" value: "Y" docComment: null 1: AST_CONST_ELEM name: "Y" value: "X" docComment: null 2: AST_PROP_GROUP flags: MODIFIER_PUBLIC (%d) type: null props: AST_PROP_DECL 0: AST_PROP_ELEM name: "foo" default: null docComment: null 1: AST_PROP_ELEM name: "bar" default: null docComment: null 3: AST_METHOD flags: MODIFIER_PUBLIC | MODIFIER_ABSTRACT (%d) name: "test" docComment: null params: AST_PARAM_LIST stmts: null returnType: null __declId: 0 __declId: 1