@typescript-deploys/pr-build 5.5.0-pr-58323-2 → 5.5.0-pr-58333-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tsc.js +2 -13
- package/lib/typescript.js +2 -13
- package/package.json +1 -1
package/lib/tsc.js
CHANGED
|
@@ -84464,18 +84464,6 @@ function createTypeChecker(host) {
|
|
|
84464
84464
|
if (node.flags & 67108864 /* InWithStatement */) {
|
|
84465
84465
|
return errorType;
|
|
84466
84466
|
}
|
|
84467
|
-
const containingFunction = findAncestor(node, (node2) => {
|
|
84468
|
-
if (isFunctionLikeDeclaration(node2)) {
|
|
84469
|
-
if (node2.asteriskToken) {
|
|
84470
|
-
return true;
|
|
84471
|
-
}
|
|
84472
|
-
return "quit";
|
|
84473
|
-
}
|
|
84474
|
-
return false;
|
|
84475
|
-
});
|
|
84476
|
-
if (containingFunction) {
|
|
84477
|
-
getReturnTypeOfSignature(getSignatureFromDeclaration(containingFunction));
|
|
84478
|
-
}
|
|
84479
84467
|
const classDecl = tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node);
|
|
84480
84468
|
const classType = classDecl && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(classDecl.class));
|
|
84481
84469
|
if (isPartOfTypeNode(node)) {
|
|
@@ -110474,12 +110462,13 @@ function createGetIsolatedDeclarationErrors(resolver) {
|
|
|
110474
110462
|
// src/compiler/transformers/declarations.ts
|
|
110475
110463
|
function getDeclarationDiagnostics(host, resolver, file) {
|
|
110476
110464
|
const compilerOptions = host.getCompilerOptions();
|
|
110465
|
+
const files = filter(getSourceFilesToEmit(host, file), isSourceFileNotJson);
|
|
110477
110466
|
const result = transformNodes(
|
|
110478
110467
|
resolver,
|
|
110479
110468
|
host,
|
|
110480
110469
|
factory,
|
|
110481
110470
|
compilerOptions,
|
|
110482
|
-
file ? [file] :
|
|
110471
|
+
file ? contains(files, file) ? [file] : emptyArray : files,
|
|
110483
110472
|
[transformDeclarations],
|
|
110484
110473
|
/*allowDtsFiles*/
|
|
110485
110474
|
false
|
package/lib/typescript.js
CHANGED
|
@@ -89293,18 +89293,6 @@ function createTypeChecker(host) {
|
|
|
89293
89293
|
if (node.flags & 67108864 /* InWithStatement */) {
|
|
89294
89294
|
return errorType;
|
|
89295
89295
|
}
|
|
89296
|
-
const containingFunction = findAncestor(node, (node2) => {
|
|
89297
|
-
if (isFunctionLikeDeclaration(node2)) {
|
|
89298
|
-
if (node2.asteriskToken) {
|
|
89299
|
-
return true;
|
|
89300
|
-
}
|
|
89301
|
-
return "quit";
|
|
89302
|
-
}
|
|
89303
|
-
return false;
|
|
89304
|
-
});
|
|
89305
|
-
if (containingFunction) {
|
|
89306
|
-
getReturnTypeOfSignature(getSignatureFromDeclaration(containingFunction));
|
|
89307
|
-
}
|
|
89308
89296
|
const classDecl = tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node);
|
|
89309
89297
|
const classType = classDecl && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(classDecl.class));
|
|
89310
89298
|
if (isPartOfTypeNode(node)) {
|
|
@@ -115490,12 +115478,13 @@ function createGetIsolatedDeclarationErrors(resolver) {
|
|
|
115490
115478
|
// src/compiler/transformers/declarations.ts
|
|
115491
115479
|
function getDeclarationDiagnostics(host, resolver, file) {
|
|
115492
115480
|
const compilerOptions = host.getCompilerOptions();
|
|
115481
|
+
const files = filter(getSourceFilesToEmit(host, file), isSourceFileNotJson);
|
|
115493
115482
|
const result = transformNodes(
|
|
115494
115483
|
resolver,
|
|
115495
115484
|
host,
|
|
115496
115485
|
factory,
|
|
115497
115486
|
compilerOptions,
|
|
115498
|
-
file ? [file] :
|
|
115487
|
+
file ? contains(files, file) ? [file] : emptyArray : files,
|
|
115499
115488
|
[transformDeclarations],
|
|
115500
115489
|
/*allowDtsFiles*/
|
|
115501
115490
|
false
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typescript-deploys/pr-build",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.5.0-pr-
|
|
5
|
+
"version": "5.5.0-pr-58333-2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|