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
@@ -52814,6 +52815,40 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
52814
52815
Debug.assert(specifier && nodeIsSynthesized(specifier) && specifier.text === "tslib", `Expected sourceFile.imports[0] to be the synthesized tslib import`);
52815
52816
return specifier;
52816
52817
}
52818
+
52819
+
function compareSymbols(s1: Symbol | undefined, s2: Symbol | undefined): number {
52820
+
if (s1 === s2) return 0;
52821
+
if (s1 === undefined) return 1;
52822
+
if (s2 === undefined) return -1;
52823
+
if (length(s1.declarations) !== 0 && length(s2.declarations) !== 0) {
52824
+
const r = compareNodes(s1.declarations![0], s2.declarations![0]);
52825
+
if (r !== 0) return r;
52826
+
}
52827
+
else if (length(s1.declarations) !== 0) {
52828
+
return -1;
52829
+
}
52830
+
else if (length(s2.declarations) !== 0) {
52831
+
return 1;
52832
+
}
52833
+
const r = compareComparableValues(s1.escapedName as string, s2.escapedName as string);
52834
+
if (r !== 0) return r;
52835
+
return getSymbolId(s1) - getSymbolId(s2);
52836
+
}
52837
+
52838
+
function compareNodes(n1: Node | undefined, n2: Node | undefined): number {
52839
+
if (n1 === n2) return 0;
52840
+
if (n1 === undefined) return 1;
52841
+
if (n2 === undefined) return -1;
52842
+
const f1 = fileIndexMap.get(getSourceFileOfNode(n1))!;
0 commit comments