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