DefinitionTree {
    definitions: [
        Function(
            FunctionDefinition {
                comments: CommentGroup {
                    comments: [],
                },
                attributes: [],
                function: 0,
                name: Identifier {
                    position: 9,
                    value: "a",
                },
                templates: Some(
                    TemplateGroupDefinition {
                        comments: CommentGroup {
                            comments: [],
                        },
                        less_than: 10,
                        members: CommaSeparated {
                            inner: [
                                TemplateDefinition {
                                    variance: Invaraint,
                                    name: Identifier {
                                        position: 11,
                                        value: "T",
                                    },
                                    constraint: SubType(
                                        13,
                                        Union(
                                            [
                                                String(
                                                    16,
                                                ),
                                                Integer(
                                                    23,
                                                ),
                                            ],
                                        ),
                                    ),
                                },
                                TemplateDefinition {
                                    variance: Covariance(
                                        28,
                                    ),
                                    name: Identifier {
                                        position: 29,
                                        value: "U",
                                    },
                                    constraint: None,
                                },
                            ],
                            commas: [
                                26,
                            ],
                        },
                        greater_than: 30,
                    },
                ),
                parameters: FunctionLikeParameterListDefinition {
                    comments: CommentGroup {
                        comments: [],
                    },
                    left_parenthesis: 31,
                    parameters: CommaSeparated {
                        inner: [
                            FunctionLikeParameterDefinition {
                                comments: CommentGroup {
                                    comments: [],
                                },
                                attributes: [],
                                type_definition: Union(
                                    [
                                        Function {
                                            outer_left_parenthesis: 38,
                                            fn: 39,
                                            left_parenthesis: 41,
                                            parameter_type_definitions: CommaSeparated {
                                                inner: [
                                                    Identifier(
                                                        TemplatedIdentifier {
                                                            name: Identifier {
                                                                position: 42,
                                                                value: "T",
                                                            },
                                                            templates: None,
                                                        },
                                                    ),
                                                ],
                                                commas: [],
                                            },
                                            right_parenthesis: 43,
                                            colon: 44,
                                            return_type_definition: Identifier(
                                                TemplatedIdentifier {
                                                    name: Identifier {
                                                        position: 46,
                                                        value: "U",
                                                    },
                                                    templates: None,
                                                },
                                            ),
                                            outer_right_parenthesis: 47,
                                        },
                                        Dict(
                                            49,
                                            TypeTemplateGroupDefinition {
                                                comments: CommentGroup {
                                                    comments: [],
                                                },
                                                less_than: 53,
                                                members: CommaSeparated {
                                                    inner: [
                                                        Identifier(
                                                            TemplatedIdentifier {
                                                                name: Identifier {
                                                                    position: 54,
                                                                    value: "T",
                                                                },
                                                                templates: None,
                                                            },
                                                        ),
                                                        Identifier(
                                                            TemplatedIdentifier {
                                                                name: Identifier {
                                                                    position: 57,
                                                                    value: "U",
                                                                },
                                                                templates: None,
                                                            },
                                                        ),
                                                    ],
                                                    commas: [
                                                        55,
                                                    ],
                                                },
                                                greater_than: 58,
                                            },
                                        ),
                                        Vec(
                                            60,
                                            TypeTemplateGroupDefinition {
                                                comments: CommentGroup {
                                                    comments: [],
                                                },
                                                less_than: 63,
                                                members: CommaSeparated {
                                                    inner: [
                                                        Identifier(
                                                            TemplatedIdentifier {
                                                                name: Identifier {
                                                                    position: 64,
                                                                    value: "U",
                                                                },
                                                                templates: None,
                                                            },
                                                        ),
                                                    ],
                                                    commas: [],
                                                },
                                                greater_than: 65,
                                            },
                                        ),
                                        Intersection(
                                            [
                                                Identifier(
                                                    TemplatedIdentifier {
                                                        name: Identifier {
                                                            position: 68,
                                                            value: "Foo",
                                                        },
                                                        templates: Some(
                                                            TypeTemplateGroupDefinition {
                                                                comments: CommentGroup {
                                                                    comments: [],
                                                                },
                                                                less_than: 71,
                                                                members: CommaSeparated {
                                                                    inner: [
                                                                        Identifier(
                                                                            TemplatedIdentifier {
                                                                                name: Identifier {
                                                                                    position: 72,
                                                                                    value: "T",
                                                                                },
                                                                                templates: None,
                                                                            },
                                                                        ),
                                                                        Identifier(
                                                                            TemplatedIdentifier {
                                                                                name: Identifier {
                                                                                    position: 75,
                                                                                    value: "U",
                                                                                },
                                                                                templates: None,
                                                                            },
                                                                        ),
                                                                    ],
                                                                    commas: [
                                                                        73,
                                                                    ],
                                                                },
                                                                greater_than: 76,
                                                            },
                                                        ),
                                                    },
                                                ),
                                                Identifier(
                                                    TemplatedIdentifier {
                                                        name: Identifier {
                                                            position: 78,
                                                            value: "Bar",
                                                        },
                                                        templates: Some(
                                                            TypeTemplateGroupDefinition {
                                                                comments: CommentGroup {
                                                                    comments: [],
                                                                },
                                                                less_than: 81,
                                                                members: CommaSeparated {
                                                                    inner: [
                                                                        Vec(
                                                                            82,
                                                                            TypeTemplateGroupDefinition {
                                                                                comments: CommentGroup {
                                                                                    comments: [],
                                                                                },
                                                                                less_than: 85,
                                                                                members: CommaSeparated {
                                                                                    inner: [
                                                                                        Identifier(
                                                                                            TemplatedIdentifier {
                                                                                                name: Identifier {
                                                                                                    position: 86,
                                                                                                    value: "U",
                                                                                                },
                                                                                                templates: None,
                                                                                            },
                                                                                        ),
                                                                                    ],
                                                                                    commas: [],
                                                                                },
                                                                                greater_than: 87,
                                                                            },
                                                                        ),
                                                                    ],
                                                                    commas: [],
                                                                },
                                                                greater_than: 88,
                                                            },
                                                        ),
                                                    },
                                                ),
                                            ],
                                        ),
                                    ],
                                ),
                                ellipsis: None,
                                variable: Variable {
                                    position: 91,
                                    name: "$x",
                                },
                                default: None,
                            },
                        ],
                        commas: [
                            93,
                        ],
                    },
                    right_parenthesis: 96,
                },
                return_type: FunctionLikeReturnTypeDefinition {
                    colon: 97,
                    type_definition: Dict(
                        99,
                        TypeTemplateGroupDefinition {
                            comments: CommentGroup {
                                comments: [],
                            },
                            less_than: 103,
                            members: CommaSeparated {
                                inner: [
                                    Identifier(
                                        TemplatedIdentifier {
                                            name: Identifier {
                                                position: 104,
                                                value: "Tk",
                                            },
                                            templates: None,
                                        },
                                    ),
                                    Identifier(
                                        TemplatedIdentifier {
                                            name: Identifier {
                                                position: 108,
                                                value: "Tv",
                                            },
                                            templates: None,
                                        },
                                    ),
                                ],
                                commas: [
                                    106,
                                ],
                            },
                            greater_than: 110,
                        },
                    ),
                },
                body: BlockStatement {
                    comments: CommentGroup {
                        comments: [],
                    },
                    left_brace: 112,
                    statements: [],
                    right_brace: 113,
                },
            },
        ),
    ],
    eof: 115,
}