DefinitionTree { definitions: [ Enum( Unit( UnitEnumDefinition { comments: CommentGroup { comments: [], }, attributes: [], enum: Keyword { value: "enum", position: 0, }, name: Identifier { position: 5, value: "foo", }, implements: None, body: UnitEnumBodyDefinition { left_brace: 9, members: [ Method( MethodDefinition { comments: CommentGroup { comments: [], }, attributes: [], modifiers: ModifierGroupDefinition { position: 22, modifiers: [ Public( Keyword { value: "public", position: 15, }, ), ], }, function: Keyword { value: "function", position: 22, }, name: Identifier { position: 31, value: "bar", }, templates: None, parameters: MethodParameterListDefinition { comments: CommentGroup { comments: [], }, left_parenthesis: 34, parameters: CommaSeparated { inner: [], commas: [], }, right_parenthesis: 35, }, return_type: Some( FunctionLikeReturnTypeDefinition { colon: 36, type_definition: Identifier( TemplatedIdentifier { name: Identifier { position: 38, value: "parent", }, templates: None, }, ), }, ), constraints: None, body: Concrete( BlockStatement { comments: CommentGroup { comments: [], }, left_brace: 45, statements: [ Expression( ExpressionStatement { comments: CommentGroup { comments: [], }, expression: ExitConstruct( ExitWith { comments: CommentGroup { comments: [], }, exit: Keyword { value: "exit", position: 55, }, left_parenthesis: 59, value: Some( Literal( Integer( LiteralInteger { comments: CommentGroup { comments: [], }, value: "1", position: 60, }, ), ), ), right_parenthesis: 61, }, ), semicolon: 62, }, ), ], right_brace: 68, }, ), }, ), ], right_brace: 70, }, }, ), ), ], eof: 72, }