You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -52817,6 +52818,39 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
52817
52818
Debug.assert(specifier && nodeIsSynthesized(specifier) && specifier.text === "tslib", `Expected sourceFile.imports[0] to be the synthesized tslib import`);
52818
52819
return specifier;
52819
52820
}
52821
+
52822
+
function compareSymbols(s1: Symbol | undefined, s2: Symbol | undefined): number {
52823
+
if (s1 === s2) return 0;
52824
+
if (s1 === undefined) return 1;
52825
+
if (s2 === undefined) return -1;
52826
+
if (length(s1.declarations) !== 0 && length(s2.declarations) !== 0) {
52827
+
const r = compareNodes(s1.declarations![0], s2.declarations![0]);
52828
+
if (r !== 0) return r;
52829
+
}
52830
+
else if (length(s1.declarations) !== 0) {
52831
+
return -1;
52832
+
}
52833
+
else if (length(s2.declarations) !== 0) {
52834
+
return 1;
52835
+
}
52836
+
const r = compareComparableValues(s1.escapedName as string, s2.escapedName as string);
52837
+
if (r !== 0) return r;
52838
+
return getSymbolId(s1) - getSymbolId(s2);
52839
+
}
52840
+
52841
+
function compareNodes(n1: Node | undefined, n2: Node | undefined): number {
52842
+
if (n1 === n2) return 0;
52843
+
if (n1 === undefined) return 1;
52844
+
if (n2 === undefined) return -1;
52845
+
const f1 = fileIndexMap.get(getSourceFileOfNode(n1))!;
0 commit comments