mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 03:23:08 -06:00
Update LKG
This commit is contained in:
parent
f3b21a2033
commit
ce2e60e4ea
@ -141458,8 +141458,9 @@ interface Symbol {
|
||||
readonly [Symbol.toStringTag]: string;
|
||||
}`;
|
||||
var barebonesLibName = "lib.d.ts";
|
||||
var barebonesLibSourceFile = createSourceFile(barebonesLibName, barebonesLibContent, { languageVersion: 99 /* Latest */ });
|
||||
var barebonesLibSourceFile;
|
||||
function transpileWorker(input, transpileOptions, declaration) {
|
||||
barebonesLibSourceFile ?? (barebonesLibSourceFile = createSourceFile(barebonesLibName, barebonesLibContent, { languageVersion: 99 /* Latest */ }));
|
||||
const diagnostics = [];
|
||||
const options = transpileOptions.compilerOptions ? fixupCompilerOptions(transpileOptions.compilerOptions, diagnostics) : {};
|
||||
const defaultOptions = getDefaultCompilerOptions2();
|
||||
@ -143929,7 +143930,7 @@ function getUsageInfo(oldFile, toMove, checker, existingTargetLocals = /* @__PUR
|
||||
const unusedImportsFromOldFile = /* @__PURE__ */ new Set();
|
||||
for (const statement of toMove) {
|
||||
forEachReference(statement, checker, (symbol, isValidTypeOnlyUseSite) => {
|
||||
if (!symbol.declarations) {
|
||||
if (!symbol.declarations || isGlobalType(checker, symbol)) {
|
||||
return;
|
||||
}
|
||||
if (existingTargetLocals.has(skipAlias(symbol, checker))) {
|
||||
@ -143979,6 +143980,16 @@ function getUsageInfo(oldFile, toMove, checker, existingTargetLocals = /* @__PUR
|
||||
return !!jsxNamespaceSymbol2 && some(jsxNamespaceSymbol2.declarations, isInImport) ? jsxNamespaceSymbol2 : void 0;
|
||||
}
|
||||
}
|
||||
function isGlobalType(checker, symbol) {
|
||||
return !!checker.resolveName(
|
||||
symbol.name,
|
||||
/*location*/
|
||||
void 0,
|
||||
788968 /* Type */,
|
||||
/*excludeGlobals*/
|
||||
false
|
||||
);
|
||||
}
|
||||
function makeUniqueFilename(proposedFilename, extension, inDirectory, host) {
|
||||
let newFilename = proposedFilename;
|
||||
for (let i = 1; ; i++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user