# mod.ts
export function test(value: number);
export function test(value: string);
export function test(value: string | number) {
}

namespace Inner {
  export function inner(value: number);
  export function inner(value: string);
  export function inner(value: string | number) {
  }
}

import InnerInner = Inner.inner;
export { InnerInner };

# output
file:///mod.ts: EsModuleInfo {
    module_id: ModuleId(
        0,
    ),
    specifier: "file:///mod.ts",
    re_exports: [],
    swc_id_to_symbol_id: {
        (
            "test",
            #2,
        ): 1,
        (
            "Inner",
            #2,
        ): 2,
        (
            "inner",
            #6,
        ): 3,
        (
            "InnerInner",
            #2,
        ): 4,
    },
    symbols: {
        0: Symbol {
            module_id: ModuleId(
                0,
            ),
            symbol_id: 0,
            parent_id: None,
            decls: [
                SymbolDecl {
                    kind: Definition(
                        SymbolNode(
                            "export function test(value: number);\nexport function test(value: string);\nexport function test(value: string | number) {\n}\n\nnamespace Inner {\n  export function inner(value: number);\n  export function inner(value: string);\n  export function inner(value: string | number) {\n  }\n}\n\nimport InnerInner = Inner.inner;\nexport { InnerInner };",
                        ),
                    ),
                    range: SourceRange {
                        start: SourcePos(
                            0,
                        ),
                        end: SourcePos(
                            334,
                        ),
                    },
                    flags: 0,
                },
            ],
            child_ids: {
                1,
                2,
            },
            exports: {
                "test": 1,
                "InnerInner": 5,
            },
            members: {},
        },
        1: Symbol {
            module_id: ModuleId(
                0,
            ),
            symbol_id: 1,
            parent_id: Some(
                0,
            ),
            decls: [
                SymbolDecl {
                    kind: Definition(
                        SymbolNode(
                            "export function test(value: number);",
                        ),
                    ),
                    range: SourceRange {
                        start: SourcePos(
                            0,
                        ),
                        end: SourcePos(
                            36,
                        ),
                    },
                    flags: 0,
                },
                SymbolDecl {
                    kind: Definition(
                        SymbolNode(
                            "export function test(value: string);",
                        ),
                    ),
                    range: SourceRange {
                        start: SourcePos(
                            37,
                        ),
                        end: SourcePos(
                            73,
                        ),
                    },
                    flags: 0,
                },
                SymbolDecl {
                    kind: Definition(
                        SymbolNode(
                            "export function test(value: string | number) {\n}",
                        ),
                    ),
                    range: SourceRange {
                        start: SourcePos(
                            74,
                        ),
                        end: SourcePos(
                            122,
                        ),
                    },
                    flags: 1,
                },
            ],
            child_ids: {},
            exports: {},
            members: {},
        },
        2: Symbol {
            module_id: ModuleId(
                0,
            ),
            symbol_id: 2,
            parent_id: Some(
                0,
            ),
            decls: [
                SymbolDecl {
                    kind: Definition(
                        SymbolNode(
                            "namespace Inner {\n  export function inner(value: number);\n  export function inner(value: string);\n  export function inner(value: string | number) {\n  }\n}",
                        ),
                    ),
                    range: SourceRange {
                        start: SourcePos(
                            124,
                        ),
                        end: SourcePos(
                            277,
                        ),
                    },
                    flags: 0,
                },
            ],
            child_ids: {
                3,
            },
            exports: {
                "inner": 3,
            },
            members: {},
        },
        3: Symbol {
            module_id: ModuleId(
                0,
            ),
            symbol_id: 3,
            parent_id: Some(
                2,
            ),
            decls: [
                SymbolDecl {
                    kind: Definition(
                        SymbolNode(
                            "export function inner(value: number);",
                        ),
                    ),
                    range: SourceRange {
                        start: SourcePos(
                            144,
                        ),
                        end: SourcePos(
                            181,
                        ),
                    },
                    flags: 0,
                },
                SymbolDecl {
                    kind: Definition(
                        SymbolNode(
                            "export function inner(value: string);",
                        ),
                    ),
                    range: SourceRange {
                        start: SourcePos(
                            184,
                        ),
                        end: SourcePos(
                            221,
                        ),
                    },
                    flags: 0,
                },
                SymbolDecl {
                    kind: Definition(
                        SymbolNode(
                            "export function inner(value: string | number) {\n  }",
                        ),
                    ),
                    range: SourceRange {
                        start: SourcePos(
                            224,
                        ),
                        end: SourcePos(
                            275,
                        ),
                    },
                    flags: 1,
                },
            ],
            child_ids: {},
            exports: {},
            members: {},
        },
        4: Symbol {
            module_id: ModuleId(
                0,
            ),
            symbol_id: 4,
            parent_id: Some(
                0,
            ),
            decls: [
                SymbolDecl {
                    kind: QualifiedTarget(
                        (
                            "Inner",
                            #2,
                        ),
                        [
                            "inner",
                        ],
                    ),
                    range: SourceRange {
                        start: SourcePos(
                            279,
                        ),
                        end: SourcePos(
                            311,
                        ),
                    },
                    flags: 0,
                },
            ],
            child_ids: {},
            exports: {},
            members: {},
        },
        5: Symbol {
            module_id: ModuleId(
                0,
            ),
            symbol_id: 5,
            parent_id: Some(
                0,
            ),
            decls: [
                SymbolDecl {
                    kind: Target(
                        (
                            "InnerInner",
                            #2,
                        ),
                    ),
                    range: SourceRange {
                        start: SourcePos(
                            321,
                        ),
                        end: SourcePos(
                            331,
                        ),
                    },
                    flags: 0,
                },
            ],
            child_ids: {},
            exports: {},
            members: {},
        },
    },
}
== export definitions ==
[test]: file:///mod.ts:0..36
  export function test(value: number);
file:///mod.ts:37..73
  export function test(value: string);
file:///mod.ts:74..122
  export function test(value: string | number) {
  }
[InnerInner]: file:///mod.ts:144..181
  export function inner(value: number);
file:///mod.ts:184..221
  export function inner(value: string);
file:///mod.ts:224..275
  export function inner(value: string | number) {
    }
