DefinitionTree {
    definitions: [
        Enum(
            Unit(
                UnitEnumDefinition {
                    comments: CommentGroup {
                        comments: [],
                    },
                    attributes: [],
                    enum: Span {
                        line: 1,
                        column: 1,
                        position: 0,
                    },
                    name: Identifier {
                        span: Span {
                            line: 1,
                            column: 6,
                            position: 5,
                        },
                        value: "foo",
                    },
                    implements: None,
                    body: UnitEnumBodyDefinition {
                        left_brace: Span {
                            line: 1,
                            column: 10,
                            position: 9,
                        },
                        members: [
                            Method(
                                ConcreteMethodDefinition {
                                    comments: CommentGroup {
                                        comments: [],
                                    },
                                    attributes: [],
                                    modifiers: MethodModifierDefinitionGroup {
                                        modifiers: [
                                            Public(
                                                Span {
                                                    line: 2,
                                                    column: 5,
                                                    position: 15,
                                                },
                                            ),
                                        ],
                                    },
                                    function: Span {
                                        line: 2,
                                        column: 12,
                                        position: 22,
                                    },
                                    name: Identifier {
                                        span: Span {
                                            line: 2,
                                            column: 21,
                                            position: 31,
                                        },
                                        value: "bar",
                                    },
                                    templates: None,
                                    parameters: FunctionLikeParameterListDefinition {
                                        comments: CommentGroup {
                                            comments: [],
                                        },
                                        left_parenthesis: Span {
                                            line: 2,
                                            column: 24,
                                            position: 34,
                                        },
                                        parameters: CommaSeparated {
                                            inner: [],
                                            commas: [],
                                        },
                                        right_parenthesis: Span {
                                            line: 2,
                                            column: 25,
                                            position: 35,
                                        },
                                    },
                                    return_type: FunctionLikeReturnTypeDefinition {
                                        colon: Span {
                                            line: 2,
                                            column: 26,
                                            position: 36,
                                        },
                                        type_definition: Identifier(
                                            TemplatedIdentifier {
                                                name: Identifier {
                                                    span: Span {
                                                        line: 2,
                                                        column: 28,
                                                        position: 38,
                                                    },
                                                    value: "parent",
                                                },
                                                templates: None,
                                            },
                                        ),
                                    },
                                    constraints: None,
                                    body: BlockStatement {
                                        comments: CommentGroup {
                                            comments: [],
                                        },
                                        left_brace: Span {
                                            line: 2,
                                            column: 35,
                                            position: 45,
                                        },
                                        statements: [
                                            Expression(
                                                ExpressionStatement {
                                                    comments: CommentGroup {
                                                        comments: [],
                                                    },
                                                    expression: ExitConstruct(
                                                        ExitWith {
                                                            comments: CommentGroup {
                                                                comments: [],
                                                            },
                                                            exit: Span {
                                                                line: 3,
                                                                column: 9,
                                                                position: 55,
                                                            },
                                                            left_parenthesis: Span {
                                                                line: 3,
                                                                column: 13,
                                                                position: 59,
                                                            },
                                                            value: Some(
                                                                Literal(
                                                                    Integer(
                                                                        LiteralInteger {
                                                                            comments: CommentGroup {
                                                                                comments: [],
                                                                            },
                                                                            value: "1",
                                                                            span: Span {
                                                                                line: 3,
                                                                                column: 14,
                                                                                position: 60,
                                                                            },
                                                                        },
                                                                    ),
                                                                ),
                                                            ),
                                                            right_parenthesis: Span {
                                                                line: 3,
                                                                column: 15,
                                                                position: 61,
                                                            },
                                                        },
                                                    ),
                                                    semicolon: Span {
                                                        line: 3,
                                                        column: 16,
                                                        position: 62,
                                                    },
                                                },
                                            ),
                                        ],
                                        right_brace: Span {
                                            line: 4,
                                            column: 5,
                                            position: 68,
                                        },
                                    },
                                },
                            ),
                        ],
                        right_brace: Span {
                            line: 5,
                            column: 1,
                            position: 70,
                        },
                    },
                },
            ),
        ),
    ],
    eof: Span {
        line: 6,
        column: 1,
        position: 72,
    },
}