@typescript-deploys/pr-build 5.5.0-pr-58007-11 → 5.5.0-pr-55267-165
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 +47 -44
- package/lib/typescript.js +50 -47
- package/package.json +1 -1
package/lib/tsc.js
CHANGED
|
@@ -6132,18 +6132,6 @@ var Diagnostics = {
|
|
|
6132
6132
|
This_character_cannot_be_escaped_in_a_regular_expression: diag(1535, 1 /* Error */, "This_character_cannot_be_escaped_in_a_regular_expression_1535", "This character cannot be escaped in a regular expression."),
|
|
6133
6133
|
Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead: diag(1536, 1 /* Error */, "Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536", "Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),
|
|
6134
6134
|
Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class: diag(1537, 1 /* Error */, "Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537", "Decimal escape sequences and backreferences are not allowed in a character class."),
|
|
6135
|
-
A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead: diag(
|
|
6136
|
-
1538,
|
|
6137
|
-
2 /* Suggestion */,
|
|
6138
|
-
"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1538",
|
|
6139
|
-
"A namespace declaration should not be declared using the module keyword. Please use the namespace keyword instead.",
|
|
6140
|
-
/*reportsUnnecessary*/
|
|
6141
|
-
void 0,
|
|
6142
|
-
/*elidedInCompatabilityPyramid*/
|
|
6143
|
-
void 0,
|
|
6144
|
-
/*reportsDeprecated*/
|
|
6145
|
-
true
|
|
6146
|
-
),
|
|
6147
6135
|
The_types_of_0_are_incompatible_between_these_types: diag(2200, 1 /* Error */, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."),
|
|
6148
6136
|
The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, 1 /* Error */, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."),
|
|
6149
6137
|
Call_signature_return_types_0_and_1_are_incompatible: diag(
|
|
@@ -9807,7 +9795,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
9807
9795
|
pos++;
|
|
9808
9796
|
let regExpFlags = 0 /* None */;
|
|
9809
9797
|
while (true) {
|
|
9810
|
-
const ch =
|
|
9798
|
+
const ch = charCodeChecked(pos);
|
|
9811
9799
|
if (ch === -1 /* EOF */ || !isIdentifierPart(ch, languageVersion)) {
|
|
9812
9800
|
break;
|
|
9813
9801
|
}
|
|
@@ -11058,10 +11046,10 @@ var binaryUnicodeProperties = /* @__PURE__ */ new Set(["ASCII", "ASCII_Hex_Digit
|
|
|
11058
11046
|
var binaryUnicodePropertiesOfStrings = /* @__PURE__ */ new Set(["Basic_Emoji", "Emoji_Keycap_Sequence", "RGI_Emoji_Modifier_Sequence", "RGI_Emoji_Flag_Sequence", "RGI_Emoji_Tag_Sequence", "RGI_Emoji_ZWJ_Sequence", "RGI_Emoji"]);
|
|
11059
11047
|
var valuesOfNonBinaryUnicodeProperties = {
|
|
11060
11048
|
General_Category: /* @__PURE__ */ new Set(["C", "Other", "Cc", "Control", "cntrl", "Cf", "Format", "Cn", "Unassigned", "Co", "Private_Use", "Cs", "Surrogate", "L", "Letter", "LC", "Cased_Letter", "Ll", "Lowercase_Letter", "Lm", "Modifier_Letter", "Lo", "Other_Letter", "Lt", "Titlecase_Letter", "Lu", "Uppercase_Letter", "M", "Mark", "Combining_Mark", "Mc", "Spacing_Mark", "Me", "Enclosing_Mark", "Mn", "Nonspacing_Mark", "N", "Number", "Nd", "Decimal_Number", "digit", "Nl", "Letter_Number", "No", "Other_Number", "P", "Punctuation", "punct", "Pc", "Connector_Punctuation", "Pd", "Dash_Punctuation", "Pe", "Close_Punctuation", "Pf", "Final_Punctuation", "Pi", "Initial_Punctuation", "Po", "Other_Punctuation", "Ps", "Open_Punctuation", "S", "Symbol", "Sc", "Currency_Symbol", "Sk", "Modifier_Symbol", "Sm", "Math_Symbol", "So", "Other_Symbol", "Z", "Separator", "Zl", "Line_Separator", "Zp", "Paragraph_Separator", "Zs", "Space_Separator"]),
|
|
11061
|
-
Script: /* @__PURE__ */ new Set(["Adlm", "Adlam", "Aghb", "Caucasian_Albanian", "Ahom", "
|
|
11062
|
-
Script_Extensions:
|
|
11063
|
-
// Currently empty
|
|
11049
|
+
Script: /* @__PURE__ */ new Set(["Adlm", "Adlam", "Aghb", "Caucasian_Albanian", "Ahom", "Arab", "Arabic", "Armi", "Imperial_Aramaic", "Armn", "Armenian", "Avst", "Avestan", "Bali", "Balinese", "Bamu", "Bamum", "Bass", "Bassa_Vah", "Batk", "Batak", "Beng", "Bengali", "Bhks", "Bhaiksuki", "Bopo", "Bopomofo", "Brah", "Brahmi", "Brai", "Braille", "Bugi", "Buginese", "Buhd", "Buhid", "Cakm", "Chakma", "Cans", "Canadian_Aboriginal", "Cari", "Carian", "Cham", "Cher", "Cherokee", "Chrs", "Chorasmian", "Copt", "Coptic", "Qaac", "Cpmn", "Cypro_Minoan", "Cprt", "Cypriot", "Cyrl", "Cyrillic", "Deva", "Devanagari", "Diak", "Dives_Akuru", "Dogr", "Dogra", "Dsrt", "Deseret", "Dupl", "Duployan", "Egyp", "Egyptian_Hieroglyphs", "Elba", "Elbasan", "Elym", "Elymaic", "Ethi", "Ethiopic", "Geor", "Georgian", "Glag", "Glagolitic", "Gong", "Gunjala_Gondi", "Gonm", "Masaram_Gondi", "Goth", "Gothic", "Gran", "Grantha", "Grek", "Greek", "Gujr", "Gujarati", "Guru", "Gurmukhi", "Hang", "Hangul", "Hani", "Han", "Hano", "Hanunoo", "Hatr", "Hatran", "Hebr", "Hebrew", "Hira", "Hiragana", "Hluw", "Anatolian_Hieroglyphs", "Hmng", "Pahawh_Hmong", "Hmnp", "Nyiakeng_Puachue_Hmong", "Hrkt", "Katakana_Or_Hiragana", "Hung", "Old_Hungarian", "Ital", "Old_Italic", "Java", "Javanese", "Kali", "Kayah_Li", "Kana", "Katakana", "Kawi", "Khar", "Kharoshthi", "Khmr", "Khmer", "Khoj", "Khojki", "Kits", "Khitan_Small_Script", "Knda", "Kannada", "Kthi", "Kaithi", "Lana", "Tai_Tham", "Laoo", "Lao", "Latn", "Latin", "Lepc", "Lepcha", "Limb", "Limbu", "Lina", "Linear_A", "Linb", "Linear_B", "Lisu", "Lyci", "Lycian", "Lydi", "Lydian", "Mahj", "Mahajani", "Maka", "Makasar", "Mand", "Mandaic", "Mani", "Manichaean", "Marc", "Marchen", "Medf", "Medefaidrin", "Mend", "Mende_Kikakui", "Merc", "Meroitic_Cursive", "Mero", "Meroitic_Hieroglyphs", "Mlym", "Malayalam", "Modi", "Mong", "Mongolian", "Mroo", "Mro", "Mtei", "Meetei_Mayek", "Mult", "Multani", "Mymr", "Myanmar", "Nagm", "Nag_Mundari", "Nand", "Nandinagari", "Narb", "Old_North_Arabian", "Nbat", "Nabataean", "Newa", "Nkoo", "Nko", "Nshu", "Nushu", "Ogam", "Ogham", "Olck", "Ol_Chiki", "Orkh", "Old_Turkic", "Orya", "Oriya", "Osge", "Osage", "Osma", "Osmanya", "Ougr", "Old_Uyghur", "Palm", "Palmyrene", "Pauc", "Pau_Cin_Hau", "Perm", "Old_Permic", "Phag", "Phags_Pa", "Phli", "Inscriptional_Pahlavi", "Phlp", "Psalter_Pahlavi", "Phnx", "Phoenician", "Plrd", "Miao", "Prti", "Inscriptional_Parthian", "Rjng", "Rejang", "Rohg", "Hanifi_Rohingya", "Runr", "Runic", "Samr", "Samaritan", "Sarb", "Old_South_Arabian", "Saur", "Saurashtra", "Sgnw", "SignWriting", "Shaw", "Shavian", "Shrd", "Sharada", "Sidd", "Siddham", "Sind", "Khudawadi", "Sinh", "Sinhala", "Sogd", "Sogdian", "Sogo", "Old_Sogdian", "Sora", "Sora_Sompeng", "Soyo", "Soyombo", "Sund", "Sundanese", "Sylo", "Syloti_Nagri", "Syrc", "Syriac", "Tagb", "Tagbanwa", "Takr", "Takri", "Tale", "Tai_Le", "Talu", "New_Tai_Lue", "Taml", "Tamil", "Tang", "Tangut", "Tavt", "Tai_Viet", "Telu", "Telugu", "Tfng", "Tifinagh", "Tglg", "Tagalog", "Thaa", "Thaana", "Thai", "Tibt", "Tibetan", "Tirh", "Tirhuta", "Tnsa", "Tangsa", "Toto", "Ugar", "Ugaritic", "Vaii", "Vai", "Vith", "Vithkuqi", "Wara", "Warang_Citi", "Wcho", "Wancho", "Xpeo", "Old_Persian", "Xsux", "Cuneiform", "Yezi", "Yezidi", "Yiii", "Yi", "Zanb", "Zanabazar_Square", "Zinh", "Inherited", "Qaai", "Zyyy", "Common", "Zzzz", "Unknown"]),
|
|
11050
|
+
Script_Extensions: void 0
|
|
11064
11051
|
};
|
|
11052
|
+
valuesOfNonBinaryUnicodeProperties.Script_Extensions = valuesOfNonBinaryUnicodeProperties.Script;
|
|
11065
11053
|
|
|
11066
11054
|
// src/compiler/utilitiesPublic.ts
|
|
11067
11055
|
function isExternalModuleNameRelative(moduleName) {
|
|
@@ -12782,13 +12770,6 @@ function getTokenPosOfNode(node, sourceFile, includeJsDoc) {
|
|
|
12782
12770
|
isInJSDoc(node)
|
|
12783
12771
|
);
|
|
12784
12772
|
}
|
|
12785
|
-
function getNonModifierTokenPosOfNode(node, sourceFile) {
|
|
12786
|
-
const lastModifier = !nodeIsMissing(node) && canHaveModifiers(node) && node.modifiers ? last(node.modifiers) : void 0;
|
|
12787
|
-
if (!lastModifier) {
|
|
12788
|
-
return getTokenPosOfNode(node, sourceFile);
|
|
12789
|
-
}
|
|
12790
|
-
return skipTrivia((sourceFile || getSourceFileOfNode(node)).text, lastModifier.end);
|
|
12791
|
-
}
|
|
12792
12773
|
function getSourceTextOfNodeFromSourceFile(sourceFile, node, includeTrivia = false) {
|
|
12793
12774
|
return getTextOfNodeFromSourceText(sourceFile.text, node, includeTrivia);
|
|
12794
12775
|
}
|
|
@@ -13658,6 +13639,26 @@ function getErrorSpanForNode(sourceFile, node) {
|
|
|
13658
13639
|
const pos2 = skipTrivia(sourceFile.text, node.tagName.pos);
|
|
13659
13640
|
return getSpanOfTokenAtPosition(sourceFile, pos2);
|
|
13660
13641
|
}
|
|
13642
|
+
case 176 /* Constructor */: {
|
|
13643
|
+
const constructorDeclaration = node;
|
|
13644
|
+
const start = skipTrivia(sourceFile.text, constructorDeclaration.pos);
|
|
13645
|
+
const scanner = createScanner(
|
|
13646
|
+
sourceFile.languageVersion,
|
|
13647
|
+
/*skipTrivia*/
|
|
13648
|
+
true,
|
|
13649
|
+
sourceFile.languageVariant,
|
|
13650
|
+
sourceFile.text,
|
|
13651
|
+
/*onError*/
|
|
13652
|
+
void 0,
|
|
13653
|
+
start
|
|
13654
|
+
);
|
|
13655
|
+
let token = scanner.scan();
|
|
13656
|
+
while (token !== 137 /* ConstructorKeyword */ && token !== 1 /* EndOfFileToken */) {
|
|
13657
|
+
token = scanner.scan();
|
|
13658
|
+
}
|
|
13659
|
+
const end = scanner.getTokenEnd();
|
|
13660
|
+
return createTextSpanFromBounds(start, end);
|
|
13661
|
+
}
|
|
13661
13662
|
}
|
|
13662
13663
|
if (errorNode === void 0) {
|
|
13663
13664
|
return getSpanOfTokenAtPosition(sourceFile, node.pos);
|
|
@@ -18317,7 +18318,15 @@ function rangeOfTypeParameters(sourceFile, typeParameters) {
|
|
|
18317
18318
|
return { pos, end };
|
|
18318
18319
|
}
|
|
18319
18320
|
function skipTypeChecking(sourceFile, options, host) {
|
|
18320
|
-
return options.skipLibCheck && sourceFile.isDeclarationFile || options.skipDefaultLibCheck && sourceFile.hasNoDefaultLib || options.noCheck || host.isSourceOfProjectReferenceRedirect(sourceFile.fileName);
|
|
18321
|
+
return options.skipLibCheck && sourceFile.isDeclarationFile || options.skipDefaultLibCheck && sourceFile.hasNoDefaultLib || options.noCheck || host.isSourceOfProjectReferenceRedirect(sourceFile.fileName) || !canIncludeBindAndCheckDiagnsotics(sourceFile, options);
|
|
18322
|
+
}
|
|
18323
|
+
function canIncludeBindAndCheckDiagnsotics(sourceFile, options) {
|
|
18324
|
+
if (!!sourceFile.checkJsDirective && sourceFile.checkJsDirective.enabled === false) return false;
|
|
18325
|
+
if (sourceFile.scriptKind === 3 /* TS */ || sourceFile.scriptKind === 4 /* TSX */ || sourceFile.scriptKind === 5 /* External */) return true;
|
|
18326
|
+
const isJs = sourceFile.scriptKind === 1 /* JS */ || sourceFile.scriptKind === 2 /* JSX */;
|
|
18327
|
+
const isCheckJs = isJs && isCheckJsEnabledForFile(sourceFile, options);
|
|
18328
|
+
const isPlainJs = isPlainJsFile(sourceFile, options.checkJs);
|
|
18329
|
+
return isPlainJs || isCheckJs || sourceFile.scriptKind === 7 /* Deferred */;
|
|
18321
18330
|
}
|
|
18322
18331
|
function isJsonEqual(a, b) {
|
|
18323
18332
|
return a === b || typeof a === "object" && a !== null && typeof b === "object" && b !== null && equalOwnProperties(a, b, isJsonEqual);
|
|
@@ -83003,14 +83012,6 @@ function createTypeChecker(host) {
|
|
|
83003
83012
|
}
|
|
83004
83013
|
if (isIdentifier(node.name)) {
|
|
83005
83014
|
checkCollisionsForDeclarationName(node, node.name);
|
|
83006
|
-
if (!(node.flags & (32 /* Namespace */ | 2048 /* GlobalAugmentation */))) {
|
|
83007
|
-
const sourceFile = getSourceFileOfNode(node);
|
|
83008
|
-
const pos = getNonModifierTokenPosOfNode(node);
|
|
83009
|
-
const span = getSpanOfTokenAtPosition(sourceFile, pos);
|
|
83010
|
-
suggestionDiagnostics.add(
|
|
83011
|
-
createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead)
|
|
83012
|
-
);
|
|
83013
|
-
}
|
|
83014
83015
|
}
|
|
83015
83016
|
checkExportsOnMergedDeclarations(node);
|
|
83016
83017
|
const symbol = getSymbolOfDeclaration(node);
|
|
@@ -85048,7 +85049,7 @@ function createTypeChecker(host) {
|
|
|
85048
85049
|
return !!(getNodeCheckFlags(node) & flag);
|
|
85049
85050
|
}
|
|
85050
85051
|
function calculateNodeCheckFlagWorker(node, flag) {
|
|
85051
|
-
if (!compilerOptions.noCheck) {
|
|
85052
|
+
if (!compilerOptions.noCheck && canIncludeBindAndCheckDiagnsotics(getSourceFileOfNode(node), compilerOptions)) {
|
|
85052
85053
|
return;
|
|
85053
85054
|
}
|
|
85054
85055
|
const links = getNodeLinks(node);
|
|
@@ -113012,9 +113013,11 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla
|
|
|
113012
113013
|
emitSkipped = true;
|
|
113013
113014
|
return;
|
|
113014
113015
|
}
|
|
113015
|
-
|
|
113016
|
-
(
|
|
113017
|
-
|
|
113016
|
+
(isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] : filter(sourceFileOrBundle.sourceFiles, isSourceFileNotJson)).forEach(
|
|
113017
|
+
(sourceFile) => {
|
|
113018
|
+
if (compilerOptions.noCheck || !canIncludeBindAndCheckDiagnsotics(sourceFile, compilerOptions)) markLinkedReferences(sourceFile);
|
|
113019
|
+
}
|
|
113020
|
+
);
|
|
113018
113021
|
const transform = transformNodes(
|
|
113019
113022
|
resolver,
|
|
113020
113023
|
host,
|
|
@@ -113064,9 +113067,11 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla
|
|
|
113064
113067
|
const sourceFiles = isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] : sourceFileOrBundle.sourceFiles;
|
|
113065
113068
|
const filesForEmit = forceDtsEmit ? sourceFiles : filter(sourceFiles, isSourceFileNotJson);
|
|
113066
113069
|
const inputListOrBundle = compilerOptions.outFile ? [factory.createBundle(filesForEmit)] : filesForEmit;
|
|
113067
|
-
|
|
113068
|
-
|
|
113069
|
-
|
|
113070
|
+
filesForEmit.forEach((sourceFile) => {
|
|
113071
|
+
if (emitOnly && !getEmitDeclarations(compilerOptions) || compilerOptions.noCheck || emitResolverSkipsTypeChecking(emitOnly, forceDtsEmit) || !canIncludeBindAndCheckDiagnsotics(sourceFile, compilerOptions)) {
|
|
113072
|
+
collectLinkedAliases(sourceFile);
|
|
113073
|
+
}
|
|
113074
|
+
});
|
|
113070
113075
|
const declarationTransform = transformNodes(
|
|
113071
113076
|
resolver,
|
|
113072
113077
|
host,
|
|
@@ -120118,15 +120123,13 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
120118
120123
|
const isJs = sourceFile.scriptKind === 1 /* JS */ || sourceFile.scriptKind === 2 /* JSX */;
|
|
120119
120124
|
const isCheckJs = isJs && isCheckJsEnabledForFile(sourceFile, options);
|
|
120120
120125
|
const isPlainJs = isPlainJsFile(sourceFile, options.checkJs);
|
|
120121
|
-
|
|
120122
|
-
|
|
120123
|
-
let bindDiagnostics = includeBindAndCheckDiagnostics ? sourceFile.bindDiagnostics : emptyArray;
|
|
120124
|
-
let checkDiagnostics = includeBindAndCheckDiagnostics ? typeChecker2.getDiagnostics(sourceFile, cancellationToken) : emptyArray;
|
|
120126
|
+
let bindDiagnostics = sourceFile.bindDiagnostics;
|
|
120127
|
+
let checkDiagnostics = typeChecker2.getDiagnostics(sourceFile, cancellationToken);
|
|
120125
120128
|
if (isPlainJs) {
|
|
120126
120129
|
bindDiagnostics = filter(bindDiagnostics, (d) => plainJSErrors.has(d.code));
|
|
120127
120130
|
checkDiagnostics = filter(checkDiagnostics, (d) => plainJSErrors.has(d.code));
|
|
120128
120131
|
}
|
|
120129
|
-
return getMergedBindAndCheckDiagnostics(sourceFile,
|
|
120132
|
+
return getMergedBindAndCheckDiagnostics(sourceFile, !isPlainJs, bindDiagnostics, checkDiagnostics, isCheckJs ? sourceFile.jsDocDiagnostics : void 0);
|
|
120130
120133
|
});
|
|
120131
120134
|
}
|
|
120132
120135
|
function getMergedBindAndCheckDiagnostics(sourceFile, includeBindAndCheckDiagnostics, ...allDiagnostics) {
|
package/lib/typescript.js
CHANGED
|
@@ -260,6 +260,7 @@ __export(typescript_exports, {
|
|
|
260
260
|
canHaveModifiers: () => canHaveModifiers,
|
|
261
261
|
canHaveModuleSpecifier: () => canHaveModuleSpecifier,
|
|
262
262
|
canHaveSymbol: () => canHaveSymbol,
|
|
263
|
+
canIncludeBindAndCheckDiagnsotics: () => canIncludeBindAndCheckDiagnsotics,
|
|
263
264
|
canJsonReportNoInputFiles: () => canJsonReportNoInputFiles,
|
|
264
265
|
canProduceDiagnostics: () => canProduceDiagnostics,
|
|
265
266
|
canUsePropertyAccess: () => canUsePropertyAccess,
|
|
@@ -942,7 +943,6 @@ __export(typescript_exports, {
|
|
|
942
943
|
getNonAssignmentOperatorForCompoundAssignment: () => getNonAssignmentOperatorForCompoundAssignment,
|
|
943
944
|
getNonAugmentationDeclaration: () => getNonAugmentationDeclaration,
|
|
944
945
|
getNonDecoratorTokenPosOfNode: () => getNonDecoratorTokenPosOfNode,
|
|
945
|
-
getNonModifierTokenPosOfNode: () => getNonModifierTokenPosOfNode,
|
|
946
946
|
getNormalizedAbsolutePath: () => getNormalizedAbsolutePath,
|
|
947
947
|
getNormalizedAbsolutePathWithoutRoot: () => getNormalizedAbsolutePathWithoutRoot,
|
|
948
948
|
getNormalizedPathComponents: () => getNormalizedPathComponents,
|
|
@@ -9715,18 +9715,6 @@ var Diagnostics = {
|
|
|
9715
9715
|
This_character_cannot_be_escaped_in_a_regular_expression: diag(1535, 1 /* Error */, "This_character_cannot_be_escaped_in_a_regular_expression_1535", "This character cannot be escaped in a regular expression."),
|
|
9716
9716
|
Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead: diag(1536, 1 /* Error */, "Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536", "Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),
|
|
9717
9717
|
Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class: diag(1537, 1 /* Error */, "Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537", "Decimal escape sequences and backreferences are not allowed in a character class."),
|
|
9718
|
-
A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead: diag(
|
|
9719
|
-
1538,
|
|
9720
|
-
2 /* Suggestion */,
|
|
9721
|
-
"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1538",
|
|
9722
|
-
"A namespace declaration should not be declared using the module keyword. Please use the namespace keyword instead.",
|
|
9723
|
-
/*reportsUnnecessary*/
|
|
9724
|
-
void 0,
|
|
9725
|
-
/*elidedInCompatabilityPyramid*/
|
|
9726
|
-
void 0,
|
|
9727
|
-
/*reportsDeprecated*/
|
|
9728
|
-
true
|
|
9729
|
-
),
|
|
9730
9718
|
The_types_of_0_are_incompatible_between_these_types: diag(2200, 1 /* Error */, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."),
|
|
9731
9719
|
The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, 1 /* Error */, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."),
|
|
9732
9720
|
Call_signature_return_types_0_and_1_are_incompatible: diag(
|
|
@@ -13414,7 +13402,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
13414
13402
|
pos++;
|
|
13415
13403
|
let regExpFlags = 0 /* None */;
|
|
13416
13404
|
while (true) {
|
|
13417
|
-
const ch =
|
|
13405
|
+
const ch = charCodeChecked(pos);
|
|
13418
13406
|
if (ch === -1 /* EOF */ || !isIdentifierPart(ch, languageVersion)) {
|
|
13419
13407
|
break;
|
|
13420
13408
|
}
|
|
@@ -14665,10 +14653,10 @@ var binaryUnicodeProperties = /* @__PURE__ */ new Set(["ASCII", "ASCII_Hex_Digit
|
|
|
14665
14653
|
var binaryUnicodePropertiesOfStrings = /* @__PURE__ */ new Set(["Basic_Emoji", "Emoji_Keycap_Sequence", "RGI_Emoji_Modifier_Sequence", "RGI_Emoji_Flag_Sequence", "RGI_Emoji_Tag_Sequence", "RGI_Emoji_ZWJ_Sequence", "RGI_Emoji"]);
|
|
14666
14654
|
var valuesOfNonBinaryUnicodeProperties = {
|
|
14667
14655
|
General_Category: /* @__PURE__ */ new Set(["C", "Other", "Cc", "Control", "cntrl", "Cf", "Format", "Cn", "Unassigned", "Co", "Private_Use", "Cs", "Surrogate", "L", "Letter", "LC", "Cased_Letter", "Ll", "Lowercase_Letter", "Lm", "Modifier_Letter", "Lo", "Other_Letter", "Lt", "Titlecase_Letter", "Lu", "Uppercase_Letter", "M", "Mark", "Combining_Mark", "Mc", "Spacing_Mark", "Me", "Enclosing_Mark", "Mn", "Nonspacing_Mark", "N", "Number", "Nd", "Decimal_Number", "digit", "Nl", "Letter_Number", "No", "Other_Number", "P", "Punctuation", "punct", "Pc", "Connector_Punctuation", "Pd", "Dash_Punctuation", "Pe", "Close_Punctuation", "Pf", "Final_Punctuation", "Pi", "Initial_Punctuation", "Po", "Other_Punctuation", "Ps", "Open_Punctuation", "S", "Symbol", "Sc", "Currency_Symbol", "Sk", "Modifier_Symbol", "Sm", "Math_Symbol", "So", "Other_Symbol", "Z", "Separator", "Zl", "Line_Separator", "Zp", "Paragraph_Separator", "Zs", "Space_Separator"]),
|
|
14668
|
-
Script: /* @__PURE__ */ new Set(["Adlm", "Adlam", "Aghb", "Caucasian_Albanian", "Ahom", "
|
|
14669
|
-
Script_Extensions:
|
|
14670
|
-
// Currently empty
|
|
14656
|
+
Script: /* @__PURE__ */ new Set(["Adlm", "Adlam", "Aghb", "Caucasian_Albanian", "Ahom", "Arab", "Arabic", "Armi", "Imperial_Aramaic", "Armn", "Armenian", "Avst", "Avestan", "Bali", "Balinese", "Bamu", "Bamum", "Bass", "Bassa_Vah", "Batk", "Batak", "Beng", "Bengali", "Bhks", "Bhaiksuki", "Bopo", "Bopomofo", "Brah", "Brahmi", "Brai", "Braille", "Bugi", "Buginese", "Buhd", "Buhid", "Cakm", "Chakma", "Cans", "Canadian_Aboriginal", "Cari", "Carian", "Cham", "Cher", "Cherokee", "Chrs", "Chorasmian", "Copt", "Coptic", "Qaac", "Cpmn", "Cypro_Minoan", "Cprt", "Cypriot", "Cyrl", "Cyrillic", "Deva", "Devanagari", "Diak", "Dives_Akuru", "Dogr", "Dogra", "Dsrt", "Deseret", "Dupl", "Duployan", "Egyp", "Egyptian_Hieroglyphs", "Elba", "Elbasan", "Elym", "Elymaic", "Ethi", "Ethiopic", "Geor", "Georgian", "Glag", "Glagolitic", "Gong", "Gunjala_Gondi", "Gonm", "Masaram_Gondi", "Goth", "Gothic", "Gran", "Grantha", "Grek", "Greek", "Gujr", "Gujarati", "Guru", "Gurmukhi", "Hang", "Hangul", "Hani", "Han", "Hano", "Hanunoo", "Hatr", "Hatran", "Hebr", "Hebrew", "Hira", "Hiragana", "Hluw", "Anatolian_Hieroglyphs", "Hmng", "Pahawh_Hmong", "Hmnp", "Nyiakeng_Puachue_Hmong", "Hrkt", "Katakana_Or_Hiragana", "Hung", "Old_Hungarian", "Ital", "Old_Italic", "Java", "Javanese", "Kali", "Kayah_Li", "Kana", "Katakana", "Kawi", "Khar", "Kharoshthi", "Khmr", "Khmer", "Khoj", "Khojki", "Kits", "Khitan_Small_Script", "Knda", "Kannada", "Kthi", "Kaithi", "Lana", "Tai_Tham", "Laoo", "Lao", "Latn", "Latin", "Lepc", "Lepcha", "Limb", "Limbu", "Lina", "Linear_A", "Linb", "Linear_B", "Lisu", "Lyci", "Lycian", "Lydi", "Lydian", "Mahj", "Mahajani", "Maka", "Makasar", "Mand", "Mandaic", "Mani", "Manichaean", "Marc", "Marchen", "Medf", "Medefaidrin", "Mend", "Mende_Kikakui", "Merc", "Meroitic_Cursive", "Mero", "Meroitic_Hieroglyphs", "Mlym", "Malayalam", "Modi", "Mong", "Mongolian", "Mroo", "Mro", "Mtei", "Meetei_Mayek", "Mult", "Multani", "Mymr", "Myanmar", "Nagm", "Nag_Mundari", "Nand", "Nandinagari", "Narb", "Old_North_Arabian", "Nbat", "Nabataean", "Newa", "Nkoo", "Nko", "Nshu", "Nushu", "Ogam", "Ogham", "Olck", "Ol_Chiki", "Orkh", "Old_Turkic", "Orya", "Oriya", "Osge", "Osage", "Osma", "Osmanya", "Ougr", "Old_Uyghur", "Palm", "Palmyrene", "Pauc", "Pau_Cin_Hau", "Perm", "Old_Permic", "Phag", "Phags_Pa", "Phli", "Inscriptional_Pahlavi", "Phlp", "Psalter_Pahlavi", "Phnx", "Phoenician", "Plrd", "Miao", "Prti", "Inscriptional_Parthian", "Rjng", "Rejang", "Rohg", "Hanifi_Rohingya", "Runr", "Runic", "Samr", "Samaritan", "Sarb", "Old_South_Arabian", "Saur", "Saurashtra", "Sgnw", "SignWriting", "Shaw", "Shavian", "Shrd", "Sharada", "Sidd", "Siddham", "Sind", "Khudawadi", "Sinh", "Sinhala", "Sogd", "Sogdian", "Sogo", "Old_Sogdian", "Sora", "Sora_Sompeng", "Soyo", "Soyombo", "Sund", "Sundanese", "Sylo", "Syloti_Nagri", "Syrc", "Syriac", "Tagb", "Tagbanwa", "Takr", "Takri", "Tale", "Tai_Le", "Talu", "New_Tai_Lue", "Taml", "Tamil", "Tang", "Tangut", "Tavt", "Tai_Viet", "Telu", "Telugu", "Tfng", "Tifinagh", "Tglg", "Tagalog", "Thaa", "Thaana", "Thai", "Tibt", "Tibetan", "Tirh", "Tirhuta", "Tnsa", "Tangsa", "Toto", "Ugar", "Ugaritic", "Vaii", "Vai", "Vith", "Vithkuqi", "Wara", "Warang_Citi", "Wcho", "Wancho", "Xpeo", "Old_Persian", "Xsux", "Cuneiform", "Yezi", "Yezidi", "Yiii", "Yi", "Zanb", "Zanabazar_Square", "Zinh", "Inherited", "Qaai", "Zyyy", "Common", "Zzzz", "Unknown"]),
|
|
14657
|
+
Script_Extensions: void 0
|
|
14671
14658
|
};
|
|
14659
|
+
valuesOfNonBinaryUnicodeProperties.Script_Extensions = valuesOfNonBinaryUnicodeProperties.Script;
|
|
14672
14660
|
|
|
14673
14661
|
// src/compiler/utilitiesPublic.ts
|
|
14674
14662
|
function isExternalModuleNameRelative(moduleName) {
|
|
@@ -16601,13 +16589,6 @@ function getNonDecoratorTokenPosOfNode(node, sourceFile) {
|
|
|
16601
16589
|
}
|
|
16602
16590
|
return skipTrivia((sourceFile || getSourceFileOfNode(node)).text, lastDecorator.end);
|
|
16603
16591
|
}
|
|
16604
|
-
function getNonModifierTokenPosOfNode(node, sourceFile) {
|
|
16605
|
-
const lastModifier = !nodeIsMissing(node) && canHaveModifiers(node) && node.modifiers ? last(node.modifiers) : void 0;
|
|
16606
|
-
if (!lastModifier) {
|
|
16607
|
-
return getTokenPosOfNode(node, sourceFile);
|
|
16608
|
-
}
|
|
16609
|
-
return skipTrivia((sourceFile || getSourceFileOfNode(node)).text, lastModifier.end);
|
|
16610
|
-
}
|
|
16611
16592
|
function getSourceTextOfNodeFromSourceFile(sourceFile, node, includeTrivia = false) {
|
|
16612
16593
|
return getTextOfNodeFromSourceText(sourceFile.text, node, includeTrivia);
|
|
16613
16594
|
}
|
|
@@ -17534,6 +17515,26 @@ function getErrorSpanForNode(sourceFile, node) {
|
|
|
17534
17515
|
const pos2 = skipTrivia(sourceFile.text, node.tagName.pos);
|
|
17535
17516
|
return getSpanOfTokenAtPosition(sourceFile, pos2);
|
|
17536
17517
|
}
|
|
17518
|
+
case 176 /* Constructor */: {
|
|
17519
|
+
const constructorDeclaration = node;
|
|
17520
|
+
const start = skipTrivia(sourceFile.text, constructorDeclaration.pos);
|
|
17521
|
+
const scanner2 = createScanner(
|
|
17522
|
+
sourceFile.languageVersion,
|
|
17523
|
+
/*skipTrivia*/
|
|
17524
|
+
true,
|
|
17525
|
+
sourceFile.languageVariant,
|
|
17526
|
+
sourceFile.text,
|
|
17527
|
+
/*onError*/
|
|
17528
|
+
void 0,
|
|
17529
|
+
start
|
|
17530
|
+
);
|
|
17531
|
+
let token = scanner2.scan();
|
|
17532
|
+
while (token !== 137 /* ConstructorKeyword */ && token !== 1 /* EndOfFileToken */) {
|
|
17533
|
+
token = scanner2.scan();
|
|
17534
|
+
}
|
|
17535
|
+
const end = scanner2.getTokenEnd();
|
|
17536
|
+
return createTextSpanFromBounds(start, end);
|
|
17537
|
+
}
|
|
17537
17538
|
}
|
|
17538
17539
|
if (errorNode === void 0) {
|
|
17539
17540
|
return getSpanOfTokenAtPosition(sourceFile, node.pos);
|
|
@@ -22531,7 +22532,15 @@ function rangeOfTypeParameters(sourceFile, typeParameters) {
|
|
|
22531
22532
|
return { pos, end };
|
|
22532
22533
|
}
|
|
22533
22534
|
function skipTypeChecking(sourceFile, options, host) {
|
|
22534
|
-
return options.skipLibCheck && sourceFile.isDeclarationFile || options.skipDefaultLibCheck && sourceFile.hasNoDefaultLib || options.noCheck || host.isSourceOfProjectReferenceRedirect(sourceFile.fileName);
|
|
22535
|
+
return options.skipLibCheck && sourceFile.isDeclarationFile || options.skipDefaultLibCheck && sourceFile.hasNoDefaultLib || options.noCheck || host.isSourceOfProjectReferenceRedirect(sourceFile.fileName) || !canIncludeBindAndCheckDiagnsotics(sourceFile, options);
|
|
22536
|
+
}
|
|
22537
|
+
function canIncludeBindAndCheckDiagnsotics(sourceFile, options) {
|
|
22538
|
+
if (!!sourceFile.checkJsDirective && sourceFile.checkJsDirective.enabled === false) return false;
|
|
22539
|
+
if (sourceFile.scriptKind === 3 /* TS */ || sourceFile.scriptKind === 4 /* TSX */ || sourceFile.scriptKind === 5 /* External */) return true;
|
|
22540
|
+
const isJs = sourceFile.scriptKind === 1 /* JS */ || sourceFile.scriptKind === 2 /* JSX */;
|
|
22541
|
+
const isCheckJs = isJs && isCheckJsEnabledForFile(sourceFile, options);
|
|
22542
|
+
const isPlainJs = isPlainJsFile(sourceFile, options.checkJs);
|
|
22543
|
+
return isPlainJs || isCheckJs || sourceFile.scriptKind === 7 /* Deferred */;
|
|
22535
22544
|
}
|
|
22536
22545
|
function isJsonEqual(a, b) {
|
|
22537
22546
|
return a === b || typeof a === "object" && a !== null && typeof b === "object" && b !== null && equalOwnProperties(a, b, isJsonEqual);
|
|
@@ -87772,14 +87781,6 @@ function createTypeChecker(host) {
|
|
|
87772
87781
|
}
|
|
87773
87782
|
if (isIdentifier(node.name)) {
|
|
87774
87783
|
checkCollisionsForDeclarationName(node, node.name);
|
|
87775
|
-
if (!(node.flags & (32 /* Namespace */ | 2048 /* GlobalAugmentation */))) {
|
|
87776
|
-
const sourceFile = getSourceFileOfNode(node);
|
|
87777
|
-
const pos = getNonModifierTokenPosOfNode(node);
|
|
87778
|
-
const span = getSpanOfTokenAtPosition(sourceFile, pos);
|
|
87779
|
-
suggestionDiagnostics.add(
|
|
87780
|
-
createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead)
|
|
87781
|
-
);
|
|
87782
|
-
}
|
|
87783
87784
|
}
|
|
87784
87785
|
checkExportsOnMergedDeclarations(node);
|
|
87785
87786
|
const symbol = getSymbolOfDeclaration(node);
|
|
@@ -89817,7 +89818,7 @@ function createTypeChecker(host) {
|
|
|
89817
89818
|
return !!(getNodeCheckFlags(node) & flag);
|
|
89818
89819
|
}
|
|
89819
89820
|
function calculateNodeCheckFlagWorker(node, flag) {
|
|
89820
|
-
if (!compilerOptions.noCheck) {
|
|
89821
|
+
if (!compilerOptions.noCheck && canIncludeBindAndCheckDiagnsotics(getSourceFileOfNode(node), compilerOptions)) {
|
|
89821
89822
|
return;
|
|
89822
89823
|
}
|
|
89823
89824
|
const links = getNodeLinks(node);
|
|
@@ -117974,9 +117975,11 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla
|
|
|
117974
117975
|
emitSkipped = true;
|
|
117975
117976
|
return;
|
|
117976
117977
|
}
|
|
117977
|
-
|
|
117978
|
-
(
|
|
117979
|
-
|
|
117978
|
+
(isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] : filter(sourceFileOrBundle.sourceFiles, isSourceFileNotJson)).forEach(
|
|
117979
|
+
(sourceFile) => {
|
|
117980
|
+
if (compilerOptions.noCheck || !canIncludeBindAndCheckDiagnsotics(sourceFile, compilerOptions)) markLinkedReferences(sourceFile);
|
|
117981
|
+
}
|
|
117982
|
+
);
|
|
117980
117983
|
const transform2 = transformNodes(
|
|
117981
117984
|
resolver,
|
|
117982
117985
|
host,
|
|
@@ -118026,9 +118029,11 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla
|
|
|
118026
118029
|
const sourceFiles = isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] : sourceFileOrBundle.sourceFiles;
|
|
118027
118030
|
const filesForEmit = forceDtsEmit ? sourceFiles : filter(sourceFiles, isSourceFileNotJson);
|
|
118028
118031
|
const inputListOrBundle = compilerOptions.outFile ? [factory.createBundle(filesForEmit)] : filesForEmit;
|
|
118029
|
-
|
|
118030
|
-
|
|
118031
|
-
|
|
118032
|
+
filesForEmit.forEach((sourceFile) => {
|
|
118033
|
+
if (emitOnly && !getEmitDeclarations(compilerOptions) || compilerOptions.noCheck || emitResolverSkipsTypeChecking(emitOnly, forceDtsEmit) || !canIncludeBindAndCheckDiagnsotics(sourceFile, compilerOptions)) {
|
|
118034
|
+
collectLinkedAliases(sourceFile);
|
|
118035
|
+
}
|
|
118036
|
+
});
|
|
118032
118037
|
const declarationTransform = transformNodes(
|
|
118033
118038
|
resolver,
|
|
118034
118039
|
host,
|
|
@@ -125126,15 +125131,13 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
125126
125131
|
const isJs = sourceFile.scriptKind === 1 /* JS */ || sourceFile.scriptKind === 2 /* JSX */;
|
|
125127
125132
|
const isCheckJs = isJs && isCheckJsEnabledForFile(sourceFile, options);
|
|
125128
125133
|
const isPlainJs = isPlainJsFile(sourceFile, options.checkJs);
|
|
125129
|
-
|
|
125130
|
-
|
|
125131
|
-
let bindDiagnostics = includeBindAndCheckDiagnostics ? sourceFile.bindDiagnostics : emptyArray;
|
|
125132
|
-
let checkDiagnostics = includeBindAndCheckDiagnostics ? typeChecker2.getDiagnostics(sourceFile, cancellationToken) : emptyArray;
|
|
125134
|
+
let bindDiagnostics = sourceFile.bindDiagnostics;
|
|
125135
|
+
let checkDiagnostics = typeChecker2.getDiagnostics(sourceFile, cancellationToken);
|
|
125133
125136
|
if (isPlainJs) {
|
|
125134
125137
|
bindDiagnostics = filter(bindDiagnostics, (d) => plainJSErrors.has(d.code));
|
|
125135
125138
|
checkDiagnostics = filter(checkDiagnostics, (d) => plainJSErrors.has(d.code));
|
|
125136
125139
|
}
|
|
125137
|
-
return getMergedBindAndCheckDiagnostics(sourceFile,
|
|
125140
|
+
return getMergedBindAndCheckDiagnostics(sourceFile, !isPlainJs, bindDiagnostics, checkDiagnostics, isCheckJs ? sourceFile.jsDocDiagnostics : void 0);
|
|
125138
125141
|
});
|
|
125139
125142
|
}
|
|
125140
125143
|
function getMergedBindAndCheckDiagnostics(sourceFile, includeBindAndCheckDiagnostics, ...allDiagnostics) {
|
|
@@ -178421,6 +178424,7 @@ __export(ts_exports2, {
|
|
|
178421
178424
|
canHaveModifiers: () => canHaveModifiers,
|
|
178422
178425
|
canHaveModuleSpecifier: () => canHaveModuleSpecifier,
|
|
178423
178426
|
canHaveSymbol: () => canHaveSymbol,
|
|
178427
|
+
canIncludeBindAndCheckDiagnsotics: () => canIncludeBindAndCheckDiagnsotics,
|
|
178424
178428
|
canJsonReportNoInputFiles: () => canJsonReportNoInputFiles,
|
|
178425
178429
|
canProduceDiagnostics: () => canProduceDiagnostics,
|
|
178426
178430
|
canUsePropertyAccess: () => canUsePropertyAccess,
|
|
@@ -179103,7 +179107,6 @@ __export(ts_exports2, {
|
|
|
179103
179107
|
getNonAssignmentOperatorForCompoundAssignment: () => getNonAssignmentOperatorForCompoundAssignment,
|
|
179104
179108
|
getNonAugmentationDeclaration: () => getNonAugmentationDeclaration,
|
|
179105
179109
|
getNonDecoratorTokenPosOfNode: () => getNonDecoratorTokenPosOfNode,
|
|
179106
|
-
getNonModifierTokenPosOfNode: () => getNonModifierTokenPosOfNode,
|
|
179107
179110
|
getNormalizedAbsolutePath: () => getNormalizedAbsolutePath,
|
|
179108
179111
|
getNormalizedAbsolutePathWithoutRoot: () => getNormalizedAbsolutePathWithoutRoot,
|
|
179109
179112
|
getNormalizedPathComponents: () => getNormalizedPathComponents,
|
|
@@ -192853,6 +192856,7 @@ if (typeof console !== "undefined") {
|
|
|
192853
192856
|
canHaveModifiers,
|
|
192854
192857
|
canHaveModuleSpecifier,
|
|
192855
192858
|
canHaveSymbol,
|
|
192859
|
+
canIncludeBindAndCheckDiagnsotics,
|
|
192856
192860
|
canJsonReportNoInputFiles,
|
|
192857
192861
|
canProduceDiagnostics,
|
|
192858
192862
|
canUsePropertyAccess,
|
|
@@ -193535,7 +193539,6 @@ if (typeof console !== "undefined") {
|
|
|
193535
193539
|
getNonAssignmentOperatorForCompoundAssignment,
|
|
193536
193540
|
getNonAugmentationDeclaration,
|
|
193537
193541
|
getNonDecoratorTokenPosOfNode,
|
|
193538
|
-
getNonModifierTokenPosOfNode,
|
|
193539
193542
|
getNormalizedAbsolutePath,
|
|
193540
193543
|
getNormalizedAbsolutePathWithoutRoot,
|
|
193541
193544
|
getNormalizedPathComponents,
|
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-55267-165",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|