DefinitionTree {
    definitions: [
        Function(
            FunctionDefinition {
                comments: CommentGroup {
                    comments: [],
                },
                attributes: [],
                function: Span {
                    line: 1,
                    column: 1,
                    position: 0,
                },
                name: Identifier {
                    span: Span {
                        line: 1,
                        column: 10,
                        position: 9,
                    },
                    value: "main",
                },
                templates: None,
                parameters: FunctionLikeParameterListDefinition {
                    comments: CommentGroup {
                        comments: [],
                    },
                    left_parenthesis: Span {
                        line: 1,
                        column: 14,
                        position: 13,
                    },
                    parameters: CommaSeparated {
                        inner: [],
                        commas: [],
                    },
                    right_parenthesis: Span {
                        line: 1,
                        column: 15,
                        position: 14,
                    },
                },
                return_type: FunctionLikeReturnTypeDefinition {
                    colon: Span {
                        line: 1,
                        column: 16,
                        position: 15,
                    },
                    type_definition: Void(
                        Span {
                            line: 1,
                            column: 18,
                            position: 17,
                        },
                    ),
                },
                body: BlockStatement {
                    comments: CommentGroup {
                        comments: [],
                    },
                    left_brace: Span {
                        line: 1,
                        column: 23,
                        position: 22,
                    },
                    statements: [
                        If(
                            IfStatement {
                                comments: CommentGroup {
                                    comments: [],
                                },
                                if: Span {
                                    line: 2,
                                    column: 5,
                                    position: 28,
                                },
                                condition: Parenthesized(
                                    ParenthesizedExpression {
                                        comments: CommentGroup {
                                            comments: [],
                                        },
                                        left_parenthesis: Span {
                                            line: 2,
                                            column: 7,
                                            position: 30,
                                        },
                                        expression: Variable(
                                            Variable {
                                                span: Span {
                                                    line: 2,
                                                    column: 8,
                                                    position: 31,
                                                },
                                                name: "$foo",
                                            },
                                        ),
                                        right_parenthesis: Span {
                                            line: 2,
                                            column: 12,
                                            position: 35,
                                        },
                                    },
                                ),
                                block: BlockStatement {
                                    comments: CommentGroup {
                                        comments: [],
                                    },
                                    left_brace: Span {
                                        line: 2,
                                        column: 14,
                                        position: 37,
                                    },
                                    statements: [
                                        Return(
                                            Explicit {
                                                comments: CommentGroup {
                                                    comments: [],
                                                },
                                                return: Span {
                                                    line: 3,
                                                    column: 9,
                                                    position: 47,
                                                },
                                                expression: Some(
                                                    Variable(
                                                        Variable {
                                                            span: Span {
                                                                line: 3,
                                                                column: 16,
                                                                position: 54,
                                                            },
                                                            name: "$foo",
                                                        },
                                                    ),
                                                ),
                                                semicolon: Span {
                                                    line: 3,
                                                    column: 20,
                                                    position: 58,
                                                },
                                            },
                                        ),
                                    ],
                                    right_brace: Span {
                                        line: 4,
                                        column: 5,
                                        position: 64,
                                    },
                                },
                                elseifs: [
                                    IfStatementElseIf {
                                        comments: CommentGroup {
                                            comments: [],
                                        },
                                        elseif: Span {
                                            line: 4,
                                            column: 7,
                                            position: 66,
                                        },
                                        condition: Parenthesized(
                                            ParenthesizedExpression {
                                                comments: CommentGroup {
                                                    comments: [],
                                                },
                                                left_parenthesis: Span {
                                                    line: 4,
                                                    column: 13,
                                                    position: 72,
                                                },
                                                expression: Variable(
                                                    Variable {
                                                        span: Span {
                                                            line: 4,
                                                            column: 14,
                                                            position: 73,
                                                        },
                                                        name: "$foo",
                                                    },
                                                ),
                                                right_parenthesis: Span {
                                                    line: 4,
                                                    column: 18,
                                                    position: 77,
                                                },
                                            },
                                        ),
                                        block: BlockStatement {
                                            comments: CommentGroup {
                                                comments: [],
                                            },
                                            left_brace: Span {
                                                line: 4,
                                                column: 20,
                                                position: 79,
                                            },
                                            statements: [
                                                Return(
                                                    Explicit {
                                                        comments: CommentGroup {
                                                            comments: [],
                                                        },
                                                        return: Span {
                                                            line: 5,
                                                            column: 9,
                                                            position: 89,
                                                        },
                                                        expression: Some(
                                                            Variable(
                                                                Variable {
                                                                    span: Span {
                                                                        line: 5,
                                                                        column: 16,
                                                                        position: 96,
                                                                    },
                                                                    name: "$foo",
                                                                },
                                                            ),
                                                        ),
                                                        semicolon: Span {
                                                            line: 5,
                                                            column: 20,
                                                            position: 100,
                                                        },
                                                    },
                                                ),
                                            ],
                                            right_brace: Span {
                                                line: 6,
                                                column: 5,
                                                position: 106,
                                            },
                                        },
                                    },
                                ],
                                else: Some(
                                    IfStatementElse {
                                        comments: CommentGroup {
                                            comments: [],
                                        },
                                        else: Span {
                                            line: 6,
                                            column: 7,
                                            position: 108,
                                        },
                                        block: Block(
                                            BlockStatement {
                                                comments: CommentGroup {
                                                    comments: [],
                                                },
                                                left_brace: Span {
                                                    line: 6,
                                                    column: 12,
                                                    position: 113,
                                                },
                                                statements: [
                                                    Return(
                                                        Explicit {
                                                            comments: CommentGroup {
                                                                comments: [],
                                                            },
                                                            return: Span {
                                                                line: 7,
                                                                column: 9,
                                                                position: 123,
                                                            },
                                                            expression: Some(
                                                                Variable(
                                                                    Variable {
                                                                        span: Span {
                                                                            line: 7,
                                                                            column: 16,
                                                                            position: 130,
                                                                        },
                                                                        name: "$foo",
                                                                    },
                                                                ),
                                                            ),
                                                            semicolon: Span {
                                                                line: 7,
                                                                column: 20,
                                                                position: 134,
                                                            },
                                                        },
                                                    ),
                                                ],
                                                right_brace: Span {
                                                    line: 8,
                                                    column: 5,
                                                    position: 140,
                                                },
                                            },
                                        ),
                                    },
                                ),
                            },
                        ),
                    ],
                    right_brace: Span {
                        line: 9,
                        column: 1,
                        position: 142,
                    },
                },
            },
        ),
    ],
    eof: Span {
        line: 10,
        column: 1,
        position: 144,
    },
}