[
    FullOpeningTag(
        Span(
            1,
            1,
        ),
    ),
    Function(
        Function {
            comments: CommentGroup {
                comments: [],
            },
            attributes: [],
            function: Span(
                3,
                1,
            ),
            ampersand: None,
            name: SimpleIdentifier {
                span: Span(
                    3,
                    10,
                ),
                value: "bar",
            },
            parameters: FunctionParameterList {
                comments: CommentGroup {
                    comments: [],
                },
                left_parenthesis: Span(
                    3,
                    13,
                ),
                parameters: CommaSeparated {
                    inner: [
                        FunctionParameter {
                            comments: CommentGroup {
                                comments: [],
                            },
                            name: SimpleVariable {
                                span: Span(
                                    4,
                                    13,
                                ),
                                name: "i",
                            },
                            attributes: [],
                            data_type: Some(
                                Union(
                                    [
                                        Named(
                                            Span(
                                                4,
                                                5,
                                            ),
                                            "A",
                                        ),
                                        Intersection(
                                            [
                                                Named(
                                                    Span(
                                                        4,
                                                        8,
                                                    ),
                                                    "B",
                                                ),
                                                Named(
                                                    Span(
                                                        4,
                                                        10,
                                                    ),
                                                    "C",
                                                ),
                                            ],
                                        ),
                                    ],
                                ),
                            ),
                            ellipsis: None,
                            default: None,
                            ampersand: None,
                        },
                    ],
                    commas: [],
                },
                right_parenthesis: Span(
                    5,
                    1,
                ),
            },
            return_type: Some(
                ReturnType {
                    colon: Span(
                        5,
                        2,
                    ),
                    data_type: Union(
                        [
                            Intersection(
                                [
                                    Named(
                                        Span(
                                            5,
                                            5,
                                        ),
                                        "B",
                                    ),
                                    Named(
                                        Span(
                                            5,
                                            7,
                                        ),
                                        "C",
                                    ),
                                ],
                            ),
                            Named(
                                Span(
                                    5,
                                    10,
                                ),
                                "A",
                            ),
                        ],
                    ),
                },
            ),
            body: FunctionBody {
                comments: CommentGroup {
                    comments: [],
                },
                left_brace: Span(
                    5,
                    12,
                ),
                statements: [
                    Return {
                        return: Span(
                            6,
                            5,
                        ),
                        value: Some(
                            Variable(
                                SimpleVariable(
                                    SimpleVariable {
                                        span: Span(
                                            6,
                                            12,
                                        ),
                                        name: "i",
                                    },
                                ),
                            ),
                        ),
                        ending: Semicolon(
                            Span(
                                6,
                                14,
                            ),
                        ),
                    },
                ],
                right_brace: Span(
                    7,
                    1,
                ),
            },
        },
    ),
]
