@typescript-deploys/pr-build 5.4.0-pr-56907-6 → 5.4.0-pr-56392-10
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 +8 -24
- package/lib/tsserver.js +8 -24
- package/lib/typescript.js +8 -24
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -45010,7 +45010,11 @@ function createTypeChecker(host) {
|
|
|
45010
45010
|
if (errorBindingElement) {
|
|
45011
45011
|
return findAncestor(errorBindingElement, isBindingElement) !== findAncestor(declaration, isBindingElement) || declaration.pos < errorBindingElement.pos;
|
|
45012
45012
|
}
|
|
45013
|
-
|
|
45013
|
+
const rootDeclaration = getRootDeclaration(declaration);
|
|
45014
|
+
if (rootDeclaration.kind !== 260 /* VariableDeclaration */) {
|
|
45015
|
+
return true;
|
|
45016
|
+
}
|
|
45017
|
+
return isBlockScopedNameDeclaredBeforeUse(rootDeclaration, usage);
|
|
45014
45018
|
} else if (declaration.kind === 260 /* VariableDeclaration */) {
|
|
45015
45019
|
return !isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage);
|
|
45016
45020
|
} else if (isClassLike(declaration)) {
|
|
@@ -55652,7 +55656,7 @@ function createTypeChecker(host) {
|
|
|
55652
55656
|
let hasThisParameter = false;
|
|
55653
55657
|
const iife = getImmediatelyInvokedFunctionExpression(declaration);
|
|
55654
55658
|
const isJSConstructSignature = isJSDocConstructSignature(declaration);
|
|
55655
|
-
const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration)
|
|
55659
|
+
const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration);
|
|
55656
55660
|
if (isUntypedSignatureInJSFile) {
|
|
55657
55661
|
flags |= 32 /* IsUntypedSignatureInJSFile */;
|
|
55658
55662
|
}
|
|
@@ -65335,29 +65339,9 @@ function createTypeChecker(host) {
|
|
|
65335
65339
|
/*ignoreErrors*/
|
|
65336
65340
|
true
|
|
65337
65341
|
);
|
|
65338
|
-
if (!symbol ||
|
|
65342
|
+
if (!symbol || symbol.valueDeclaration && !isBlockScopedNameDeclaredBeforeUse(symbol.valueDeclaration, node))
|
|
65339
65343
|
return void 0;
|
|
65340
|
-
|
|
65341
|
-
if (declaration === void 0)
|
|
65342
|
-
return void 0;
|
|
65343
|
-
const type = tryGetTypeFromEffectiveTypeNode(declaration);
|
|
65344
|
-
if (type) {
|
|
65345
|
-
const name = tryGetNameFromType(type);
|
|
65346
|
-
if (name !== void 0) {
|
|
65347
|
-
return name;
|
|
65348
|
-
}
|
|
65349
|
-
}
|
|
65350
|
-
if (hasOnlyExpressionInitializer(declaration) && isBlockScopedNameDeclaredBeforeUse(declaration, node)) {
|
|
65351
|
-
const initializer = getEffectiveInitializer(declaration);
|
|
65352
|
-
if (initializer) {
|
|
65353
|
-
const initializerType = isBindingPattern(declaration.parent) ? getTypeForBindingElement(declaration) : getTypeOfExpression(initializer);
|
|
65354
|
-
return initializerType && tryGetNameFromType(initializerType);
|
|
65355
|
-
}
|
|
65356
|
-
if (isEnumMember(declaration)) {
|
|
65357
|
-
return getTextOfPropertyName(declaration.name);
|
|
65358
|
-
}
|
|
65359
|
-
}
|
|
65360
|
-
return void 0;
|
|
65344
|
+
return tryGetNameFromType(getTypeOfExpression(node));
|
|
65361
65345
|
}
|
|
65362
65346
|
function containsMatchingReference(source, target) {
|
|
65363
65347
|
while (isAccessExpression(source)) {
|
package/lib/tsserver.js
CHANGED
|
@@ -49738,7 +49738,11 @@ function createTypeChecker(host) {
|
|
|
49738
49738
|
if (errorBindingElement) {
|
|
49739
49739
|
return findAncestor(errorBindingElement, isBindingElement) !== findAncestor(declaration, isBindingElement) || declaration.pos < errorBindingElement.pos;
|
|
49740
49740
|
}
|
|
49741
|
-
|
|
49741
|
+
const rootDeclaration = getRootDeclaration(declaration);
|
|
49742
|
+
if (rootDeclaration.kind !== 260 /* VariableDeclaration */) {
|
|
49743
|
+
return true;
|
|
49744
|
+
}
|
|
49745
|
+
return isBlockScopedNameDeclaredBeforeUse(rootDeclaration, usage);
|
|
49742
49746
|
} else if (declaration.kind === 260 /* VariableDeclaration */) {
|
|
49743
49747
|
return !isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage);
|
|
49744
49748
|
} else if (isClassLike(declaration)) {
|
|
@@ -60380,7 +60384,7 @@ function createTypeChecker(host) {
|
|
|
60380
60384
|
let hasThisParameter2 = false;
|
|
60381
60385
|
const iife = getImmediatelyInvokedFunctionExpression(declaration);
|
|
60382
60386
|
const isJSConstructSignature = isJSDocConstructSignature(declaration);
|
|
60383
|
-
const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration)
|
|
60387
|
+
const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration);
|
|
60384
60388
|
if (isUntypedSignatureInJSFile) {
|
|
60385
60389
|
flags |= 32 /* IsUntypedSignatureInJSFile */;
|
|
60386
60390
|
}
|
|
@@ -70063,29 +70067,9 @@ function createTypeChecker(host) {
|
|
|
70063
70067
|
/*ignoreErrors*/
|
|
70064
70068
|
true
|
|
70065
70069
|
);
|
|
70066
|
-
if (!symbol ||
|
|
70070
|
+
if (!symbol || symbol.valueDeclaration && !isBlockScopedNameDeclaredBeforeUse(symbol.valueDeclaration, node))
|
|
70067
70071
|
return void 0;
|
|
70068
|
-
|
|
70069
|
-
if (declaration === void 0)
|
|
70070
|
-
return void 0;
|
|
70071
|
-
const type = tryGetTypeFromEffectiveTypeNode(declaration);
|
|
70072
|
-
if (type) {
|
|
70073
|
-
const name = tryGetNameFromType(type);
|
|
70074
|
-
if (name !== void 0) {
|
|
70075
|
-
return name;
|
|
70076
|
-
}
|
|
70077
|
-
}
|
|
70078
|
-
if (hasOnlyExpressionInitializer(declaration) && isBlockScopedNameDeclaredBeforeUse(declaration, node)) {
|
|
70079
|
-
const initializer = getEffectiveInitializer(declaration);
|
|
70080
|
-
if (initializer) {
|
|
70081
|
-
const initializerType = isBindingPattern(declaration.parent) ? getTypeForBindingElement(declaration) : getTypeOfExpression(initializer);
|
|
70082
|
-
return initializerType && tryGetNameFromType(initializerType);
|
|
70083
|
-
}
|
|
70084
|
-
if (isEnumMember(declaration)) {
|
|
70085
|
-
return getTextOfPropertyName(declaration.name);
|
|
70086
|
-
}
|
|
70087
|
-
}
|
|
70088
|
-
return void 0;
|
|
70072
|
+
return tryGetNameFromType(getTypeOfExpression(node));
|
|
70089
70073
|
}
|
|
70090
70074
|
function containsMatchingReference(source, target) {
|
|
70091
70075
|
while (isAccessExpression(source)) {
|
package/lib/typescript.js
CHANGED
|
@@ -47492,7 +47492,11 @@ ${lanes.join("\n")}
|
|
|
47492
47492
|
if (errorBindingElement) {
|
|
47493
47493
|
return findAncestor(errorBindingElement, isBindingElement) !== findAncestor(declaration, isBindingElement) || declaration.pos < errorBindingElement.pos;
|
|
47494
47494
|
}
|
|
47495
|
-
|
|
47495
|
+
const rootDeclaration = getRootDeclaration(declaration);
|
|
47496
|
+
if (rootDeclaration.kind !== 260 /* VariableDeclaration */) {
|
|
47497
|
+
return true;
|
|
47498
|
+
}
|
|
47499
|
+
return isBlockScopedNameDeclaredBeforeUse(rootDeclaration, usage);
|
|
47496
47500
|
} else if (declaration.kind === 260 /* VariableDeclaration */) {
|
|
47497
47501
|
return !isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage);
|
|
47498
47502
|
} else if (isClassLike(declaration)) {
|
|
@@ -58134,7 +58138,7 @@ ${lanes.join("\n")}
|
|
|
58134
58138
|
let hasThisParameter2 = false;
|
|
58135
58139
|
const iife = getImmediatelyInvokedFunctionExpression(declaration);
|
|
58136
58140
|
const isJSConstructSignature = isJSDocConstructSignature(declaration);
|
|
58137
|
-
const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration)
|
|
58141
|
+
const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration);
|
|
58138
58142
|
if (isUntypedSignatureInJSFile) {
|
|
58139
58143
|
flags |= 32 /* IsUntypedSignatureInJSFile */;
|
|
58140
58144
|
}
|
|
@@ -67817,29 +67821,9 @@ ${lanes.join("\n")}
|
|
|
67817
67821
|
/*ignoreErrors*/
|
|
67818
67822
|
true
|
|
67819
67823
|
);
|
|
67820
|
-
if (!symbol ||
|
|
67824
|
+
if (!symbol || symbol.valueDeclaration && !isBlockScopedNameDeclaredBeforeUse(symbol.valueDeclaration, node))
|
|
67821
67825
|
return void 0;
|
|
67822
|
-
|
|
67823
|
-
if (declaration === void 0)
|
|
67824
|
-
return void 0;
|
|
67825
|
-
const type = tryGetTypeFromEffectiveTypeNode(declaration);
|
|
67826
|
-
if (type) {
|
|
67827
|
-
const name = tryGetNameFromType(type);
|
|
67828
|
-
if (name !== void 0) {
|
|
67829
|
-
return name;
|
|
67830
|
-
}
|
|
67831
|
-
}
|
|
67832
|
-
if (hasOnlyExpressionInitializer(declaration) && isBlockScopedNameDeclaredBeforeUse(declaration, node)) {
|
|
67833
|
-
const initializer = getEffectiveInitializer(declaration);
|
|
67834
|
-
if (initializer) {
|
|
67835
|
-
const initializerType = isBindingPattern(declaration.parent) ? getTypeForBindingElement(declaration) : getTypeOfExpression(initializer);
|
|
67836
|
-
return initializerType && tryGetNameFromType(initializerType);
|
|
67837
|
-
}
|
|
67838
|
-
if (isEnumMember(declaration)) {
|
|
67839
|
-
return getTextOfPropertyName(declaration.name);
|
|
67840
|
-
}
|
|
67841
|
-
}
|
|
67842
|
-
return void 0;
|
|
67826
|
+
return tryGetNameFromType(getTypeOfExpression(node));
|
|
67843
67827
|
}
|
|
67844
67828
|
function containsMatchingReference(source, target) {
|
|
67845
67829
|
while (isAccessExpression(source)) {
|
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.4.0-pr-
|
|
5
|
+
"version": "5.4.0-pr-56392-10",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"node": "20.1.0",
|
|
115
115
|
"npm": "8.19.4"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "61dc1bc3d564f6e826f3e71906739e211c36705b"
|
|
118
118
|
}
|