typescript 5.1.0-dev.20230323 → 5.1.0-dev.20230325
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 +566 -369
- package/lib/tsserver.js +707 -489
- package/lib/tsserverlibrary.d.ts +2 -1
- package/lib/tsserverlibrary.js +707 -489
- package/lib/typescript.d.ts +2 -1
- package/lib/typescript.js +703 -485
- package/lib/typingsInstaller.js +177 -113
- package/package.json +2 -2
package/lib/tsserverlibrary.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.1";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20230325`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -4040,9 +4040,15 @@ ${lanes.join("\n")}
|
|
|
4040
4040
|
TokenFlags2[TokenFlags2["ContainsSeparator"] = 512] = "ContainsSeparator";
|
|
4041
4041
|
TokenFlags2[TokenFlags2["UnicodeEscape"] = 1024] = "UnicodeEscape";
|
|
4042
4042
|
TokenFlags2[TokenFlags2["ContainsInvalidEscape"] = 2048] = "ContainsInvalidEscape";
|
|
4043
|
+
TokenFlags2[TokenFlags2["HexEscape"] = 4096] = "HexEscape";
|
|
4044
|
+
TokenFlags2[TokenFlags2["ContainsLeadingZero"] = 8192] = "ContainsLeadingZero";
|
|
4045
|
+
TokenFlags2[TokenFlags2["ContainsInvalidSeparator"] = 16384] = "ContainsInvalidSeparator";
|
|
4043
4046
|
TokenFlags2[TokenFlags2["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier";
|
|
4044
|
-
TokenFlags2[TokenFlags2["
|
|
4045
|
-
TokenFlags2[TokenFlags2["
|
|
4047
|
+
TokenFlags2[TokenFlags2["WithSpecifier"] = 448] = "WithSpecifier";
|
|
4048
|
+
TokenFlags2[TokenFlags2["StringLiteralFlags"] = 7176] = "StringLiteralFlags";
|
|
4049
|
+
TokenFlags2[TokenFlags2["NumericLiteralFlags"] = 25584] = "NumericLiteralFlags";
|
|
4050
|
+
TokenFlags2[TokenFlags2["TemplateLiteralLikeFlags"] = 7176] = "TemplateLiteralLikeFlags";
|
|
4051
|
+
TokenFlags2[TokenFlags2["IsInvalid"] = 26656] = "IsInvalid";
|
|
4046
4052
|
return TokenFlags2;
|
|
4047
4053
|
})(TokenFlags || {});
|
|
4048
4054
|
FlowFlags = /* @__PURE__ */ ((FlowFlags2) => {
|
|
@@ -7056,7 +7062,6 @@ ${lanes.join("\n")}
|
|
|
7056
7062
|
_0_modifier_cannot_appear_on_an_index_signature: diag(1071, 1 /* Error */, "_0_modifier_cannot_appear_on_an_index_signature_1071", "'{0}' modifier cannot appear on an index signature."),
|
|
7057
7063
|
A_0_modifier_cannot_be_used_with_an_import_declaration: diag(1079, 1 /* Error */, "A_0_modifier_cannot_be_used_with_an_import_declaration_1079", "A '{0}' modifier cannot be used with an import declaration."),
|
|
7058
7064
|
Invalid_reference_directive_syntax: diag(1084, 1 /* Error */, "Invalid_reference_directive_syntax_1084", "Invalid 'reference' directive syntax."),
|
|
7059
|
-
Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0: diag(1085, 1 /* Error */, "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085", "Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),
|
|
7060
7065
|
_0_modifier_cannot_appear_on_a_constructor_declaration: diag(1089, 1 /* Error */, "_0_modifier_cannot_appear_on_a_constructor_declaration_1089", "'{0}' modifier cannot appear on a constructor declaration."),
|
|
7061
7066
|
_0_modifier_cannot_appear_on_a_parameter: diag(1090, 1 /* Error */, "_0_modifier_cannot_appear_on_a_parameter_1090", "'{0}' modifier cannot appear on a parameter."),
|
|
7062
7067
|
Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement: diag(1091, 1 /* Error */, "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091", "Only a single variable declaration is allowed in a 'for...in' statement."),
|
|
@@ -7087,7 +7092,7 @@ ${lanes.join("\n")}
|
|
|
7087
7092
|
An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name: diag(1118, 1 /* Error */, "An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118", "An object literal cannot have multiple get/set accessors with the same name."),
|
|
7088
7093
|
An_object_literal_cannot_have_property_and_accessor_with_the_same_name: diag(1119, 1 /* Error */, "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119", "An object literal cannot have property and accessor with the same name."),
|
|
7089
7094
|
An_export_assignment_cannot_have_modifiers: diag(1120, 1 /* Error */, "An_export_assignment_cannot_have_modifiers_1120", "An export assignment cannot have modifiers."),
|
|
7090
|
-
|
|
7095
|
+
Octal_literals_are_not_allowed_Use_the_syntax_0: diag(1121, 1 /* Error */, "Octal_literals_are_not_allowed_Use_the_syntax_0_1121", "Octal literals are not allowed. Use the syntax '{0}'."),
|
|
7091
7096
|
Variable_declaration_list_cannot_be_empty: diag(1123, 1 /* Error */, "Variable_declaration_list_cannot_be_empty_1123", "Variable declaration list cannot be empty."),
|
|
7092
7097
|
Digit_expected: diag(1124, 1 /* Error */, "Digit_expected_1124", "Digit expected."),
|
|
7093
7098
|
Hexadecimal_digit_expected: diag(1125, 1 /* Error */, "Hexadecimal_digit_expected_1125", "Hexadecimal digit expected."),
|
|
@@ -7398,6 +7403,9 @@ ${lanes.join("\n")}
|
|
|
7398
7403
|
_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled: diag(1484, 1 /* Error */, "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484", "'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),
|
|
7399
7404
|
_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled: diag(1485, 1 /* Error */, "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485", "'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),
|
|
7400
7405
|
Decorator_used_before_export_here: diag(1486, 1 /* Error */, "Decorator_used_before_export_here_1486", "Decorator used before 'export' here."),
|
|
7406
|
+
Octal_escape_sequences_are_not_allowed_Use_the_syntax_0: diag(1487, 1 /* Error */, "Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487", "Octal escape sequences are not allowed. Use the syntax '{0}'."),
|
|
7407
|
+
Escape_sequence_0_is_not_allowed: diag(1488, 1 /* Error */, "Escape_sequence_0_is_not_allowed_1488", "Escape sequence '{0}' is not allowed."),
|
|
7408
|
+
Decimals_with_leading_zeros_are_not_allowed: diag(1489, 1 /* Error */, "Decimals_with_leading_zeros_are_not_allowed_1489", "Decimals with leading zeros are not allowed."),
|
|
7401
7409
|
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."),
|
|
7402
7410
|
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."),
|
|
7403
7411
|
Call_signature_return_types_0_and_1_are_incompatible: diag(
|
|
@@ -8738,8 +8746,6 @@ ${lanes.join("\n")}
|
|
|
8738
8746
|
Parameter_modifiers_can_only_be_used_in_TypeScript_files: diag(8012, 1 /* Error */, "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012", "Parameter modifiers can only be used in TypeScript files."),
|
|
8739
8747
|
Non_null_assertions_can_only_be_used_in_TypeScript_files: diag(8013, 1 /* Error */, "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013", "Non-null assertions can only be used in TypeScript files."),
|
|
8740
8748
|
Type_assertion_expressions_can_only_be_used_in_TypeScript_files: diag(8016, 1 /* Error */, "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016", "Type assertion expressions can only be used in TypeScript files."),
|
|
8741
|
-
Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0: diag(8017, 1 /* Error */, "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017", "Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),
|
|
8742
|
-
Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0: diag(8018, 1 /* Error */, "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018", "Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),
|
|
8743
8749
|
Report_errors_in_js_files: diag(8019, 3 /* Message */, "Report_errors_in_js_files_8019", "Report errors in .js files."),
|
|
8744
8750
|
JSDoc_types_can_only_be_used_inside_documentation_comments: diag(8020, 1 /* Error */, "JSDoc_types_can_only_be_used_inside_documentation_comments_8020", "JSDoc types can only be used inside documentation comments."),
|
|
8745
8751
|
JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags: diag(8021, 1 /* Error */, "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021", "JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),
|
|
@@ -9584,7 +9590,7 @@ ${lanes.join("\n")}
|
|
|
9584
9590
|
isReservedWord: () => token >= 82 /* FirstReservedWord */ && token <= 117 /* LastReservedWord */,
|
|
9585
9591
|
isUnterminated: () => (tokenFlags & 4 /* Unterminated */) !== 0,
|
|
9586
9592
|
getCommentDirectives: () => commentDirectives,
|
|
9587
|
-
getNumericLiteralFlags: () => tokenFlags &
|
|
9593
|
+
getNumericLiteralFlags: () => tokenFlags & 25584 /* NumericLiteralFlags */,
|
|
9588
9594
|
getTokenFlags: () => tokenFlags,
|
|
9589
9595
|
reScanGreaterToken,
|
|
9590
9596
|
reScanAsteriskEqualsToken,
|
|
@@ -9625,11 +9631,11 @@ ${lanes.join("\n")}
|
|
|
9625
9631
|
});
|
|
9626
9632
|
}
|
|
9627
9633
|
return scanner2;
|
|
9628
|
-
function error(message, errPos = pos, length3) {
|
|
9634
|
+
function error(message, errPos = pos, length3, arg0) {
|
|
9629
9635
|
if (onError) {
|
|
9630
9636
|
const oldPos = pos;
|
|
9631
9637
|
pos = errPos;
|
|
9632
|
-
onError(message, length3 || 0);
|
|
9638
|
+
onError(message, length3 || 0, arg0);
|
|
9633
9639
|
pos = oldPos;
|
|
9634
9640
|
}
|
|
9635
9641
|
}
|
|
@@ -9646,10 +9652,13 @@ ${lanes.join("\n")}
|
|
|
9646
9652
|
allowSeparator = false;
|
|
9647
9653
|
isPreviousTokenSeparator = true;
|
|
9648
9654
|
result += text.substring(start2, pos);
|
|
9649
|
-
} else if (isPreviousTokenSeparator) {
|
|
9650
|
-
error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1);
|
|
9651
9655
|
} else {
|
|
9652
|
-
|
|
9656
|
+
tokenFlags |= 16384 /* ContainsInvalidSeparator */;
|
|
9657
|
+
if (isPreviousTokenSeparator) {
|
|
9658
|
+
error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1);
|
|
9659
|
+
} else {
|
|
9660
|
+
error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1);
|
|
9661
|
+
}
|
|
9653
9662
|
}
|
|
9654
9663
|
pos++;
|
|
9655
9664
|
start2 = pos;
|
|
@@ -9664,13 +9673,39 @@ ${lanes.join("\n")}
|
|
|
9664
9673
|
break;
|
|
9665
9674
|
}
|
|
9666
9675
|
if (text.charCodeAt(pos - 1) === 95 /* _ */) {
|
|
9676
|
+
tokenFlags |= 16384 /* ContainsInvalidSeparator */;
|
|
9667
9677
|
error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1);
|
|
9668
9678
|
}
|
|
9669
9679
|
return result + text.substring(start2, pos);
|
|
9670
9680
|
}
|
|
9671
9681
|
function scanNumber() {
|
|
9672
|
-
|
|
9673
|
-
|
|
9682
|
+
let start2 = pos;
|
|
9683
|
+
let mainFragment;
|
|
9684
|
+
if (text.charCodeAt(pos) === 48 /* _0 */) {
|
|
9685
|
+
pos++;
|
|
9686
|
+
if (text.charCodeAt(pos) === 95 /* _ */) {
|
|
9687
|
+
tokenFlags |= 512 /* ContainsSeparator */ | 16384 /* ContainsInvalidSeparator */;
|
|
9688
|
+
error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1);
|
|
9689
|
+
pos--;
|
|
9690
|
+
mainFragment = scanNumberFragment();
|
|
9691
|
+
} else if (!scanDigits()) {
|
|
9692
|
+
tokenFlags |= 8192 /* ContainsLeadingZero */;
|
|
9693
|
+
mainFragment = "" + +tokenValue;
|
|
9694
|
+
} else if (!tokenValue) {
|
|
9695
|
+
mainFragment = "0";
|
|
9696
|
+
} else {
|
|
9697
|
+
tokenValue = "" + parseInt(tokenValue, 8);
|
|
9698
|
+
tokenFlags |= 32 /* Octal */;
|
|
9699
|
+
const withMinus = token === 40 /* MinusToken */;
|
|
9700
|
+
const literal = (withMinus ? "-" : "") + "0o" + (+tokenValue).toString(8);
|
|
9701
|
+
if (withMinus)
|
|
9702
|
+
start2--;
|
|
9703
|
+
error(Diagnostics.Octal_literals_are_not_allowed_Use_the_syntax_0, start2, pos - start2, literal);
|
|
9704
|
+
return { type: 8 /* NumericLiteral */, value: tokenValue };
|
|
9705
|
+
}
|
|
9706
|
+
} else {
|
|
9707
|
+
mainFragment = scanNumberFragment();
|
|
9708
|
+
}
|
|
9674
9709
|
let decimalFragment;
|
|
9675
9710
|
let scientificFragment;
|
|
9676
9711
|
if (text.charCodeAt(pos) === 46 /* dot */) {
|
|
@@ -9704,6 +9739,10 @@ ${lanes.join("\n")}
|
|
|
9704
9739
|
} else {
|
|
9705
9740
|
result = text.substring(start2, end2);
|
|
9706
9741
|
}
|
|
9742
|
+
if (tokenFlags & 8192 /* ContainsLeadingZero */) {
|
|
9743
|
+
error(Diagnostics.Decimals_with_leading_zeros_are_not_allowed, start2, end2 - start2);
|
|
9744
|
+
return { type: 8 /* NumericLiteral */, value: "" + +result };
|
|
9745
|
+
}
|
|
9707
9746
|
if (decimalFragment !== void 0 || tokenFlags & 16 /* Scientific */) {
|
|
9708
9747
|
checkForIdentifierStartAfterNumericLiteral(start2, decimalFragment === void 0 && !!(tokenFlags & 16 /* Scientific */));
|
|
9709
9748
|
return {
|
|
@@ -9735,12 +9774,17 @@ ${lanes.join("\n")}
|
|
|
9735
9774
|
pos = identifierStart;
|
|
9736
9775
|
}
|
|
9737
9776
|
}
|
|
9738
|
-
function
|
|
9777
|
+
function scanDigits() {
|
|
9739
9778
|
const start2 = pos;
|
|
9740
|
-
|
|
9779
|
+
let isOctal = true;
|
|
9780
|
+
while (isDigit(text.charCodeAt(pos))) {
|
|
9781
|
+
if (!isOctalDigit(text.charCodeAt(pos))) {
|
|
9782
|
+
isOctal = false;
|
|
9783
|
+
}
|
|
9741
9784
|
pos++;
|
|
9742
9785
|
}
|
|
9743
|
-
|
|
9786
|
+
tokenValue = text.substring(start2, pos);
|
|
9787
|
+
return isOctal;
|
|
9744
9788
|
}
|
|
9745
9789
|
function scanExactNumberOfHexDigits(count, canHaveSeparators) {
|
|
9746
9790
|
const valueString = scanHexDigits(
|
|
@@ -9818,7 +9862,10 @@ ${lanes.join("\n")}
|
|
|
9818
9862
|
}
|
|
9819
9863
|
if (ch === 92 /* backslash */ && !jsxAttributeString) {
|
|
9820
9864
|
result += text.substring(start2, pos);
|
|
9821
|
-
result += scanEscapeSequence(
|
|
9865
|
+
result += scanEscapeSequence(
|
|
9866
|
+
/*shouldEmitInvalidEscapeError*/
|
|
9867
|
+
true
|
|
9868
|
+
);
|
|
9822
9869
|
start2 = pos;
|
|
9823
9870
|
continue;
|
|
9824
9871
|
}
|
|
@@ -9832,7 +9879,7 @@ ${lanes.join("\n")}
|
|
|
9832
9879
|
}
|
|
9833
9880
|
return result;
|
|
9834
9881
|
}
|
|
9835
|
-
function scanTemplateAndSetTokenValue(
|
|
9882
|
+
function scanTemplateAndSetTokenValue(shouldEmitInvalidEscapeError) {
|
|
9836
9883
|
const startedWithBacktick = text.charCodeAt(pos) === 96 /* backtick */;
|
|
9837
9884
|
pos++;
|
|
9838
9885
|
let start2 = pos;
|
|
@@ -9861,7 +9908,7 @@ ${lanes.join("\n")}
|
|
|
9861
9908
|
}
|
|
9862
9909
|
if (currChar === 92 /* backslash */) {
|
|
9863
9910
|
contents += text.substring(start2, pos);
|
|
9864
|
-
contents += scanEscapeSequence(
|
|
9911
|
+
contents += scanEscapeSequence(shouldEmitInvalidEscapeError);
|
|
9865
9912
|
start2 = pos;
|
|
9866
9913
|
continue;
|
|
9867
9914
|
}
|
|
@@ -9881,7 +9928,7 @@ ${lanes.join("\n")}
|
|
|
9881
9928
|
tokenValue = contents;
|
|
9882
9929
|
return resultingToken;
|
|
9883
9930
|
}
|
|
9884
|
-
function scanEscapeSequence(
|
|
9931
|
+
function scanEscapeSequence(shouldEmitInvalidEscapeError) {
|
|
9885
9932
|
const start2 = pos;
|
|
9886
9933
|
pos++;
|
|
9887
9934
|
if (pos >= end) {
|
|
@@ -9892,12 +9939,37 @@ ${lanes.join("\n")}
|
|
|
9892
9939
|
pos++;
|
|
9893
9940
|
switch (ch) {
|
|
9894
9941
|
case 48 /* _0 */:
|
|
9895
|
-
if (
|
|
9942
|
+
if (pos >= end || !isDigit(text.charCodeAt(pos))) {
|
|
9943
|
+
return "\0";
|
|
9944
|
+
}
|
|
9945
|
+
case 49 /* _1 */:
|
|
9946
|
+
case 50 /* _2 */:
|
|
9947
|
+
case 51 /* _3 */:
|
|
9948
|
+
if (pos < end && isOctalDigit(text.charCodeAt(pos))) {
|
|
9896
9949
|
pos++;
|
|
9897
|
-
tokenFlags |= 2048 /* ContainsInvalidEscape */;
|
|
9898
|
-
return text.substring(start2, pos);
|
|
9899
9950
|
}
|
|
9900
|
-
|
|
9951
|
+
case 52 /* _4 */:
|
|
9952
|
+
case 53 /* _5 */:
|
|
9953
|
+
case 54 /* _6 */:
|
|
9954
|
+
case 55 /* _7 */:
|
|
9955
|
+
if (pos < end && isOctalDigit(text.charCodeAt(pos))) {
|
|
9956
|
+
pos++;
|
|
9957
|
+
}
|
|
9958
|
+
tokenFlags |= 2048 /* ContainsInvalidEscape */;
|
|
9959
|
+
if (shouldEmitInvalidEscapeError) {
|
|
9960
|
+
const code = parseInt(text.substring(start2 + 1, pos), 8);
|
|
9961
|
+
error(Diagnostics.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0, start2, pos - start2, "\\x" + padLeft(code.toString(16), 2, "0"));
|
|
9962
|
+
return String.fromCharCode(code);
|
|
9963
|
+
}
|
|
9964
|
+
return text.substring(start2, pos);
|
|
9965
|
+
case 56 /* _8 */:
|
|
9966
|
+
case 57 /* _9 */:
|
|
9967
|
+
tokenFlags |= 2048 /* ContainsInvalidEscape */;
|
|
9968
|
+
if (shouldEmitInvalidEscapeError) {
|
|
9969
|
+
error(Diagnostics.Escape_sequence_0_is_not_allowed, start2, pos - start2, text.substring(start2, pos));
|
|
9970
|
+
return String.fromCharCode(ch);
|
|
9971
|
+
}
|
|
9972
|
+
return text.substring(start2, pos);
|
|
9901
9973
|
case 98 /* b */:
|
|
9902
9974
|
return "\b";
|
|
9903
9975
|
case 116 /* t */:
|
|
@@ -9915,59 +9987,69 @@ ${lanes.join("\n")}
|
|
|
9915
9987
|
case 34 /* doubleQuote */:
|
|
9916
9988
|
return '"';
|
|
9917
9989
|
case 117 /* u */:
|
|
9918
|
-
if (isTaggedTemplate) {
|
|
9919
|
-
for (let escapePos = pos; escapePos < pos + 4; escapePos++) {
|
|
9920
|
-
if (escapePos < end && !isHexDigit(text.charCodeAt(escapePos)) && text.charCodeAt(escapePos) !== 123 /* openBrace */) {
|
|
9921
|
-
pos = escapePos;
|
|
9922
|
-
tokenFlags |= 2048 /* ContainsInvalidEscape */;
|
|
9923
|
-
return text.substring(start2, pos);
|
|
9924
|
-
}
|
|
9925
|
-
}
|
|
9926
|
-
}
|
|
9927
9990
|
if (pos < end && text.charCodeAt(pos) === 123 /* openBrace */) {
|
|
9928
9991
|
pos++;
|
|
9929
|
-
|
|
9992
|
+
const escapedValueString = scanMinimumNumberOfHexDigits(
|
|
9993
|
+
1,
|
|
9994
|
+
/*canHaveSeparators*/
|
|
9995
|
+
false
|
|
9996
|
+
);
|
|
9997
|
+
const escapedValue = escapedValueString ? parseInt(escapedValueString, 16) : -1;
|
|
9998
|
+
if (escapedValue < 0) {
|
|
9930
9999
|
tokenFlags |= 2048 /* ContainsInvalidEscape */;
|
|
10000
|
+
if (shouldEmitInvalidEscapeError) {
|
|
10001
|
+
error(Diagnostics.Hexadecimal_digit_expected);
|
|
10002
|
+
}
|
|
9931
10003
|
return text.substring(start2, pos);
|
|
9932
10004
|
}
|
|
9933
|
-
if (
|
|
9934
|
-
|
|
9935
|
-
|
|
9936
|
-
|
|
9937
|
-
|
|
9938
|
-
|
|
9939
|
-
|
|
9940
|
-
|
|
9941
|
-
|
|
9942
|
-
|
|
9943
|
-
|
|
9944
|
-
} else {
|
|
9945
|
-
pos = savePos;
|
|
10005
|
+
if (!isCodePoint(escapedValue)) {
|
|
10006
|
+
tokenFlags |= 2048 /* ContainsInvalidEscape */;
|
|
10007
|
+
if (shouldEmitInvalidEscapeError) {
|
|
10008
|
+
error(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive);
|
|
10009
|
+
}
|
|
10010
|
+
return text.substring(start2, pos);
|
|
10011
|
+
}
|
|
10012
|
+
if (pos >= end) {
|
|
10013
|
+
tokenFlags |= 2048 /* ContainsInvalidEscape */;
|
|
10014
|
+
if (shouldEmitInvalidEscapeError) {
|
|
10015
|
+
error(Diagnostics.Unexpected_end_of_text);
|
|
9946
10016
|
}
|
|
10017
|
+
return text.substring(start2, pos);
|
|
10018
|
+
}
|
|
10019
|
+
if (text.charCodeAt(pos) !== 125 /* closeBrace */) {
|
|
10020
|
+
tokenFlags |= 2048 /* ContainsInvalidEscape */;
|
|
10021
|
+
if (shouldEmitInvalidEscapeError) {
|
|
10022
|
+
error(Diagnostics.Unterminated_Unicode_escape_sequence);
|
|
10023
|
+
}
|
|
10024
|
+
return text.substring(start2, pos);
|
|
9947
10025
|
}
|
|
10026
|
+
pos++;
|
|
9948
10027
|
tokenFlags |= 8 /* ExtendedUnicodeEscape */;
|
|
9949
|
-
return
|
|
10028
|
+
return utf16EncodeAsString(escapedValue);
|
|
9950
10029
|
}
|
|
9951
|
-
|
|
9952
|
-
|
|
9953
|
-
/*numDigits*/
|
|
9954
|
-
4
|
|
9955
|
-
);
|
|
9956
|
-
case 120 /* x */:
|
|
9957
|
-
if (isTaggedTemplate) {
|
|
9958
|
-
if (!isHexDigit(text.charCodeAt(pos))) {
|
|
10030
|
+
for (; pos < start2 + 6; pos++) {
|
|
10031
|
+
if (!(pos < end && isHexDigit(text.charCodeAt(pos)))) {
|
|
9959
10032
|
tokenFlags |= 2048 /* ContainsInvalidEscape */;
|
|
10033
|
+
if (shouldEmitInvalidEscapeError) {
|
|
10034
|
+
error(Diagnostics.Hexadecimal_digit_expected);
|
|
10035
|
+
}
|
|
9960
10036
|
return text.substring(start2, pos);
|
|
9961
|
-
}
|
|
9962
|
-
|
|
10037
|
+
}
|
|
10038
|
+
}
|
|
10039
|
+
tokenFlags |= 1024 /* UnicodeEscape */;
|
|
10040
|
+
return String.fromCharCode(parseInt(text.substring(start2 + 2, pos), 16));
|
|
10041
|
+
case 120 /* x */:
|
|
10042
|
+
for (; pos < start2 + 4; pos++) {
|
|
10043
|
+
if (!(pos < end && isHexDigit(text.charCodeAt(pos)))) {
|
|
9963
10044
|
tokenFlags |= 2048 /* ContainsInvalidEscape */;
|
|
10045
|
+
if (shouldEmitInvalidEscapeError) {
|
|
10046
|
+
error(Diagnostics.Hexadecimal_digit_expected);
|
|
10047
|
+
}
|
|
9964
10048
|
return text.substring(start2, pos);
|
|
9965
10049
|
}
|
|
9966
10050
|
}
|
|
9967
|
-
|
|
9968
|
-
|
|
9969
|
-
2
|
|
9970
|
-
);
|
|
10051
|
+
tokenFlags |= 4096 /* HexEscape */;
|
|
10052
|
+
return String.fromCharCode(parseInt(text.substring(start2 + 2, pos), 16));
|
|
9971
10053
|
case 13 /* carriageReturn */:
|
|
9972
10054
|
if (pos < end && text.charCodeAt(pos) === 10 /* lineFeed */) {
|
|
9973
10055
|
pos++;
|
|
@@ -9980,19 +10062,6 @@ ${lanes.join("\n")}
|
|
|
9980
10062
|
return String.fromCharCode(ch);
|
|
9981
10063
|
}
|
|
9982
10064
|
}
|
|
9983
|
-
function scanHexadecimalEscape(numDigits) {
|
|
9984
|
-
const escapedValue = scanExactNumberOfHexDigits(
|
|
9985
|
-
numDigits,
|
|
9986
|
-
/*canHaveSeparators*/
|
|
9987
|
-
false
|
|
9988
|
-
);
|
|
9989
|
-
if (escapedValue >= 0) {
|
|
9990
|
-
return String.fromCharCode(escapedValue);
|
|
9991
|
-
} else {
|
|
9992
|
-
error(Diagnostics.Hexadecimal_digit_expected);
|
|
9993
|
-
return "";
|
|
9994
|
-
}
|
|
9995
|
-
}
|
|
9996
10065
|
function scanExtendedUnicodeEscape() {
|
|
9997
10066
|
const escapedValueString = scanMinimumNumberOfHexDigits(
|
|
9998
10067
|
1,
|
|
@@ -10221,7 +10290,7 @@ ${lanes.join("\n")}
|
|
|
10221
10290
|
return token = 10 /* StringLiteral */;
|
|
10222
10291
|
case 96 /* backtick */:
|
|
10223
10292
|
return token = scanTemplateAndSetTokenValue(
|
|
10224
|
-
/*
|
|
10293
|
+
/*shouldEmitInvalidEscapeError*/
|
|
10225
10294
|
false
|
|
10226
10295
|
);
|
|
10227
10296
|
case 37 /* percent */:
|
|
@@ -10396,11 +10465,6 @@ ${lanes.join("\n")}
|
|
|
10396
10465
|
tokenFlags |= 256 /* OctalSpecifier */;
|
|
10397
10466
|
return token = checkBigIntSuffix();
|
|
10398
10467
|
}
|
|
10399
|
-
if (pos + 1 < end && isOctalDigit(text.charCodeAt(pos + 1))) {
|
|
10400
|
-
tokenValue = "" + scanOctalDigits();
|
|
10401
|
-
tokenFlags |= 32 /* Octal */;
|
|
10402
|
-
return token = 8 /* NumericLiteral */;
|
|
10403
|
-
}
|
|
10404
10468
|
case 49 /* _1 */:
|
|
10405
10469
|
case 50 /* _2 */:
|
|
10406
10470
|
case 51 /* _3 */:
|
|
@@ -10717,14 +10781,13 @@ ${lanes.join("\n")}
|
|
|
10717
10781
|
return void 0;
|
|
10718
10782
|
}
|
|
10719
10783
|
function reScanTemplateToken(isTaggedTemplate) {
|
|
10720
|
-
Debug.assert(token === 19 /* CloseBraceToken */, "'reScanTemplateToken' should only be called on a '}'");
|
|
10721
10784
|
pos = tokenStart;
|
|
10722
|
-
return token = scanTemplateAndSetTokenValue(isTaggedTemplate);
|
|
10785
|
+
return token = scanTemplateAndSetTokenValue(!isTaggedTemplate);
|
|
10723
10786
|
}
|
|
10724
10787
|
function reScanTemplateHeadOrNoSubstitutionTemplate() {
|
|
10725
10788
|
pos = tokenStart;
|
|
10726
10789
|
return token = scanTemplateAndSetTokenValue(
|
|
10727
|
-
/*
|
|
10790
|
+
/*shouldEmitInvalidEscapeError*/
|
|
10728
10791
|
true
|
|
10729
10792
|
);
|
|
10730
10793
|
}
|
|
@@ -13607,8 +13670,13 @@ ${lanes.join("\n")}
|
|
|
13607
13670
|
if (nodeIsSynthesized(node) || !node.parent || flags & 4 /* TerminateUnterminatedLiterals */ && node.isUnterminated) {
|
|
13608
13671
|
return false;
|
|
13609
13672
|
}
|
|
13610
|
-
if (isNumericLiteral(node)
|
|
13611
|
-
|
|
13673
|
+
if (isNumericLiteral(node)) {
|
|
13674
|
+
if (node.numericLiteralFlags & 26656 /* IsInvalid */) {
|
|
13675
|
+
return false;
|
|
13676
|
+
}
|
|
13677
|
+
if (node.numericLiteralFlags & 512 /* ContainsSeparator */) {
|
|
13678
|
+
return !!(flags & 8 /* AllowNumericSeparator */);
|
|
13679
|
+
}
|
|
13612
13680
|
}
|
|
13613
13681
|
return !isBigIntLiteral(node);
|
|
13614
13682
|
}
|
|
@@ -13936,7 +14004,7 @@ ${lanes.join("\n")}
|
|
|
13936
14004
|
true,
|
|
13937
14005
|
sourceFile.languageVariant,
|
|
13938
14006
|
sourceFile.text,
|
|
13939
|
-
/*onError
|
|
14007
|
+
/*onError*/
|
|
13940
14008
|
void 0,
|
|
13941
14009
|
pos
|
|
13942
14010
|
);
|
|
@@ -13951,7 +14019,7 @@ ${lanes.join("\n")}
|
|
|
13951
14019
|
true,
|
|
13952
14020
|
sourceFile.languageVariant,
|
|
13953
14021
|
sourceFile.text,
|
|
13954
|
-
/*onError
|
|
14022
|
+
/*onError*/
|
|
13955
14023
|
void 0,
|
|
13956
14024
|
pos
|
|
13957
14025
|
);
|
|
@@ -14929,7 +14997,7 @@ ${lanes.join("\n")}
|
|
|
14929
14997
|
function getRightMostAssignedExpression(node) {
|
|
14930
14998
|
while (isAssignmentExpression(
|
|
14931
14999
|
node,
|
|
14932
|
-
/*
|
|
15000
|
+
/*excludeCompoundAssignment*/
|
|
14933
15001
|
true
|
|
14934
15002
|
)) {
|
|
14935
15003
|
node = node.right;
|
|
@@ -15132,7 +15200,7 @@ ${lanes.join("\n")}
|
|
|
15132
15200
|
case 211 /* CallExpression */:
|
|
15133
15201
|
return isImportCall(node.parent) || isRequireCall(
|
|
15134
15202
|
node.parent,
|
|
15135
|
-
/*
|
|
15203
|
+
/*requireStringLiteralLikeArgument*/
|
|
15136
15204
|
false
|
|
15137
15205
|
) ? node.parent : void 0;
|
|
15138
15206
|
case 199 /* LiteralType */:
|
|
@@ -16849,9 +16917,9 @@ ${lanes.join("\n")}
|
|
|
16849
16917
|
function getEffectiveModifierFlagsAlwaysIncludeJSDoc(node) {
|
|
16850
16918
|
return getModifierFlagsWorker(
|
|
16851
16919
|
node,
|
|
16852
|
-
/*
|
|
16920
|
+
/*includeJSDoc*/
|
|
16853
16921
|
true,
|
|
16854
|
-
/*
|
|
16922
|
+
/*alwaysIncludeJSDoc*/
|
|
16855
16923
|
true
|
|
16856
16924
|
);
|
|
16857
16925
|
}
|
|
@@ -19434,7 +19502,7 @@ ${lanes.join("\n")}
|
|
|
19434
19502
|
if (!needsParens) {
|
|
19435
19503
|
switch (getLeftmostExpression(
|
|
19436
19504
|
check,
|
|
19437
|
-
/*
|
|
19505
|
+
/*stopAtCallExpressions*/
|
|
19438
19506
|
false
|
|
19439
19507
|
).kind) {
|
|
19440
19508
|
case 229 /* ClassExpression */:
|
|
@@ -21844,7 +21912,7 @@ ${lanes.join("\n")}
|
|
|
21844
21912
|
return node.head !== head || node.templateSpans !== templateSpans ? update(createTemplateExpression(head, templateSpans), node) : node;
|
|
21845
21913
|
}
|
|
21846
21914
|
function checkTemplateLiteralLikeNode(kind, text, rawText, templateFlags = 0 /* None */) {
|
|
21847
|
-
Debug.assert(!(templateFlags & ~
|
|
21915
|
+
Debug.assert(!(templateFlags & ~7176 /* TemplateLiteralLikeFlags */), "Unsupported template flags.");
|
|
21848
21916
|
let cooked = void 0;
|
|
21849
21917
|
if (rawText !== void 0 && rawText !== text) {
|
|
21850
21918
|
cooked = getCookedText(kind, rawText);
|
|
@@ -21873,7 +21941,7 @@ ${lanes.join("\n")}
|
|
|
21873
21941
|
const node = createBaseToken(kind);
|
|
21874
21942
|
node.text = text;
|
|
21875
21943
|
node.rawText = rawText;
|
|
21876
|
-
node.templateFlags = templateFlags &
|
|
21944
|
+
node.templateFlags = templateFlags & 7176 /* TemplateLiteralLikeFlags */;
|
|
21877
21945
|
node.transformFlags = getTransformFlagsOfTemplateLiteralLike(node.templateFlags);
|
|
21878
21946
|
return node;
|
|
21879
21947
|
}
|
|
@@ -21881,7 +21949,7 @@ ${lanes.join("\n")}
|
|
|
21881
21949
|
const node = createBaseDeclaration(kind);
|
|
21882
21950
|
node.text = text;
|
|
21883
21951
|
node.rawText = rawText;
|
|
21884
|
-
node.templateFlags = templateFlags &
|
|
21952
|
+
node.templateFlags = templateFlags & 7176 /* TemplateLiteralLikeFlags */;
|
|
21885
21953
|
node.transformFlags = getTransformFlagsOfTemplateLiteralLike(node.templateFlags);
|
|
21886
21954
|
return node;
|
|
21887
21955
|
}
|
|
@@ -25252,7 +25320,7 @@ ${lanes.join("\n")}
|
|
|
25252
25320
|
context.requestEmitHelper(classPrivateFieldInHelper);
|
|
25253
25321
|
return factory2.createCallExpression(
|
|
25254
25322
|
getUnscopedHelperName("__classPrivateFieldIn"),
|
|
25255
|
-
/*
|
|
25323
|
+
/*typeArguments*/
|
|
25256
25324
|
void 0,
|
|
25257
25325
|
[state, receiver]
|
|
25258
25326
|
);
|
|
@@ -27349,7 +27417,7 @@ ${lanes.join("\n")}
|
|
|
27349
27417
|
[factory2.createParameterDeclaration(
|
|
27350
27418
|
/*modifiers*/
|
|
27351
27419
|
void 0,
|
|
27352
|
-
/*
|
|
27420
|
+
/*dotDotDotToken*/
|
|
27353
27421
|
void 0,
|
|
27354
27422
|
"value"
|
|
27355
27423
|
)],
|
|
@@ -28643,7 +28711,7 @@ ${lanes.join("\n")}
|
|
|
28643
28711
|
fileName2,
|
|
28644
28712
|
2 /* ES2015 */,
|
|
28645
28713
|
6 /* JSON */,
|
|
28646
|
-
/*
|
|
28714
|
+
/*isDeclarationFile*/
|
|
28647
28715
|
false,
|
|
28648
28716
|
statements,
|
|
28649
28717
|
endOfFileToken,
|
|
@@ -28997,8 +29065,8 @@ ${lanes.join("\n")}
|
|
|
28997
29065
|
function parseErrorAtRange(range, message, ...args) {
|
|
28998
29066
|
parseErrorAt(range.pos, range.end, message, ...args);
|
|
28999
29067
|
}
|
|
29000
|
-
function scanError(message, length2) {
|
|
29001
|
-
parseErrorAtPosition(scanner2.getTokenEnd(), length2, message);
|
|
29068
|
+
function scanError(message, length2, arg0) {
|
|
29069
|
+
parseErrorAtPosition(scanner2.getTokenEnd(), length2, message, arg0);
|
|
29002
29070
|
}
|
|
29003
29071
|
function getNodePos() {
|
|
29004
29072
|
return scanner2.getTokenFullStart();
|
|
@@ -29037,9 +29105,6 @@ ${lanes.join("\n")}
|
|
|
29037
29105
|
function reScanTemplateToken(isTaggedTemplate) {
|
|
29038
29106
|
return currentToken = scanner2.reScanTemplateToken(isTaggedTemplate);
|
|
29039
29107
|
}
|
|
29040
|
-
function reScanTemplateHeadOrNoSubstitutionTemplate() {
|
|
29041
|
-
return currentToken = scanner2.reScanTemplateHeadOrNoSubstitutionTemplate();
|
|
29042
|
-
}
|
|
29043
29108
|
function reScanLessThanToken() {
|
|
29044
29109
|
return currentToken = scanner2.reScanLessThanToken();
|
|
29045
29110
|
}
|
|
@@ -29998,7 +30063,7 @@ ${lanes.join("\n")}
|
|
|
29998
30063
|
entity,
|
|
29999
30064
|
parseRightSideOfDot(
|
|
30000
30065
|
allowReservedWords,
|
|
30001
|
-
/*
|
|
30066
|
+
/*allowPrivateIdentifiers*/
|
|
30002
30067
|
false
|
|
30003
30068
|
)
|
|
30004
30069
|
),
|
|
@@ -30111,8 +30176,11 @@ ${lanes.join("\n")}
|
|
|
30111
30176
|
return parseLiteralLikeNode(token());
|
|
30112
30177
|
}
|
|
30113
30178
|
function parseTemplateHead(isTaggedTemplate) {
|
|
30114
|
-
if (isTaggedTemplate) {
|
|
30115
|
-
|
|
30179
|
+
if (!isTaggedTemplate && scanner2.getTokenFlags() & 26656 /* IsInvalid */) {
|
|
30180
|
+
reScanTemplateToken(
|
|
30181
|
+
/*isTaggedTemplate*/
|
|
30182
|
+
false
|
|
30183
|
+
);
|
|
30116
30184
|
}
|
|
30117
30185
|
const fragment = parseLiteralLikeNode(token());
|
|
30118
30186
|
Debug.assert(fragment.kind === 15 /* TemplateHead */, "Template head has wrong token kind");
|
|
@@ -30130,8 +30198,7 @@ ${lanes.join("\n")}
|
|
|
30130
30198
|
}
|
|
30131
30199
|
function parseLiteralLikeNode(kind) {
|
|
30132
30200
|
const pos = getNodePos();
|
|
30133
|
-
const node = isTemplateLiteralKind(kind) ? factory2.createTemplateLiteralLikeNode(kind, scanner2.getTokenValue(), getTemplateLiteralRawText(kind), scanner2.getTokenFlags() &
|
|
30134
|
-
// Octal literals are not allowed in strict mode or ES5
|
|
30201
|
+
const node = isTemplateLiteralKind(kind) ? factory2.createTemplateLiteralLikeNode(kind, scanner2.getTokenValue(), getTemplateLiteralRawText(kind), scanner2.getTokenFlags() & 7176 /* TemplateLiteralLikeFlags */) : (
|
|
30135
30202
|
// Note that theoretically the following condition would hold true literals like 009,
|
|
30136
30203
|
// which is not octal. But because of how the scanner separates the tokens, we would
|
|
30137
30204
|
// never get a token like this. Instead, we would get 00 and 9 as two separate tokens.
|
|
@@ -31935,7 +32002,7 @@ ${lanes.join("\n")}
|
|
|
31935
32002
|
parseExpected(43 /* SlashToken */);
|
|
31936
32003
|
if (parseExpected(
|
|
31937
32004
|
31 /* GreaterThanToken */,
|
|
31938
|
-
/*
|
|
32005
|
+
/*diagnosticMessage*/
|
|
31939
32006
|
void 0,
|
|
31940
32007
|
/*shouldAdvance*/
|
|
31941
32008
|
false
|
|
@@ -31980,7 +32047,7 @@ ${lanes.join("\n")}
|
|
|
31980
32047
|
} else {
|
|
31981
32048
|
if (parseExpected(
|
|
31982
32049
|
19 /* CloseBraceToken */,
|
|
31983
|
-
/*
|
|
32050
|
+
/*diagnosticMessage*/
|
|
31984
32051
|
void 0,
|
|
31985
32052
|
/*shouldAdvance*/
|
|
31986
32053
|
false
|
|
@@ -32033,7 +32100,7 @@ ${lanes.join("\n")}
|
|
|
32033
32100
|
const tagName = parseJsxElementName();
|
|
32034
32101
|
if (parseExpected(
|
|
32035
32102
|
31 /* GreaterThanToken */,
|
|
32036
|
-
/*
|
|
32103
|
+
/*diagnosticMessage*/
|
|
32037
32104
|
void 0,
|
|
32038
32105
|
/*shouldAdvance*/
|
|
32039
32106
|
false
|
|
@@ -32187,7 +32254,10 @@ ${lanes.join("\n")}
|
|
|
32187
32254
|
const tagExpression = factory2.createTaggedTemplateExpression(
|
|
32188
32255
|
tag,
|
|
32189
32256
|
typeArguments,
|
|
32190
|
-
token() === 14 /* NoSubstitutionTemplateLiteral */ ? (
|
|
32257
|
+
token() === 14 /* NoSubstitutionTemplateLiteral */ ? (reScanTemplateToken(
|
|
32258
|
+
/*isTaggedTemplate*/
|
|
32259
|
+
true
|
|
32260
|
+
), parseLiteralNode()) : parseTemplateExpression(
|
|
32191
32261
|
/*isTaggedTemplate*/
|
|
32192
32262
|
true
|
|
32193
32263
|
)
|
|
@@ -32275,10 +32345,16 @@ ${lanes.join("\n")}
|
|
|
32275
32345
|
}
|
|
32276
32346
|
function parsePrimaryExpression() {
|
|
32277
32347
|
switch (token()) {
|
|
32348
|
+
case 14 /* NoSubstitutionTemplateLiteral */:
|
|
32349
|
+
if (scanner2.getTokenFlags() & 26656 /* IsInvalid */) {
|
|
32350
|
+
reScanTemplateToken(
|
|
32351
|
+
/*isTaggedTemplate*/
|
|
32352
|
+
false
|
|
32353
|
+
);
|
|
32354
|
+
}
|
|
32278
32355
|
case 8 /* NumericLiteral */:
|
|
32279
32356
|
case 9 /* BigIntLiteral */:
|
|
32280
32357
|
case 10 /* StringLiteral */:
|
|
32281
|
-
case 14 /* NoSubstitutionTemplateLiteral */:
|
|
32282
32358
|
return parseLiteralNode();
|
|
32283
32359
|
case 109 /* ThisKeyword */:
|
|
32284
32360
|
case 107 /* SuperKeyword */:
|
|
@@ -32313,7 +32389,7 @@ ${lanes.join("\n")}
|
|
|
32313
32389
|
break;
|
|
32314
32390
|
case 15 /* TemplateHead */:
|
|
32315
32391
|
return parseTemplateExpression(
|
|
32316
|
-
/*
|
|
32392
|
+
/*isTaggedTemplate*/
|
|
32317
32393
|
false
|
|
32318
32394
|
);
|
|
32319
32395
|
case 80 /* PrivateIdentifier */:
|
|
@@ -34020,7 +34096,7 @@ ${lanes.join("\n")}
|
|
|
34020
34096
|
"file.js",
|
|
34021
34097
|
content,
|
|
34022
34098
|
99 /* Latest */,
|
|
34023
|
-
/*
|
|
34099
|
+
/*syntaxCursor*/
|
|
34024
34100
|
void 0,
|
|
34025
34101
|
1 /* JS */
|
|
34026
34102
|
);
|
|
@@ -34063,7 +34139,7 @@ ${lanes.join("\n")}
|
|
|
34063
34139
|
const hasBrace = parseOptional(18 /* OpenBraceToken */);
|
|
34064
34140
|
const p2 = getNodePos();
|
|
34065
34141
|
let entityName = parseEntityName(
|
|
34066
|
-
/*
|
|
34142
|
+
/*allowReservedWords*/
|
|
34067
34143
|
false
|
|
34068
34144
|
);
|
|
34069
34145
|
while (token() === 80 /* PrivateIdentifier */) {
|
|
@@ -34084,7 +34160,7 @@ ${lanes.join("\n")}
|
|
|
34084
34160
|
"",
|
|
34085
34161
|
content,
|
|
34086
34162
|
99 /* Latest */,
|
|
34087
|
-
/*
|
|
34163
|
+
/*syntaxCursor*/
|
|
34088
34164
|
void 0,
|
|
34089
34165
|
1 /* JS */
|
|
34090
34166
|
);
|
|
@@ -39637,7 +39713,7 @@ ${lanes.join("\n")}
|
|
|
39637
39713
|
2 /* JavaScript */,
|
|
39638
39714
|
/*isConfigLookup*/
|
|
39639
39715
|
false,
|
|
39640
|
-
/*
|
|
39716
|
+
/*redirectedReference*/
|
|
39641
39717
|
void 0
|
|
39642
39718
|
);
|
|
39643
39719
|
}
|
|
@@ -40053,7 +40129,7 @@ ${lanes.join("\n")}
|
|
|
40053
40129
|
const result = loadFileNameFromPackageJsonField(
|
|
40054
40130
|
extensions,
|
|
40055
40131
|
finalPath,
|
|
40056
|
-
/*
|
|
40132
|
+
/*onlyRecordFailures*/
|
|
40057
40133
|
false,
|
|
40058
40134
|
state
|
|
40059
40135
|
);
|
|
@@ -42893,11 +42969,6 @@ ${lanes.join("\n")}
|
|
|
42893
42969
|
}
|
|
42894
42970
|
}
|
|
42895
42971
|
}
|
|
42896
|
-
function checkStrictModeNumericLiteral(node) {
|
|
42897
|
-
if (languageVersion < 1 /* ES5 */ && inStrictMode && node.numericLiteralFlags & 32 /* Octal */) {
|
|
42898
|
-
file.bindDiagnostics.push(createDiagnosticForNode2(node, Diagnostics.Octal_literals_are_not_allowed_in_strict_mode));
|
|
42899
|
-
}
|
|
42900
|
-
}
|
|
42901
42972
|
function checkStrictModePostfixUnaryExpression(node) {
|
|
42902
42973
|
if (inStrictMode) {
|
|
42903
42974
|
checkStrictModeEvalOrArguments(node, node.operand);
|
|
@@ -43089,8 +43160,6 @@ ${lanes.join("\n")}
|
|
|
43089
43160
|
return checkStrictModeCatchClause(node);
|
|
43090
43161
|
case 218 /* DeleteExpression */:
|
|
43091
43162
|
return checkStrictModeDeleteExpression(node);
|
|
43092
|
-
case 8 /* NumericLiteral */:
|
|
43093
|
-
return checkStrictModeNumericLiteral(node);
|
|
43094
43163
|
case 223 /* PostfixUnaryExpression */:
|
|
43095
43164
|
return checkStrictModePostfixUnaryExpression(node);
|
|
43096
43165
|
case 222 /* PrefixUnaryExpression */:
|
|
@@ -43548,7 +43617,7 @@ ${lanes.join("\n")}
|
|
|
43548
43617
|
parentSymbol,
|
|
43549
43618
|
node.left.expression,
|
|
43550
43619
|
isTopLevelNamespaceAssignment(node.left),
|
|
43551
|
-
/*
|
|
43620
|
+
/*isPrototypeProperty*/
|
|
43552
43621
|
false,
|
|
43553
43622
|
/*containerIsClass*/
|
|
43554
43623
|
false
|
|
@@ -43680,7 +43749,7 @@ ${lanes.join("\n")}
|
|
|
43680
43749
|
function bindCallExpression(node) {
|
|
43681
43750
|
if (!file.commonJsModuleIndicator && isRequireCall(
|
|
43682
43751
|
node,
|
|
43683
|
-
/*
|
|
43752
|
+
/*requireStringLiteralLikeArgument*/
|
|
43684
43753
|
false
|
|
43685
43754
|
)) {
|
|
43686
43755
|
setCommonJsModuleIndicator(node);
|
|
@@ -45503,21 +45572,77 @@ ${lanes.join("\n")}
|
|
|
45503
45572
|
}
|
|
45504
45573
|
return t;
|
|
45505
45574
|
}, () => "(unreliable reporter)");
|
|
45506
|
-
var emptyObjectType = createAnonymousType(
|
|
45507
|
-
|
|
45575
|
+
var emptyObjectType = createAnonymousType(
|
|
45576
|
+
/*symbol*/
|
|
45577
|
+
void 0,
|
|
45578
|
+
emptySymbols,
|
|
45579
|
+
emptyArray,
|
|
45580
|
+
emptyArray,
|
|
45581
|
+
emptyArray
|
|
45582
|
+
);
|
|
45583
|
+
var emptyJsxObjectType = createAnonymousType(
|
|
45584
|
+
/*symbol*/
|
|
45585
|
+
void 0,
|
|
45586
|
+
emptySymbols,
|
|
45587
|
+
emptyArray,
|
|
45588
|
+
emptyArray,
|
|
45589
|
+
emptyArray
|
|
45590
|
+
);
|
|
45508
45591
|
emptyJsxObjectType.objectFlags |= 2048 /* JsxAttributes */;
|
|
45509
45592
|
var emptyTypeLiteralSymbol = createSymbol(2048 /* TypeLiteral */, "__type" /* Type */);
|
|
45510
45593
|
emptyTypeLiteralSymbol.members = createSymbolTable();
|
|
45511
45594
|
var emptyTypeLiteralType = createAnonymousType(emptyTypeLiteralSymbol, emptySymbols, emptyArray, emptyArray, emptyArray);
|
|
45512
|
-
var unknownEmptyObjectType = createAnonymousType(
|
|
45595
|
+
var unknownEmptyObjectType = createAnonymousType(
|
|
45596
|
+
/*symbol*/
|
|
45597
|
+
void 0,
|
|
45598
|
+
emptySymbols,
|
|
45599
|
+
emptyArray,
|
|
45600
|
+
emptyArray,
|
|
45601
|
+
emptyArray
|
|
45602
|
+
);
|
|
45513
45603
|
var unknownUnionType = strictNullChecks ? getUnionType([undefinedType, nullType, unknownEmptyObjectType]) : unknownType;
|
|
45514
|
-
var emptyGenericType = createAnonymousType(
|
|
45604
|
+
var emptyGenericType = createAnonymousType(
|
|
45605
|
+
/*symbol*/
|
|
45606
|
+
void 0,
|
|
45607
|
+
emptySymbols,
|
|
45608
|
+
emptyArray,
|
|
45609
|
+
emptyArray,
|
|
45610
|
+
emptyArray
|
|
45611
|
+
);
|
|
45515
45612
|
emptyGenericType.instantiations = /* @__PURE__ */ new Map();
|
|
45516
|
-
var anyFunctionType = createAnonymousType(
|
|
45613
|
+
var anyFunctionType = createAnonymousType(
|
|
45614
|
+
/*symbol*/
|
|
45615
|
+
void 0,
|
|
45616
|
+
emptySymbols,
|
|
45617
|
+
emptyArray,
|
|
45618
|
+
emptyArray,
|
|
45619
|
+
emptyArray
|
|
45620
|
+
);
|
|
45517
45621
|
anyFunctionType.objectFlags |= 262144 /* NonInferrableType */;
|
|
45518
|
-
var noConstraintType = createAnonymousType(
|
|
45519
|
-
|
|
45520
|
-
|
|
45622
|
+
var noConstraintType = createAnonymousType(
|
|
45623
|
+
/*symbol*/
|
|
45624
|
+
void 0,
|
|
45625
|
+
emptySymbols,
|
|
45626
|
+
emptyArray,
|
|
45627
|
+
emptyArray,
|
|
45628
|
+
emptyArray
|
|
45629
|
+
);
|
|
45630
|
+
var circularConstraintType = createAnonymousType(
|
|
45631
|
+
/*symbol*/
|
|
45632
|
+
void 0,
|
|
45633
|
+
emptySymbols,
|
|
45634
|
+
emptyArray,
|
|
45635
|
+
emptyArray,
|
|
45636
|
+
emptyArray
|
|
45637
|
+
);
|
|
45638
|
+
var resolvingDefaultType = createAnonymousType(
|
|
45639
|
+
/*symbol*/
|
|
45640
|
+
void 0,
|
|
45641
|
+
emptySymbols,
|
|
45642
|
+
emptyArray,
|
|
45643
|
+
emptyArray,
|
|
45644
|
+
emptyArray
|
|
45645
|
+
);
|
|
45521
45646
|
var markerSuperType = createTypeParameter();
|
|
45522
45647
|
var markerSubType = createTypeParameter();
|
|
45523
45648
|
markerSubType.constraint = markerSuperType;
|
|
@@ -45527,8 +45652,11 @@ ${lanes.join("\n")}
|
|
|
45527
45652
|
markerSubTypeForCheck.constraint = markerSuperTypeForCheck;
|
|
45528
45653
|
var noTypePredicate = createTypePredicate(1 /* Identifier */, "<<unresolved>>", 0, anyType);
|
|
45529
45654
|
var anySignature = createSignature(
|
|
45655
|
+
/*declaration*/
|
|
45530
45656
|
void 0,
|
|
45657
|
+
/*typeParameters*/
|
|
45531
45658
|
void 0,
|
|
45659
|
+
/*thisParameter*/
|
|
45532
45660
|
void 0,
|
|
45533
45661
|
emptyArray,
|
|
45534
45662
|
anyType,
|
|
@@ -45538,8 +45666,11 @@ ${lanes.join("\n")}
|
|
|
45538
45666
|
0 /* None */
|
|
45539
45667
|
);
|
|
45540
45668
|
var unknownSignature = createSignature(
|
|
45669
|
+
/*declaration*/
|
|
45541
45670
|
void 0,
|
|
45671
|
+
/*typeParameters*/
|
|
45542
45672
|
void 0,
|
|
45673
|
+
/*thisParameter*/
|
|
45543
45674
|
void 0,
|
|
45544
45675
|
emptyArray,
|
|
45545
45676
|
errorType,
|
|
@@ -45549,8 +45680,11 @@ ${lanes.join("\n")}
|
|
|
45549
45680
|
0 /* None */
|
|
45550
45681
|
);
|
|
45551
45682
|
var resolvingSignature = createSignature(
|
|
45683
|
+
/*declaration*/
|
|
45552
45684
|
void 0,
|
|
45685
|
+
/*typeParameters*/
|
|
45553
45686
|
void 0,
|
|
45687
|
+
/*thisParameter*/
|
|
45554
45688
|
void 0,
|
|
45555
45689
|
emptyArray,
|
|
45556
45690
|
anyType,
|
|
@@ -45560,8 +45694,11 @@ ${lanes.join("\n")}
|
|
|
45560
45694
|
0 /* None */
|
|
45561
45695
|
);
|
|
45562
45696
|
var silentNeverSignature = createSignature(
|
|
45697
|
+
/*declaration*/
|
|
45563
45698
|
void 0,
|
|
45699
|
+
/*typeParameters*/
|
|
45564
45700
|
void 0,
|
|
45701
|
+
/*thisParameter*/
|
|
45565
45702
|
void 0,
|
|
45566
45703
|
emptyArray,
|
|
45567
45704
|
silentNeverType,
|
|
@@ -46618,7 +46755,7 @@ ${lanes.join("\n")}
|
|
|
46618
46755
|
if (originalLocation && isInJSFile(originalLocation) && originalLocation.parent) {
|
|
46619
46756
|
if (isRequireCall(
|
|
46620
46757
|
originalLocation.parent,
|
|
46621
|
-
/*
|
|
46758
|
+
/*requireStringLiteralLikeArgument*/
|
|
46622
46759
|
false
|
|
46623
46760
|
)) {
|
|
46624
46761
|
return requireSymbol;
|
|
@@ -47239,7 +47376,7 @@ ${lanes.join("\n")}
|
|
|
47239
47376
|
node,
|
|
47240
47377
|
moduleSymbol,
|
|
47241
47378
|
resolved,
|
|
47242
|
-
/*
|
|
47379
|
+
/*overwriteEmpty*/
|
|
47243
47380
|
false
|
|
47244
47381
|
);
|
|
47245
47382
|
return resolved;
|
|
@@ -47249,7 +47386,7 @@ ${lanes.join("\n")}
|
|
|
47249
47386
|
exportDefaultSymbol,
|
|
47250
47387
|
/*finalTarget*/
|
|
47251
47388
|
void 0,
|
|
47252
|
-
/*
|
|
47389
|
+
/*overwriteEmpty*/
|
|
47253
47390
|
false
|
|
47254
47391
|
);
|
|
47255
47392
|
return exportDefaultSymbol;
|
|
@@ -47300,7 +47437,7 @@ ${lanes.join("\n")}
|
|
|
47300
47437
|
immediate,
|
|
47301
47438
|
moduleSpecifier,
|
|
47302
47439
|
dontResolveAlias,
|
|
47303
|
-
/*
|
|
47440
|
+
/*suppressInteropError*/
|
|
47304
47441
|
false
|
|
47305
47442
|
);
|
|
47306
47443
|
markSymbolOfAliasDeclarationIfTypeOnly(
|
|
@@ -47319,7 +47456,7 @@ ${lanes.join("\n")}
|
|
|
47319
47456
|
immediate,
|
|
47320
47457
|
moduleSpecifier,
|
|
47321
47458
|
dontResolveAlias,
|
|
47322
|
-
/*
|
|
47459
|
+
/*suppressInteropError*/
|
|
47323
47460
|
false
|
|
47324
47461
|
);
|
|
47325
47462
|
markSymbolOfAliasDeclarationIfTypeOnly(
|
|
@@ -47811,6 +47948,7 @@ ${lanes.join("\n")}
|
|
|
47811
47948
|
left,
|
|
47812
47949
|
left.escapedText,
|
|
47813
47950
|
111551 /* Value */,
|
|
47951
|
+
/*nameNotFoundMessage*/
|
|
47814
47952
|
void 0,
|
|
47815
47953
|
left,
|
|
47816
47954
|
/*isUse*/
|
|
@@ -47846,6 +47984,7 @@ ${lanes.join("\n")}
|
|
|
47846
47984
|
name,
|
|
47847
47985
|
/*isUse*/
|
|
47848
47986
|
true,
|
|
47987
|
+
/*excludeGlobals*/
|
|
47849
47988
|
false
|
|
47850
47989
|
));
|
|
47851
47990
|
if (!symbol) {
|
|
@@ -48550,7 +48689,7 @@ ${lanes.join("\n")}
|
|
|
48550
48689
|
container,
|
|
48551
48690
|
enclosingDeclaration,
|
|
48552
48691
|
1920 /* Namespace */,
|
|
48553
|
-
/*
|
|
48692
|
+
/*useOnlyExternalAliasing*/
|
|
48554
48693
|
false
|
|
48555
48694
|
)) {
|
|
48556
48695
|
return append(concatenate(concatenate([container], additionalContainers), reexportContainers), objectLiteralContainer);
|
|
@@ -48863,7 +49002,7 @@ ${lanes.join("\n")}
|
|
|
48863
49002
|
if (symbolFromSymbolTable.escapedName === symbol.escapedName && symbolFromSymbolTable.exportSymbol) {
|
|
48864
49003
|
if (isAccessible(
|
|
48865
49004
|
getMergedSymbol(symbolFromSymbolTable.exportSymbol),
|
|
48866
|
-
/*
|
|
49005
|
+
/*resolvedAliasSymbol*/
|
|
48867
49006
|
void 0,
|
|
48868
49007
|
ignoreQualification
|
|
48869
49008
|
)) {
|
|
@@ -49115,7 +49254,7 @@ ${lanes.join("\n")}
|
|
|
49115
49254
|
enclosingDeclaration,
|
|
49116
49255
|
firstIdentifier.escapedText,
|
|
49117
49256
|
meaning,
|
|
49118
|
-
/*
|
|
49257
|
+
/*nameNotFoundMessage*/
|
|
49119
49258
|
void 0,
|
|
49120
49259
|
/*nameArg*/
|
|
49121
49260
|
void 0,
|
|
@@ -49135,7 +49274,7 @@ ${lanes.join("\n")}
|
|
|
49135
49274
|
)),
|
|
49136
49275
|
firstIdentifier,
|
|
49137
49276
|
meaning,
|
|
49138
|
-
/*
|
|
49277
|
+
/*shouldComputeAliasesToMakeVisible*/
|
|
49139
49278
|
false
|
|
49140
49279
|
).accessibility === 0 /* Accessible */) {
|
|
49141
49280
|
return { accessibility: 0 /* Accessible */ };
|
|
@@ -49694,7 +49833,7 @@ ${lanes.join("\n")}
|
|
|
49694
49833
|
symbol,
|
|
49695
49834
|
context.enclosingDeclaration,
|
|
49696
49835
|
isInstanceType,
|
|
49697
|
-
/*
|
|
49836
|
+
/*shouldComputeAliasesToMakeVisible*/
|
|
49698
49837
|
false
|
|
49699
49838
|
).accessibility !== 0 /* Accessible */)) || symbol.flags & (384 /* Enum */ | 512 /* ValueModule */) || shouldWriteTypeOfFunctionSymbol()) {
|
|
49700
49839
|
return symbolToTypeNode(symbol, context, isInstanceType);
|
|
@@ -49790,7 +49929,7 @@ ${lanes.join("\n")}
|
|
|
49790
49929
|
function deepCloneOrReuseNodes(nodes, visitor, test, start, count) {
|
|
49791
49930
|
if (nodes && nodes.length === 0) {
|
|
49792
49931
|
return setTextRange(factory.createNodeArray(
|
|
49793
|
-
/*
|
|
49932
|
+
/*elements*/
|
|
49794
49933
|
void 0,
|
|
49795
49934
|
nodes.hasTrailingComma
|
|
49796
49935
|
), nodes);
|
|
@@ -50378,12 +50517,12 @@ ${lanes.join("\n")}
|
|
|
50378
50517
|
const thisTag = getJSDocThisTag(signature.declaration);
|
|
50379
50518
|
if (thisTag && thisTag.typeExpression) {
|
|
50380
50519
|
return factory.createParameterDeclaration(
|
|
50381
|
-
/*
|
|
50520
|
+
/*modifiers*/
|
|
50382
50521
|
void 0,
|
|
50383
|
-
/*
|
|
50522
|
+
/*dotDotDotToken*/
|
|
50384
50523
|
void 0,
|
|
50385
50524
|
"this",
|
|
50386
|
-
/*
|
|
50525
|
+
/*questionToken*/
|
|
50387
50526
|
void 0,
|
|
50388
50527
|
typeToTypeNodeHelper(getTypeFromTypeNode(thisTag.typeExpression), context)
|
|
50389
50528
|
);
|
|
@@ -50470,7 +50609,7 @@ ${lanes.join("\n")}
|
|
|
50470
50609
|
firstIdentifier,
|
|
50471
50610
|
firstIdentifier.escapedText,
|
|
50472
50611
|
111551 /* Value */ | 1048576 /* ExportValue */,
|
|
50473
|
-
/*
|
|
50612
|
+
/*nameNotFoundMessage*/
|
|
50474
50613
|
void 0,
|
|
50475
50614
|
/*nameArg*/
|
|
50476
50615
|
void 0,
|
|
@@ -50803,7 +50942,7 @@ ${lanes.join("\n")}
|
|
|
50803
50942
|
context.enclosingDeclaration,
|
|
50804
50943
|
escapedName,
|
|
50805
50944
|
788968 /* Type */,
|
|
50806
|
-
/*
|
|
50945
|
+
/*nameNotFoundMessage*/
|
|
50807
50946
|
void 0,
|
|
50808
50947
|
escapedName,
|
|
50809
50948
|
/*isUse*/
|
|
@@ -51045,7 +51184,7 @@ ${lanes.join("\n")}
|
|
|
51045
51184
|
67108863 /* All */,
|
|
51046
51185
|
/*ignoreErrors*/
|
|
51047
51186
|
true,
|
|
51048
|
-
/*
|
|
51187
|
+
/*dontResolveAlias*/
|
|
51049
51188
|
true
|
|
51050
51189
|
);
|
|
51051
51190
|
if (sym) {
|
|
@@ -51124,7 +51263,7 @@ ${lanes.join("\n")}
|
|
|
51124
51263
|
[factory.createParameterDeclaration(
|
|
51125
51264
|
/*modifiers*/
|
|
51126
51265
|
void 0,
|
|
51127
|
-
/*
|
|
51266
|
+
/*dotDotDotToken*/
|
|
51128
51267
|
void 0,
|
|
51129
51268
|
"x",
|
|
51130
51269
|
/*questionToken*/
|
|
@@ -51247,13 +51386,13 @@ ${lanes.join("\n")}
|
|
|
51247
51386
|
const serializePropertySymbolForClass = makeSerializePropertySymbol(
|
|
51248
51387
|
factory.createPropertyDeclaration,
|
|
51249
51388
|
172 /* MethodDeclaration */,
|
|
51250
|
-
/*
|
|
51389
|
+
/*useAccessors*/
|
|
51251
51390
|
true
|
|
51252
51391
|
);
|
|
51253
51392
|
const serializePropertySymbolForInterfaceWorker = makeSerializePropertySymbol(
|
|
51254
51393
|
(mods, name, question, type) => factory.createPropertySignature(mods, name, question, type),
|
|
51255
51394
|
171 /* MethodSignature */,
|
|
51256
|
-
/*
|
|
51395
|
+
/*useAccessors*/
|
|
51257
51396
|
false
|
|
51258
51397
|
);
|
|
51259
51398
|
const enclosingDeclaration = context.enclosingDeclaration;
|
|
@@ -51275,7 +51414,7 @@ ${lanes.join("\n")}
|
|
|
51275
51414
|
sym,
|
|
51276
51415
|
decl,
|
|
51277
51416
|
meaning,
|
|
51278
|
-
/*
|
|
51417
|
+
/*shouldComputeAliasesToMakeVisible*/
|
|
51279
51418
|
false
|
|
51280
51419
|
);
|
|
51281
51420
|
if (accessibleResult.accessibility === 0 /* Accessible */) {
|
|
@@ -51334,7 +51473,7 @@ ${lanes.join("\n")}
|
|
|
51334
51473
|
factory.createNamedExports(map(flatMap(excessExports, (e) => getNamesOfDeclaration(e)), (id) => factory.createExportSpecifier(
|
|
51335
51474
|
/*isTypeOnly*/
|
|
51336
51475
|
false,
|
|
51337
|
-
/*
|
|
51476
|
+
/*propertyName*/
|
|
51338
51477
|
void 0,
|
|
51339
51478
|
id
|
|
51340
51479
|
))),
|
|
@@ -51627,7 +51766,7 @@ ${lanes.join("\n")}
|
|
|
51627
51766
|
addResult(factory.createExportAssignment(
|
|
51628
51767
|
/*modifiers*/
|
|
51629
51768
|
void 0,
|
|
51630
|
-
/*
|
|
51769
|
+
/*isExportEquals*/
|
|
51631
51770
|
false,
|
|
51632
51771
|
factory.createIdentifier(getInternalSymbolName(symbol, symbolName2))
|
|
51633
51772
|
), 0 /* None */);
|
|
@@ -52050,7 +52189,7 @@ ${lanes.join("\n")}
|
|
|
52050
52189
|
)])
|
|
52051
52190
|
),
|
|
52052
52191
|
factory.createStringLiteral(specifier2),
|
|
52053
|
-
/*
|
|
52192
|
+
/*assertClause*/
|
|
52054
52193
|
void 0
|
|
52055
52194
|
), 0 /* None */);
|
|
52056
52195
|
break;
|
|
@@ -52139,7 +52278,7 @@ ${lanes.join("\n")}
|
|
|
52139
52278
|
factory.createImportClause(
|
|
52140
52279
|
/*isTypeOnly*/
|
|
52141
52280
|
false,
|
|
52142
|
-
/*
|
|
52281
|
+
/*name*/
|
|
52143
52282
|
void 0,
|
|
52144
52283
|
factory.createNamespaceImport(factory.createIdentifier(localName))
|
|
52145
52284
|
),
|
|
@@ -52167,7 +52306,7 @@ ${lanes.join("\n")}
|
|
|
52167
52306
|
factory.createImportClause(
|
|
52168
52307
|
/*isTypeOnly*/
|
|
52169
52308
|
false,
|
|
52170
|
-
/*
|
|
52309
|
+
/*name*/
|
|
52171
52310
|
void 0,
|
|
52172
52311
|
factory.createNamedImports([
|
|
52173
52312
|
factory.createImportSpecifier(
|
|
@@ -52528,7 +52667,7 @@ ${lanes.join("\n")}
|
|
|
52528
52667
|
addResult(statement, 0 /* None */);
|
|
52529
52668
|
return factory.createExpressionWithTypeArguments(
|
|
52530
52669
|
factory.createIdentifier(tempName),
|
|
52531
|
-
/*
|
|
52670
|
+
/*typeArguments*/
|
|
52532
52671
|
void 0
|
|
52533
52672
|
);
|
|
52534
52673
|
}
|
|
@@ -52553,7 +52692,7 @@ ${lanes.join("\n")}
|
|
|
52553
52692
|
if (t.symbol) {
|
|
52554
52693
|
return factory.createExpressionWithTypeArguments(
|
|
52555
52694
|
symbolToExpression(t.symbol, context, 788968 /* Type */),
|
|
52556
|
-
/*
|
|
52695
|
+
/*typeArguments*/
|
|
52557
52696
|
void 0
|
|
52558
52697
|
);
|
|
52559
52698
|
}
|
|
@@ -52859,7 +52998,9 @@ ${lanes.join("\n")}
|
|
|
52859
52998
|
declaration,
|
|
52860
52999
|
firstIdentifier.escapedText,
|
|
52861
53000
|
111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */,
|
|
53001
|
+
/*nameNotFoundMessage*/
|
|
52862
53002
|
void 0,
|
|
53003
|
+
/*nameArg*/
|
|
52863
53004
|
void 0,
|
|
52864
53005
|
/*isUse*/
|
|
52865
53006
|
false
|
|
@@ -53644,7 +53785,14 @@ ${lanes.join("\n")}
|
|
|
53644
53785
|
symbol.links.bindingElement = e;
|
|
53645
53786
|
members.set(symbol.escapedName, symbol);
|
|
53646
53787
|
});
|
|
53647
|
-
const result = createAnonymousType(
|
|
53788
|
+
const result = createAnonymousType(
|
|
53789
|
+
/*symbol*/
|
|
53790
|
+
void 0,
|
|
53791
|
+
members,
|
|
53792
|
+
emptyArray,
|
|
53793
|
+
emptyArray,
|
|
53794
|
+
stringIndexInfo ? [stringIndexInfo] : emptyArray
|
|
53795
|
+
);
|
|
53648
53796
|
result.objectFlags |= objectFlags;
|
|
53649
53797
|
if (includePatternInType) {
|
|
53650
53798
|
result.pattern = pattern;
|
|
@@ -53806,7 +53954,7 @@ ${lanes.join("\n")}
|
|
|
53806
53954
|
} else if (isParameter(declaration) || isPropertyDeclaration(declaration) || isPropertySignature(declaration) || isVariableDeclaration(declaration) || isBindingElement(declaration) || isJSDocPropertyLikeTag(declaration)) {
|
|
53807
53955
|
type = getWidenedTypeForVariableLikeDeclaration(
|
|
53808
53956
|
declaration,
|
|
53809
|
-
/*
|
|
53957
|
+
/*reportErrors*/
|
|
53810
53958
|
true
|
|
53811
53959
|
);
|
|
53812
53960
|
} else if (isEnumDeclaration(declaration)) {
|
|
@@ -53863,7 +54011,7 @@ ${lanes.join("\n")}
|
|
|
53863
54011
|
const accessor = tryCast(getDeclarationOfKind(symbol, 170 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration);
|
|
53864
54012
|
let type = getter && isInJSFile(getter) && getTypeForDeclarationFromJSDocComment(getter) || getAnnotatedAccessorType(getter) || getAnnotatedAccessorType(setter) || getAnnotatedAccessorType(accessor) || getter && getter.body && getReturnTypeFromBody(getter) || accessor && accessor.initializer && getWidenedTypeForVariableLikeDeclaration(
|
|
53865
54013
|
accessor,
|
|
53866
|
-
/*
|
|
54014
|
+
/*reportErrors*/
|
|
53867
54015
|
true
|
|
53868
54016
|
);
|
|
53869
54017
|
if (!type) {
|
|
@@ -53977,7 +54125,7 @@ ${lanes.join("\n")}
|
|
|
53977
54125
|
const targetSymbol = resolveAlias(symbol);
|
|
53978
54126
|
const exportSymbol = symbol.declarations && getTargetOfAliasDeclaration(
|
|
53979
54127
|
getDeclarationOfAliasSymbol(symbol),
|
|
53980
|
-
/*
|
|
54128
|
+
/*dontRecursivelyResolve*/
|
|
53981
54129
|
true
|
|
53982
54130
|
);
|
|
53983
54131
|
const declaredType = firstDefined(exportSymbol == null ? void 0 : exportSymbol.declarations, (d) => isExportAssignment(d) ? tryGetTypeFromEffectiveTypeNode(d) : void 0);
|
|
@@ -55008,8 +55156,10 @@ ${lanes.join("\n")}
|
|
|
55008
55156
|
const isAbstract = !!declaration && hasSyntacticModifier(declaration, 256 /* Abstract */);
|
|
55009
55157
|
if (baseSignatures.length === 0) {
|
|
55010
55158
|
return [createSignature(
|
|
55159
|
+
/*declaration*/
|
|
55011
55160
|
void 0,
|
|
55012
55161
|
classType.localTypeParameters,
|
|
55162
|
+
/*thisParameter*/
|
|
55013
55163
|
void 0,
|
|
55014
55164
|
emptyArray,
|
|
55015
55165
|
classType,
|
|
@@ -55999,7 +56149,7 @@ ${lanes.join("\n")}
|
|
|
55999
56149
|
return type.resolvedApparentType || (type.resolvedApparentType = getTypeWithThisArgument(
|
|
56000
56150
|
type,
|
|
56001
56151
|
type,
|
|
56002
|
-
/*
|
|
56152
|
+
/*needApparentType*/
|
|
56003
56153
|
true
|
|
56004
56154
|
));
|
|
56005
56155
|
}
|
|
@@ -56496,7 +56646,9 @@ ${lanes.join("\n")}
|
|
|
56496
56646
|
param,
|
|
56497
56647
|
paramSymbol.escapedName,
|
|
56498
56648
|
111551 /* Value */,
|
|
56649
|
+
/*nameNotFoundMessage*/
|
|
56499
56650
|
void 0,
|
|
56651
|
+
/*nameArg*/
|
|
56500
56652
|
void 0,
|
|
56501
56653
|
/*isUse*/
|
|
56502
56654
|
false
|
|
@@ -57393,7 +57545,14 @@ ${lanes.join("\n")}
|
|
|
57393
57545
|
/*isReadonly*/
|
|
57394
57546
|
false
|
|
57395
57547
|
)] : emptyArray;
|
|
57396
|
-
return createAnonymousType(
|
|
57548
|
+
return createAnonymousType(
|
|
57549
|
+
/*symbol*/
|
|
57550
|
+
void 0,
|
|
57551
|
+
emptySymbols,
|
|
57552
|
+
emptyArray,
|
|
57553
|
+
emptyArray,
|
|
57554
|
+
indexInfo
|
|
57555
|
+
);
|
|
57397
57556
|
}
|
|
57398
57557
|
return anyType;
|
|
57399
57558
|
}
|
|
@@ -57501,6 +57660,7 @@ ${lanes.join("\n")}
|
|
|
57501
57660
|
}
|
|
57502
57661
|
function getGlobalSymbol(name, meaning, diagnostic) {
|
|
57503
57662
|
return resolveName(
|
|
57663
|
+
/*location*/
|
|
57504
57664
|
void 0,
|
|
57505
57665
|
name,
|
|
57506
57666
|
meaning,
|
|
@@ -59060,7 +59220,7 @@ ${lanes.join("\n")}
|
|
|
59060
59220
|
let errorInfo;
|
|
59061
59221
|
if (indexType.flags & 1024 /* EnumLiteral */) {
|
|
59062
59222
|
errorInfo = chainDiagnosticMessages(
|
|
59063
|
-
/*
|
|
59223
|
+
/*details*/
|
|
59064
59224
|
void 0,
|
|
59065
59225
|
Diagnostics.Property_0_does_not_exist_on_type_1,
|
|
59066
59226
|
"[" + typeToString(indexType) + "]",
|
|
@@ -59069,7 +59229,7 @@ ${lanes.join("\n")}
|
|
|
59069
59229
|
} else if (indexType.flags & 8192 /* UniqueESSymbol */) {
|
|
59070
59230
|
const symbolName2 = getFullyQualifiedName(indexType.symbol, accessExpression);
|
|
59071
59231
|
errorInfo = chainDiagnosticMessages(
|
|
59072
|
-
/*
|
|
59232
|
+
/*details*/
|
|
59073
59233
|
void 0,
|
|
59074
59234
|
Diagnostics.Property_0_does_not_exist_on_type_1,
|
|
59075
59235
|
"[" + symbolName2 + "]",
|
|
@@ -59077,7 +59237,7 @@ ${lanes.join("\n")}
|
|
|
59077
59237
|
);
|
|
59078
59238
|
} else if (indexType.flags & 128 /* StringLiteral */) {
|
|
59079
59239
|
errorInfo = chainDiagnosticMessages(
|
|
59080
|
-
/*
|
|
59240
|
+
/*details*/
|
|
59081
59241
|
void 0,
|
|
59082
59242
|
Diagnostics.Property_0_does_not_exist_on_type_1,
|
|
59083
59243
|
indexType.value,
|
|
@@ -59085,7 +59245,7 @@ ${lanes.join("\n")}
|
|
|
59085
59245
|
);
|
|
59086
59246
|
} else if (indexType.flags & 256 /* NumberLiteral */) {
|
|
59087
59247
|
errorInfo = chainDiagnosticMessages(
|
|
59088
|
-
/*
|
|
59248
|
+
/*details*/
|
|
59089
59249
|
void 0,
|
|
59090
59250
|
Diagnostics.Property_0_does_not_exist_on_type_1,
|
|
59091
59251
|
indexType.value,
|
|
@@ -59093,7 +59253,7 @@ ${lanes.join("\n")}
|
|
|
59093
59253
|
);
|
|
59094
59254
|
} else if (indexType.flags & (8 /* Number */ | 4 /* String */)) {
|
|
59095
59255
|
errorInfo = chainDiagnosticMessages(
|
|
59096
|
-
/*
|
|
59256
|
+
/*details*/
|
|
59097
59257
|
void 0,
|
|
59098
59258
|
Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,
|
|
59099
59259
|
typeToString(indexType),
|
|
@@ -60713,7 +60873,7 @@ ${lanes.join("\n")}
|
|
|
60713
60873
|
targetReturn,
|
|
60714
60874
|
relation,
|
|
60715
60875
|
returnExpression,
|
|
60716
|
-
/*
|
|
60876
|
+
/*headMessage*/
|
|
60717
60877
|
void 0,
|
|
60718
60878
|
containingMessageChain,
|
|
60719
60879
|
resultObj
|
|
@@ -61037,7 +61197,7 @@ ${lanes.join("\n")}
|
|
|
61037
61197
|
const childrenTargetType = getIndexedAccessType(target, getStringLiteralType(childrenPropName));
|
|
61038
61198
|
const diagnostic = Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;
|
|
61039
61199
|
invalidTextDiagnostic = { ...diagnostic, key: "!!ALREADY FORMATTED!!", message: formatMessage(
|
|
61040
|
-
/*
|
|
61200
|
+
/*dummy*/
|
|
61041
61201
|
void 0,
|
|
61042
61202
|
diagnostic,
|
|
61043
61203
|
tagNameText,
|
|
@@ -61128,7 +61288,7 @@ ${lanes.join("\n")}
|
|
|
61128
61288
|
false,
|
|
61129
61289
|
/*errorReporter*/
|
|
61130
61290
|
void 0,
|
|
61131
|
-
/*
|
|
61291
|
+
/*incompatibleErrorReporter*/
|
|
61132
61292
|
void 0,
|
|
61133
61293
|
compareTypesAssignable,
|
|
61134
61294
|
/*reportUnreliableMarkers*/
|
|
@@ -61202,12 +61362,7 @@ ${lanes.join("\n")}
|
|
|
61202
61362
|
const paramCount = sourceRestType || targetRestType ? Math.min(sourceCount, targetCount) : Math.max(sourceCount, targetCount);
|
|
61203
61363
|
const restIndex = sourceRestType || targetRestType ? paramCount - 1 : -1;
|
|
61204
61364
|
for (let i = 0; i < paramCount; i++) {
|
|
61205
|
-
const sourceType = i === restIndex ? getRestTypeAtPosition(
|
|
61206
|
-
source,
|
|
61207
|
-
i,
|
|
61208
|
-
/*readonly*/
|
|
61209
|
-
true
|
|
61210
|
-
) : tryGetTypeAtPosition(source, i);
|
|
61365
|
+
const sourceType = i === restIndex ? getRestTypeAtPosition(source, i) : tryGetTypeAtPosition(source, i);
|
|
61211
61366
|
const targetType = i === restIndex ? getRestTypeAtPosition(target, i) : tryGetTypeAtPosition(target, i);
|
|
61212
61367
|
if (sourceType && targetType) {
|
|
61213
61368
|
const sourceSig = checkMode & 3 /* Callback */ ? void 0 : getSingleCallSignature(getNonNullableType(sourceType));
|
|
@@ -61600,7 +61755,7 @@ ${lanes.join("\n")}
|
|
|
61600
61755
|
reportError(...stack[0]);
|
|
61601
61756
|
if (info) {
|
|
61602
61757
|
reportRelationError(
|
|
61603
|
-
/*
|
|
61758
|
+
/*message*/
|
|
61604
61759
|
void 0,
|
|
61605
61760
|
...info
|
|
61606
61761
|
);
|
|
@@ -61675,7 +61830,7 @@ ${lanes.join("\n")}
|
|
|
61675
61830
|
}
|
|
61676
61831
|
if (info) {
|
|
61677
61832
|
reportRelationError(
|
|
61678
|
-
/*
|
|
61833
|
+
/*message*/
|
|
61679
61834
|
void 0,
|
|
61680
61835
|
...info
|
|
61681
61836
|
);
|
|
@@ -62117,7 +62272,7 @@ ${lanes.join("\n")}
|
|
|
62117
62272
|
if (containsType(targetTypes, source2)) {
|
|
62118
62273
|
return -1 /* True */;
|
|
62119
62274
|
}
|
|
62120
|
-
if (getObjectFlags(target2) & 32768 /* PrimitiveUnion */ && !(source2.flags & 1024 /* EnumLiteral */) && (source2.flags & (128 /* StringLiteral */ | 512 /* BooleanLiteral */ | 2048 /* BigIntLiteral */) || (relation === subtypeRelation || relation === strictSubtypeRelation) && source2.flags & 256 /* NumberLiteral */)) {
|
|
62275
|
+
if (relation !== comparableRelation && getObjectFlags(target2) & 32768 /* PrimitiveUnion */ && !(source2.flags & 1024 /* EnumLiteral */) && (source2.flags & (128 /* StringLiteral */ | 512 /* BooleanLiteral */ | 2048 /* BigIntLiteral */) || (relation === subtypeRelation || relation === strictSubtypeRelation) && source2.flags & 256 /* NumberLiteral */)) {
|
|
62121
62276
|
const alternateForm = source2 === source2.regularType ? source2.freshType : source2.regularType;
|
|
62122
62277
|
const primitive = source2.flags & 128 /* StringLiteral */ ? stringType : source2.flags & 256 /* NumberLiteral */ ? numberType : source2.flags & 2048 /* BigIntLiteral */ ? bigintType : void 0;
|
|
62123
62278
|
return primitive && containsType(targetTypes, primitive) || alternateForm && containsType(targetTypes, alternateForm) ? -1 /* True */ : 0 /* False */;
|
|
@@ -62348,7 +62503,7 @@ ${lanes.join("\n")}
|
|
|
62348
62503
|
target2,
|
|
62349
62504
|
intersectionState,
|
|
62350
62505
|
relation,
|
|
62351
|
-
/*
|
|
62506
|
+
/*ignoreConstraints*/
|
|
62352
62507
|
false
|
|
62353
62508
|
);
|
|
62354
62509
|
const entry = relation.get(id);
|
|
@@ -62744,7 +62899,7 @@ ${lanes.join("\n")}
|
|
|
62744
62899
|
constraint,
|
|
62745
62900
|
2 /* Target */,
|
|
62746
62901
|
reportErrors2,
|
|
62747
|
-
/*
|
|
62902
|
+
/*headMessage*/
|
|
62748
62903
|
void 0,
|
|
62749
62904
|
intersectionState
|
|
62750
62905
|
)) {
|
|
@@ -63156,7 +63311,7 @@ ${lanes.join("\n")}
|
|
|
63156
63311
|
source2,
|
|
63157
63312
|
type,
|
|
63158
63313
|
0 /* Call */,
|
|
63159
|
-
/*
|
|
63314
|
+
/*reportErrors*/
|
|
63160
63315
|
false,
|
|
63161
63316
|
0 /* None */
|
|
63162
63317
|
);
|
|
@@ -63165,7 +63320,7 @@ ${lanes.join("\n")}
|
|
|
63165
63320
|
source2,
|
|
63166
63321
|
type,
|
|
63167
63322
|
1 /* Construct */,
|
|
63168
|
-
/*
|
|
63323
|
+
/*reportErrors*/
|
|
63169
63324
|
false,
|
|
63170
63325
|
0 /* None */
|
|
63171
63326
|
);
|
|
@@ -63175,7 +63330,7 @@ ${lanes.join("\n")}
|
|
|
63175
63330
|
type,
|
|
63176
63331
|
/*sourceIsPrimitive*/
|
|
63177
63332
|
false,
|
|
63178
|
-
/*
|
|
63333
|
+
/*reportErrors*/
|
|
63179
63334
|
false,
|
|
63180
63335
|
0 /* None */
|
|
63181
63336
|
);
|
|
@@ -63761,7 +63916,7 @@ ${lanes.join("\n")}
|
|
|
63761
63916
|
const targetHasStringIndex = some(indexInfos, (info) => info.keyType === stringType);
|
|
63762
63917
|
let result2 = -1 /* True */;
|
|
63763
63918
|
for (const targetInfo of indexInfos) {
|
|
63764
|
-
const related = !sourceIsPrimitive && targetHasStringIndex && targetInfo.type.flags & 1 /* Any */ ? -1 /* True */ : isGenericMappedType(source2) && targetHasStringIndex ? isRelatedTo(getTemplateTypeFromMappedType(source2), targetInfo.type, 3 /* Both */, reportErrors2) : typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState);
|
|
63919
|
+
const related = relation !== strictSubtypeRelation && !sourceIsPrimitive && targetHasStringIndex && targetInfo.type.flags & 1 /* Any */ ? -1 /* True */ : isGenericMappedType(source2) && targetHasStringIndex ? isRelatedTo(getTemplateTypeFromMappedType(source2), targetInfo.type, 3 /* Both */, reportErrors2) : typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState);
|
|
63765
63920
|
if (!related) {
|
|
63766
63921
|
return 0 /* False */;
|
|
63767
63922
|
}
|
|
@@ -64665,6 +64820,7 @@ ${lanes.join("\n")}
|
|
|
64665
64820
|
param,
|
|
64666
64821
|
param.name.escapedText,
|
|
64667
64822
|
788968 /* Type */,
|
|
64823
|
+
/*nameNotFoundMessage*/
|
|
64668
64824
|
void 0,
|
|
64669
64825
|
param.name.escapedText,
|
|
64670
64826
|
/*isUse*/
|
|
@@ -64892,7 +65048,14 @@ ${lanes.join("\n")}
|
|
|
64892
65048
|
/*isReadonly*/
|
|
64893
65049
|
false
|
|
64894
65050
|
)] : emptyArray;
|
|
64895
|
-
return createAnonymousType(
|
|
65051
|
+
return createAnonymousType(
|
|
65052
|
+
/*symbol*/
|
|
65053
|
+
void 0,
|
|
65054
|
+
members,
|
|
65055
|
+
emptyArray,
|
|
65056
|
+
emptyArray,
|
|
65057
|
+
indexInfos
|
|
65058
|
+
);
|
|
64896
65059
|
}
|
|
64897
65060
|
function inferTypeForHomomorphicMappedType(source, target, constraint) {
|
|
64898
65061
|
if (inInferTypeForHomomorphicMappedType) {
|
|
@@ -66388,7 +66551,7 @@ ${lanes.join("\n")}
|
|
|
66388
66551
|
return source.flags & 1048576 /* Union */ ? !forEach(source.types, (t) => !contains(types, t)) : contains(types, source);
|
|
66389
66552
|
}
|
|
66390
66553
|
function isTypeSubsetOf(source, target) {
|
|
66391
|
-
return source === target || target.flags & 1048576 /* Union */ && isTypeSubsetOfUnion(source, target);
|
|
66554
|
+
return !!(source === target || source.flags & 131072 /* Never */ || target.flags & 1048576 /* Union */ && isTypeSubsetOfUnion(source, target));
|
|
66392
66555
|
}
|
|
66393
66556
|
function isTypeSubsetOfUnion(source, target) {
|
|
66394
66557
|
if (source.flags & 1048576 /* Union */) {
|
|
@@ -67088,7 +67251,7 @@ ${lanes.join("\n")}
|
|
|
67088
67251
|
return type;
|
|
67089
67252
|
}
|
|
67090
67253
|
pushIfUnique(antecedentTypes, type);
|
|
67091
|
-
if (!isTypeSubsetOf(type,
|
|
67254
|
+
if (!isTypeSubsetOf(type, initialType)) {
|
|
67092
67255
|
subtypeReduction = true;
|
|
67093
67256
|
}
|
|
67094
67257
|
if (isIncomplete(flowType)) {
|
|
@@ -67103,7 +67266,7 @@ ${lanes.join("\n")}
|
|
|
67103
67266
|
return type;
|
|
67104
67267
|
}
|
|
67105
67268
|
antecedentTypes.push(type);
|
|
67106
|
-
if (!isTypeSubsetOf(type,
|
|
67269
|
+
if (!isTypeSubsetOf(type, initialType)) {
|
|
67107
67270
|
subtypeReduction = true;
|
|
67108
67271
|
}
|
|
67109
67272
|
if (isIncomplete(flowType)) {
|
|
@@ -67157,7 +67320,7 @@ ${lanes.join("\n")}
|
|
|
67157
67320
|
}
|
|
67158
67321
|
const type = getTypeFromFlowType(flowType);
|
|
67159
67322
|
pushIfUnique(antecedentTypes, type);
|
|
67160
|
-
if (!isTypeSubsetOf(type,
|
|
67323
|
+
if (!isTypeSubsetOf(type, initialType)) {
|
|
67161
67324
|
subtypeReduction = true;
|
|
67162
67325
|
}
|
|
67163
67326
|
if (type === declaredType) {
|
|
@@ -68237,7 +68400,7 @@ ${lanes.join("\n")}
|
|
|
68237
68400
|
const isNodeInTypeQuery = isInTypeQuery(node);
|
|
68238
68401
|
let container = getThisContainer(
|
|
68239
68402
|
node,
|
|
68240
|
-
/*
|
|
68403
|
+
/*includeArrowFunctions*/
|
|
68241
68404
|
true,
|
|
68242
68405
|
/*includeClassComputedPropertyName*/
|
|
68243
68406
|
true
|
|
@@ -68251,7 +68414,7 @@ ${lanes.join("\n")}
|
|
|
68251
68414
|
if (container.kind === 217 /* ArrowFunction */) {
|
|
68252
68415
|
container = getThisContainer(
|
|
68253
68416
|
container,
|
|
68254
|
-
/*
|
|
68417
|
+
/*includeArrowFunctions*/
|
|
68255
68418
|
false,
|
|
68256
68419
|
!thisInComputedPropertyName
|
|
68257
68420
|
);
|
|
@@ -68864,6 +69027,7 @@ ${lanes.join("\n")}
|
|
|
68864
69027
|
id,
|
|
68865
69028
|
id.escapedText,
|
|
68866
69029
|
111551 /* Value */,
|
|
69030
|
+
/*nameNotFoundMessage*/
|
|
68867
69031
|
void 0,
|
|
68868
69032
|
id.escapedText,
|
|
68869
69033
|
/*isUse*/
|
|
@@ -68913,7 +69077,9 @@ ${lanes.join("\n")}
|
|
|
68913
69077
|
declaration.left,
|
|
68914
69078
|
name,
|
|
68915
69079
|
111551 /* Value */,
|
|
69080
|
+
/*nameNotFoundMessage*/
|
|
68916
69081
|
void 0,
|
|
69082
|
+
/*nameArg*/
|
|
68917
69083
|
void 0,
|
|
68918
69084
|
/*isUse*/
|
|
68919
69085
|
true,
|
|
@@ -70266,7 +70432,7 @@ ${lanes.join("\n")}
|
|
|
70266
70432
|
location,
|
|
70267
70433
|
namespaceName,
|
|
70268
70434
|
1920 /* Namespace */,
|
|
70269
|
-
/*
|
|
70435
|
+
/*nameNotFoundMessage*/
|
|
70270
70436
|
void 0,
|
|
70271
70437
|
namespaceName,
|
|
70272
70438
|
/*isUse*/
|
|
@@ -70289,7 +70455,7 @@ ${lanes.join("\n")}
|
|
|
70289
70455
|
const s = resolveSymbol(getGlobalSymbol(
|
|
70290
70456
|
JsxNames.JSX,
|
|
70291
70457
|
1920 /* Namespace */,
|
|
70292
|
-
/*
|
|
70458
|
+
/*diagnostic*/
|
|
70293
70459
|
void 0
|
|
70294
70460
|
));
|
|
70295
70461
|
if (s === unknownSymbol) {
|
|
@@ -70383,7 +70549,7 @@ ${lanes.join("\n")}
|
|
|
70383
70549
|
function generateInitialErrorChain() {
|
|
70384
70550
|
const componentName = getTextOfNode(openingLikeElement.tagName);
|
|
70385
70551
|
return chainDiagnosticMessages(
|
|
70386
|
-
/*
|
|
70552
|
+
/*details*/
|
|
70387
70553
|
void 0,
|
|
70388
70554
|
Diagnostics._0_cannot_be_used_as_a_JSX_component,
|
|
70389
70555
|
componentName
|
|
@@ -70641,7 +70807,7 @@ ${lanes.join("\n")}
|
|
|
70641
70807
|
function getThisParameterFromNodeContext(node) {
|
|
70642
70808
|
const thisContainer = getThisContainer(
|
|
70643
70809
|
node,
|
|
70644
|
-
/*
|
|
70810
|
+
/*includeArrowFunctions*/
|
|
70645
70811
|
false,
|
|
70646
70812
|
/*includeClassComputedPropertyName*/
|
|
70647
70813
|
false
|
|
@@ -70779,9 +70945,9 @@ ${lanes.join("\n")}
|
|
|
70779
70945
|
if (symbol) {
|
|
70780
70946
|
markPropertyAsReferenced(
|
|
70781
70947
|
symbol,
|
|
70782
|
-
/*
|
|
70948
|
+
/*nodeForCheckWriteOnly*/
|
|
70783
70949
|
void 0,
|
|
70784
|
-
/*
|
|
70950
|
+
/*isSelfTypeAccess*/
|
|
70785
70951
|
false
|
|
70786
70952
|
);
|
|
70787
70953
|
}
|
|
@@ -71322,7 +71488,7 @@ ${lanes.join("\n")}
|
|
|
71322
71488
|
return isPropertyAccessible(
|
|
71323
71489
|
node,
|
|
71324
71490
|
node.kind === 209 /* PropertyAccessExpression */ && node.expression.kind === 107 /* SuperKeyword */,
|
|
71325
|
-
/*
|
|
71491
|
+
/*isWrite*/
|
|
71326
71492
|
false,
|
|
71327
71493
|
type,
|
|
71328
71494
|
property
|
|
@@ -71336,7 +71502,7 @@ ${lanes.join("\n")}
|
|
|
71336
71502
|
return !!prop && isPropertyAccessible(
|
|
71337
71503
|
node,
|
|
71338
71504
|
isSuper,
|
|
71339
|
-
/*
|
|
71505
|
+
/*isWrite*/
|
|
71340
71506
|
false,
|
|
71341
71507
|
type,
|
|
71342
71508
|
prop
|
|
@@ -72049,7 +72215,17 @@ ${lanes.join("\n")}
|
|
|
72049
72215
|
function isPromiseResolveArityError(node) {
|
|
72050
72216
|
if (!isCallExpression(node) || !isIdentifier(node.expression))
|
|
72051
72217
|
return false;
|
|
72052
|
-
const symbol = resolveName(
|
|
72218
|
+
const symbol = resolveName(
|
|
72219
|
+
node.expression,
|
|
72220
|
+
node.expression.escapedText,
|
|
72221
|
+
111551 /* Value */,
|
|
72222
|
+
/*nameNotFoundMessage*/
|
|
72223
|
+
void 0,
|
|
72224
|
+
/*nameArg*/
|
|
72225
|
+
void 0,
|
|
72226
|
+
/*isUse*/
|
|
72227
|
+
false
|
|
72228
|
+
);
|
|
72053
72229
|
const decl = symbol == null ? void 0 : symbol.valueDeclaration;
|
|
72054
72230
|
if (!decl || !isParameter(decl) || !isFunctionExpressionOrArrowFunction(decl.parent) || !isNewExpression(decl.parent.parent) || !isIdentifier(decl.parent.parent.expression)) {
|
|
72055
72231
|
return false;
|
|
@@ -72528,7 +72704,7 @@ ${lanes.join("\n")}
|
|
|
72528
72704
|
parameters,
|
|
72529
72705
|
/*resolvedReturnType*/
|
|
72530
72706
|
getIntersectionType(candidates.map(getReturnTypeOfSignature)),
|
|
72531
|
-
/*
|
|
72707
|
+
/*resolvedTypePredicate*/
|
|
72532
72708
|
void 0,
|
|
72533
72709
|
minArgumentCount,
|
|
72534
72710
|
flags
|
|
@@ -72649,7 +72825,7 @@ ${lanes.join("\n")}
|
|
|
72649
72825
|
if (isLineBreak(text.charCodeAt(skipTrivia(
|
|
72650
72826
|
text,
|
|
72651
72827
|
node.expression.end,
|
|
72652
|
-
/*
|
|
72828
|
+
/*stopAfterLineBreak*/
|
|
72653
72829
|
true
|
|
72654
72830
|
) - 1))) {
|
|
72655
72831
|
relatedInformation = createDiagnosticForNode(node.expression, Diagnostics.Are_you_missing_a_semicolon);
|
|
@@ -72828,7 +73004,7 @@ ${lanes.join("\n")}
|
|
|
72828
73004
|
}
|
|
72829
73005
|
if (!hasSignatures) {
|
|
72830
73006
|
errorInfo = chainDiagnosticMessages(
|
|
72831
|
-
/*
|
|
73007
|
+
/*details*/
|
|
72832
73008
|
void 0,
|
|
72833
73009
|
isCall ? Diagnostics.No_constituent_of_type_0_is_callable : Diagnostics.No_constituent_of_type_0_is_constructable,
|
|
72834
73010
|
typeToString(apparentType)
|
|
@@ -72869,7 +73045,7 @@ ${lanes.join("\n")}
|
|
|
72869
73045
|
if (isCallExpression(errorTarget.parent)) {
|
|
72870
73046
|
const { start, length: length2 } = getDiagnosticSpanForCallNode(
|
|
72871
73047
|
errorTarget.parent,
|
|
72872
|
-
/*
|
|
73048
|
+
/*doNotIncludeArguments*/
|
|
72873
73049
|
true
|
|
72874
73050
|
);
|
|
72875
73051
|
diagnostic.start = start;
|
|
@@ -72977,10 +73153,10 @@ ${lanes.join("\n")}
|
|
|
72977
73153
|
[factory.createParameterDeclaration(
|
|
72978
73154
|
/*modifiers*/
|
|
72979
73155
|
void 0,
|
|
72980
|
-
/*
|
|
73156
|
+
/*dotDotDotToken*/
|
|
72981
73157
|
void 0,
|
|
72982
73158
|
"props",
|
|
72983
|
-
/*
|
|
73159
|
+
/*questionToken*/
|
|
72984
73160
|
void 0,
|
|
72985
73161
|
nodeBuilder.typeToTypeNode(result, node)
|
|
72986
73162
|
)],
|
|
@@ -73000,7 +73176,7 @@ ${lanes.join("\n")}
|
|
|
73000
73176
|
void 0,
|
|
73001
73177
|
[parameterSymbol],
|
|
73002
73178
|
typeSymbol ? getDeclaredTypeOfSymbol(typeSymbol) : errorType,
|
|
73003
|
-
/*
|
|
73179
|
+
/*resolvedTypePredicate*/
|
|
73004
73180
|
void 0,
|
|
73005
73181
|
1,
|
|
73006
73182
|
0 /* None */
|
|
@@ -73070,8 +73246,11 @@ ${lanes.join("\n")}
|
|
|
73070
73246
|
return cached;
|
|
73071
73247
|
}
|
|
73072
73248
|
links.resolvedSignature = resolvingSignature;
|
|
73073
|
-
|
|
73249
|
+
let result = resolveSignature(node, candidatesOutArray, checkMode || 0 /* Normal */);
|
|
73074
73250
|
if (result !== resolvingSignature) {
|
|
73251
|
+
if (links.resolvedSignature !== resolvingSignature) {
|
|
73252
|
+
result = links.resolvedSignature;
|
|
73253
|
+
}
|
|
73075
73254
|
links.resolvedSignature = flowLoopStart === flowLoopCount ? result : cached;
|
|
73076
73255
|
}
|
|
73077
73256
|
return result;
|
|
@@ -73317,9 +73496,9 @@ ${lanes.join("\n")}
|
|
|
73317
73496
|
const esModuleSymbol = resolveESModuleSymbol(
|
|
73318
73497
|
moduleSymbol,
|
|
73319
73498
|
specifier,
|
|
73320
|
-
/*
|
|
73499
|
+
/*dontResolveAlias*/
|
|
73321
73500
|
true,
|
|
73322
|
-
/*
|
|
73501
|
+
/*suppressInteropError*/
|
|
73323
73502
|
false
|
|
73324
73503
|
);
|
|
73325
73504
|
if (esModuleSymbol) {
|
|
@@ -73389,7 +73568,7 @@ ${lanes.join("\n")}
|
|
|
73389
73568
|
function isCommonJsRequire(node) {
|
|
73390
73569
|
if (!isRequireCall(
|
|
73391
73570
|
node,
|
|
73392
|
-
/*
|
|
73571
|
+
/*requireStringLiteralLikeArgument*/
|
|
73393
73572
|
true
|
|
73394
73573
|
)) {
|
|
73395
73574
|
return false;
|
|
@@ -73430,14 +73609,14 @@ ${lanes.join("\n")}
|
|
|
73430
73609
|
checkDeprecatedSignature(signature, node);
|
|
73431
73610
|
return getReturnTypeOfSignature(signature);
|
|
73432
73611
|
}
|
|
73433
|
-
function checkAssertion(node) {
|
|
73612
|
+
function checkAssertion(node, checkMode) {
|
|
73434
73613
|
if (node.kind === 214 /* TypeAssertionExpression */) {
|
|
73435
73614
|
const file = getSourceFileOfNode(node);
|
|
73436
73615
|
if (file && fileExtensionIsOneOf(file.fileName, [".cts" /* Cts */, ".mts" /* Mts */])) {
|
|
73437
73616
|
grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead);
|
|
73438
73617
|
}
|
|
73439
73618
|
}
|
|
73440
|
-
return checkAssertionWorker(node,
|
|
73619
|
+
return checkAssertionWorker(node, checkMode);
|
|
73441
73620
|
}
|
|
73442
73621
|
function isValidConstAssertionArgument(node) {
|
|
73443
73622
|
switch (node.kind) {
|
|
@@ -73470,8 +73649,9 @@ ${lanes.join("\n")}
|
|
|
73470
73649
|
}
|
|
73471
73650
|
return false;
|
|
73472
73651
|
}
|
|
73473
|
-
function checkAssertionWorker(
|
|
73474
|
-
|
|
73652
|
+
function checkAssertionWorker(node, checkMode) {
|
|
73653
|
+
const { type, expression } = getAssertionTypeAndExpression(node);
|
|
73654
|
+
const exprType = checkExpression(expression, checkMode);
|
|
73475
73655
|
if (isConstTypeReference(type)) {
|
|
73476
73656
|
if (!isValidConstAssertionArgument(expression)) {
|
|
73477
73657
|
error(expression, Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals);
|
|
@@ -73479,7 +73659,29 @@ ${lanes.join("\n")}
|
|
|
73479
73659
|
return getRegularTypeOfLiteralType(exprType);
|
|
73480
73660
|
}
|
|
73481
73661
|
checkSourceElement(type);
|
|
73482
|
-
|
|
73662
|
+
checkNodeDeferred(node);
|
|
73663
|
+
return getTypeFromTypeNode(type);
|
|
73664
|
+
}
|
|
73665
|
+
function getAssertionTypeAndExpression(node) {
|
|
73666
|
+
let type;
|
|
73667
|
+
let expression;
|
|
73668
|
+
switch (node.kind) {
|
|
73669
|
+
case 232 /* AsExpression */:
|
|
73670
|
+
case 214 /* TypeAssertionExpression */:
|
|
73671
|
+
type = node.type;
|
|
73672
|
+
expression = node.expression;
|
|
73673
|
+
break;
|
|
73674
|
+
case 215 /* ParenthesizedExpression */:
|
|
73675
|
+
type = getJSDocTypeAssertionType(node);
|
|
73676
|
+
expression = node.expression;
|
|
73677
|
+
break;
|
|
73678
|
+
}
|
|
73679
|
+
return { type, expression };
|
|
73680
|
+
}
|
|
73681
|
+
function checkAssertionDeferred(node) {
|
|
73682
|
+
const { type, expression } = getAssertionTypeAndExpression(node);
|
|
73683
|
+
const errNode = isParenthesizedExpression(node) ? type : node;
|
|
73684
|
+
const exprType = getRegularTypeOfObjectLiteral(getBaseTypeOfLiteralType(checkExpression(expression)));
|
|
73483
73685
|
const targetType = getTypeFromTypeNode(type);
|
|
73484
73686
|
if (!isErrorType(targetType)) {
|
|
73485
73687
|
addLazyDiagnostic(() => {
|
|
@@ -73494,7 +73696,6 @@ ${lanes.join("\n")}
|
|
|
73494
73696
|
}
|
|
73495
73697
|
});
|
|
73496
73698
|
}
|
|
73497
|
-
return targetType;
|
|
73498
73699
|
}
|
|
73499
73700
|
function checkNonNullChain(node) {
|
|
73500
73701
|
const leftType = checkExpression(node.expression);
|
|
@@ -73546,7 +73747,14 @@ ${lanes.join("\n")}
|
|
|
73546
73747
|
hasSignatures || (hasSignatures = resolved.callSignatures.length !== 0 || resolved.constructSignatures.length !== 0);
|
|
73547
73748
|
hasApplicableSignature || (hasApplicableSignature = callSignatures.length !== 0 || constructSignatures.length !== 0);
|
|
73548
73749
|
if (callSignatures !== resolved.callSignatures || constructSignatures !== resolved.constructSignatures) {
|
|
73549
|
-
const result3 = createAnonymousType(
|
|
73750
|
+
const result3 = createAnonymousType(
|
|
73751
|
+
/*symbol*/
|
|
73752
|
+
void 0,
|
|
73753
|
+
resolved.members,
|
|
73754
|
+
callSignatures,
|
|
73755
|
+
constructSignatures,
|
|
73756
|
+
resolved.indexInfos
|
|
73757
|
+
);
|
|
73550
73758
|
result3.objectFlags |= 8388608 /* InstantiationExpressionType */;
|
|
73551
73759
|
result3.node = node;
|
|
73552
73760
|
return result3;
|
|
@@ -73735,12 +73943,12 @@ ${lanes.join("\n")}
|
|
|
73735
73943
|
}
|
|
73736
73944
|
return void 0;
|
|
73737
73945
|
}
|
|
73738
|
-
function getRestTypeAtPosition(source, pos
|
|
73946
|
+
function getRestTypeAtPosition(source, pos) {
|
|
73739
73947
|
const parameterCount = getParameterCount(source);
|
|
73740
73948
|
const minArgumentCount = getMinArgumentCount(source);
|
|
73741
73949
|
const restType = getEffectiveRestType(source);
|
|
73742
73950
|
if (restType && pos >= parameterCount - 1) {
|
|
73743
|
-
return pos === parameterCount - 1 ? restType : createArrayType(getIndexedAccessType(restType, numberType)
|
|
73951
|
+
return pos === parameterCount - 1 ? restType : createArrayType(getIndexedAccessType(restType, numberType));
|
|
73744
73952
|
}
|
|
73745
73953
|
const types = [];
|
|
73746
73954
|
const flags = [];
|
|
@@ -73758,7 +73966,13 @@ ${lanes.join("\n")}
|
|
|
73758
73966
|
names.push(name);
|
|
73759
73967
|
}
|
|
73760
73968
|
}
|
|
73761
|
-
return createTupleType(
|
|
73969
|
+
return createTupleType(
|
|
73970
|
+
types,
|
|
73971
|
+
flags,
|
|
73972
|
+
/*readonly*/
|
|
73973
|
+
false,
|
|
73974
|
+
length(names) === length(types) ? names : void 0
|
|
73975
|
+
);
|
|
73762
73976
|
}
|
|
73763
73977
|
function getParameterCount(signature) {
|
|
73764
73978
|
const length2 = signature.parameters.length;
|
|
@@ -73988,13 +74202,13 @@ ${lanes.join("\n")}
|
|
|
73988
74202
|
}
|
|
73989
74203
|
function createClassAccessorDecoratorTargetType(thisType, valueType) {
|
|
73990
74204
|
return tryCreateTypeReference(getGlobalClassAccessorDecoratorTargetType(
|
|
73991
|
-
/*
|
|
74205
|
+
/*reportErrors*/
|
|
73992
74206
|
true
|
|
73993
74207
|
), [thisType, valueType]);
|
|
73994
74208
|
}
|
|
73995
74209
|
function createClassAccessorDecoratorResultType(thisType, valueType) {
|
|
73996
74210
|
return tryCreateTypeReference(getGlobalClassAccessorDecoratorResultType(
|
|
73997
|
-
/*
|
|
74211
|
+
/*reportErrors*/
|
|
73998
74212
|
true
|
|
73999
74213
|
), [thisType, valueType]);
|
|
74000
74214
|
}
|
|
@@ -74512,8 +74726,11 @@ ${lanes.join("\n")}
|
|
|
74512
74726
|
}
|
|
74513
74727
|
const returnType = getReturnTypeFromBody(node, checkMode);
|
|
74514
74728
|
const returnOnlySignature = createSignature(
|
|
74729
|
+
/*declaration*/
|
|
74515
74730
|
void 0,
|
|
74731
|
+
/*typeParameters*/
|
|
74516
74732
|
void 0,
|
|
74733
|
+
/*thisParameter*/
|
|
74517
74734
|
void 0,
|
|
74518
74735
|
emptyArray,
|
|
74519
74736
|
returnType,
|
|
@@ -75561,6 +75778,7 @@ ${lanes.join("\n")}
|
|
|
75561
75778
|
prop.valueDeclaration,
|
|
75562
75779
|
name,
|
|
75563
75780
|
788968 /* Type */,
|
|
75781
|
+
/*nameNotFoundMessage*/
|
|
75564
75782
|
void 0,
|
|
75565
75783
|
name,
|
|
75566
75784
|
/*isUse*/
|
|
@@ -76167,7 +76385,7 @@ ${lanes.join("\n")}
|
|
|
76167
76385
|
}
|
|
76168
76386
|
if (isCallExpression(expr) && expr.expression.kind !== 107 /* SuperKeyword */ && !isRequireCall(
|
|
76169
76387
|
expr,
|
|
76170
|
-
/*
|
|
76388
|
+
/*requireStringLiteralLikeArgument*/
|
|
76171
76389
|
true
|
|
76172
76390
|
) && !isSymbolOrSymbolForCall(expr)) {
|
|
76173
76391
|
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getReturnTypeOfSingleNonGenericCallSignature(checkNonNullExpression(expr.expression));
|
|
@@ -76227,8 +76445,7 @@ ${lanes.join("\n")}
|
|
|
76227
76445
|
return checkSatisfiesExpressionWorker(node.expression, getJSDocSatisfiesExpressionType(node), checkMode);
|
|
76228
76446
|
}
|
|
76229
76447
|
if (isJSDocTypeAssertion(node)) {
|
|
76230
|
-
|
|
76231
|
-
return checkAssertionWorker(type, type, node.expression, checkMode);
|
|
76448
|
+
return checkAssertionWorker(node, checkMode);
|
|
76232
76449
|
}
|
|
76233
76450
|
}
|
|
76234
76451
|
return checkExpression(node.expression, checkMode);
|
|
@@ -76303,7 +76520,7 @@ ${lanes.join("\n")}
|
|
|
76303
76520
|
return checkTypeOfExpression(node);
|
|
76304
76521
|
case 214 /* TypeAssertionExpression */:
|
|
76305
76522
|
case 232 /* AsExpression */:
|
|
76306
|
-
return checkAssertion(node);
|
|
76523
|
+
return checkAssertion(node, checkMode);
|
|
76307
76524
|
case 233 /* NonNullExpression */:
|
|
76308
76525
|
return checkNonNullAssertion(node);
|
|
76309
76526
|
case 231 /* ExpressionWithTypeArguments */:
|
|
@@ -77820,7 +78037,7 @@ ${lanes.join("\n")}
|
|
|
77820
78037
|
void 0,
|
|
77821
78038
|
/*nameArg*/
|
|
77822
78039
|
void 0,
|
|
77823
|
-
/*
|
|
78040
|
+
/*isUse*/
|
|
77824
78041
|
true
|
|
77825
78042
|
);
|
|
77826
78043
|
if (rootSymbol && rootSymbol.flags & 2097152 /* Alias */) {
|
|
@@ -78564,7 +78781,7 @@ ${lanes.join("\n")}
|
|
|
78564
78781
|
node,
|
|
78565
78782
|
node.name.escapedText,
|
|
78566
78783
|
3 /* Variable */,
|
|
78567
|
-
/*
|
|
78784
|
+
/*nameNotFoundMessage*/
|
|
78568
78785
|
void 0,
|
|
78569
78786
|
/*nameArg*/
|
|
78570
78787
|
void 0,
|
|
@@ -79382,12 +79599,12 @@ ${lanes.join("\n")}
|
|
|
79382
79599
|
const suggestAwait = (
|
|
79383
79600
|
// for (const x of Promise<...>) or [...Promise<...>]
|
|
79384
79601
|
!!getAwaitedTypeOfPromise(type) || !allowAsyncIterables && isForOfStatement(errorNode.parent) && errorNode.parent.expression === errorNode && getGlobalAsyncIterableType(
|
|
79385
|
-
|
|
79602
|
+
/*reportErrors*/
|
|
79386
79603
|
false
|
|
79387
79604
|
) !== emptyGenericType && isTypeAssignableTo(
|
|
79388
79605
|
type,
|
|
79389
79606
|
getGlobalAsyncIterableType(
|
|
79390
|
-
|
|
79607
|
+
/*reportErrors*/
|
|
79391
79608
|
false
|
|
79392
79609
|
)
|
|
79393
79610
|
)
|
|
@@ -80255,7 +80472,7 @@ ${lanes.join("\n")}
|
|
|
80255
80472
|
type,
|
|
80256
80473
|
typeWithThis,
|
|
80257
80474
|
param,
|
|
80258
|
-
/*
|
|
80475
|
+
/*memberIsParameterProperty*/
|
|
80259
80476
|
true
|
|
80260
80477
|
);
|
|
80261
80478
|
}
|
|
@@ -80269,7 +80486,7 @@ ${lanes.join("\n")}
|
|
|
80269
80486
|
type,
|
|
80270
80487
|
typeWithThis,
|
|
80271
80488
|
member,
|
|
80272
|
-
/*
|
|
80489
|
+
/*memberIsParameterProperty*/
|
|
80273
80490
|
false
|
|
80274
80491
|
);
|
|
80275
80492
|
}
|
|
@@ -80373,7 +80590,7 @@ ${lanes.join("\n")}
|
|
|
80373
80590
|
getTypeOfSymbol(prop),
|
|
80374
80591
|
getTypeOfSymbol(baseProp),
|
|
80375
80592
|
member.name || member,
|
|
80376
|
-
/*
|
|
80593
|
+
/*headMessage*/
|
|
80377
80594
|
void 0,
|
|
80378
80595
|
rootChain
|
|
80379
80596
|
)) {
|
|
@@ -80421,7 +80638,7 @@ ${lanes.join("\n")}
|
|
|
80421
80638
|
memberHasOverrideModifier,
|
|
80422
80639
|
hasAbstractModifier(member),
|
|
80423
80640
|
isStatic(member),
|
|
80424
|
-
/*
|
|
80641
|
+
/*memberIsParameterProperty*/
|
|
80425
80642
|
false,
|
|
80426
80643
|
symbolName(memberSymbol)
|
|
80427
80644
|
);
|
|
@@ -81889,6 +82106,10 @@ ${lanes.join("\n")}
|
|
|
81889
82106
|
case 282 /* JsxElement */:
|
|
81890
82107
|
checkJsxElementDeferred(node);
|
|
81891
82108
|
break;
|
|
82109
|
+
case 214 /* TypeAssertionExpression */:
|
|
82110
|
+
case 232 /* AsExpression */:
|
|
82111
|
+
case 215 /* ParenthesizedExpression */:
|
|
82112
|
+
checkAssertionDeferred(node);
|
|
81892
82113
|
}
|
|
81893
82114
|
currentNode = saveCurrentNode;
|
|
81894
82115
|
(_b = tracing) == null ? void 0 : _b.pop();
|
|
@@ -82251,7 +82472,12 @@ ${lanes.join("\n")}
|
|
|
82251
82472
|
meaning = 1920 /* Namespace */;
|
|
82252
82473
|
}
|
|
82253
82474
|
meaning |= 2097152 /* Alias */;
|
|
82254
|
-
const entityNameSymbol = isEntityNameExpression(name) ? resolveEntityName(
|
|
82475
|
+
const entityNameSymbol = isEntityNameExpression(name) ? resolveEntityName(
|
|
82476
|
+
name,
|
|
82477
|
+
meaning,
|
|
82478
|
+
/*ignoreErrors*/
|
|
82479
|
+
true
|
|
82480
|
+
) : void 0;
|
|
82255
82481
|
if (entityNameSymbol) {
|
|
82256
82482
|
return entityNameSymbol;
|
|
82257
82483
|
}
|
|
@@ -82280,7 +82506,7 @@ ${lanes.join("\n")}
|
|
|
82280
82506
|
meaning,
|
|
82281
82507
|
/*ignoreErrors*/
|
|
82282
82508
|
false,
|
|
82283
|
-
/*
|
|
82509
|
+
/*dontResolveAlias*/
|
|
82284
82510
|
true,
|
|
82285
82511
|
getHostSignatureFromJSDoc(name)
|
|
82286
82512
|
);
|
|
@@ -82303,7 +82529,7 @@ ${lanes.join("\n")}
|
|
|
82303
82529
|
meaning,
|
|
82304
82530
|
/*ignoreErrors*/
|
|
82305
82531
|
true,
|
|
82306
|
-
/*
|
|
82532
|
+
/*dontResolveAlias*/
|
|
82307
82533
|
true,
|
|
82308
82534
|
getSourceFileOfNode(container)
|
|
82309
82535
|
) || result;
|
|
@@ -82476,7 +82702,7 @@ ${lanes.join("\n")}
|
|
|
82476
82702
|
case 14 /* NoSubstitutionTemplateLiteral */:
|
|
82477
82703
|
if (isExternalModuleImportEqualsDeclaration(node.parent.parent) && getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node || (node.parent.kind === 270 /* ImportDeclaration */ || node.parent.kind === 276 /* ExportDeclaration */) && node.parent.moduleSpecifier === node || (isInJSFile(node) && getEmitModuleResolutionKind(compilerOptions) !== 100 /* Bundler */ && isRequireCall(
|
|
82478
82704
|
node.parent,
|
|
82479
|
-
/*
|
|
82705
|
+
/*requireStringLiteralLikeArgument*/
|
|
82480
82706
|
false
|
|
82481
82707
|
) || isImportCall(node.parent)) || isLiteralTypeNode(node.parent) && isLiteralImportTypeNode(node.parent.parent) && node.parent.parent.argument === node.parent) {
|
|
82482
82708
|
return resolveExternalModuleName(node, node, ignoreErrors);
|
|
@@ -83090,7 +83316,7 @@ ${lanes.join("\n")}
|
|
|
83090
83316
|
location,
|
|
83091
83317
|
reference.escapedText,
|
|
83092
83318
|
111551 /* Value */ | 1048576 /* ExportValue */ | 2097152 /* Alias */,
|
|
83093
|
-
/*
|
|
83319
|
+
/*nameNotFoundMessage*/
|
|
83094
83320
|
void 0,
|
|
83095
83321
|
/*nameArg*/
|
|
83096
83322
|
void 0,
|
|
@@ -83107,7 +83333,7 @@ ${lanes.join("\n")}
|
|
|
83107
83333
|
reference,
|
|
83108
83334
|
reference.escapedText,
|
|
83109
83335
|
111551 /* Value */ | 1048576 /* ExportValue */ | 2097152 /* Alias */,
|
|
83110
|
-
/*
|
|
83336
|
+
/*nameNotFoundMessage*/
|
|
83111
83337
|
void 0,
|
|
83112
83338
|
/*nameArg*/
|
|
83113
83339
|
void 0,
|
|
@@ -83524,7 +83750,14 @@ ${lanes.join("\n")}
|
|
|
83524
83750
|
anyArrayType = createArrayType(anyType);
|
|
83525
83751
|
autoArrayType = createArrayType(autoType);
|
|
83526
83752
|
if (autoArrayType === emptyObjectType) {
|
|
83527
|
-
autoArrayType = createAnonymousType(
|
|
83753
|
+
autoArrayType = createAnonymousType(
|
|
83754
|
+
/*symbol*/
|
|
83755
|
+
void 0,
|
|
83756
|
+
emptySymbols,
|
|
83757
|
+
emptyArray,
|
|
83758
|
+
emptyArray,
|
|
83759
|
+
emptyArray
|
|
83760
|
+
);
|
|
83528
83761
|
}
|
|
83529
83762
|
globalReadonlyArrayType = getGlobalTypeOrUndefined(
|
|
83530
83763
|
"ReadonlyArray",
|
|
@@ -84642,7 +84875,7 @@ ${lanes.join("\n")}
|
|
|
84642
84875
|
if (node.label && current.label.escapedText === node.label.escapedText) {
|
|
84643
84876
|
const isMisplacedContinueLabel = node.kind === 249 /* ContinueStatement */ && !isIterationStatement(
|
|
84644
84877
|
current.statement,
|
|
84645
|
-
/*
|
|
84878
|
+
/*lookInLabeledStatements*/
|
|
84646
84879
|
true
|
|
84647
84880
|
);
|
|
84648
84881
|
if (isMisplacedContinueLabel) {
|
|
@@ -84659,7 +84892,7 @@ ${lanes.join("\n")}
|
|
|
84659
84892
|
default:
|
|
84660
84893
|
if (isIterationStatement(
|
|
84661
84894
|
current,
|
|
84662
|
-
/*
|
|
84895
|
+
/*lookInLabeledStatements*/
|
|
84663
84896
|
false
|
|
84664
84897
|
) && !node.label) {
|
|
84665
84898
|
return false;
|
|
@@ -84949,25 +85182,6 @@ ${lanes.join("\n")}
|
|
|
84949
85182
|
return false;
|
|
84950
85183
|
}
|
|
84951
85184
|
function checkGrammarNumericLiteral(node) {
|
|
84952
|
-
if (node.numericLiteralFlags & 32 /* Octal */) {
|
|
84953
|
-
let diagnosticMessage;
|
|
84954
|
-
if (languageVersion >= 1 /* ES5 */) {
|
|
84955
|
-
diagnosticMessage = Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0;
|
|
84956
|
-
} else if (isChildOfNodeWithKind(node, 199 /* LiteralType */)) {
|
|
84957
|
-
diagnosticMessage = Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0;
|
|
84958
|
-
} else if (isChildOfNodeWithKind(node, 303 /* EnumMember */)) {
|
|
84959
|
-
diagnosticMessage = Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0;
|
|
84960
|
-
}
|
|
84961
|
-
if (diagnosticMessage) {
|
|
84962
|
-
const withMinus = isPrefixUnaryExpression(node.parent) && node.parent.operator === 40 /* MinusToken */;
|
|
84963
|
-
const literal = (withMinus ? "-" : "") + "0o" + node.text;
|
|
84964
|
-
return grammarErrorOnNode(withMinus ? node.parent : node, diagnosticMessage, literal);
|
|
84965
|
-
}
|
|
84966
|
-
}
|
|
84967
|
-
checkNumericLiteralValueSize(node);
|
|
84968
|
-
return false;
|
|
84969
|
-
}
|
|
84970
|
-
function checkNumericLiteralValueSize(node) {
|
|
84971
85185
|
const isFractional = getTextOfNode(node).indexOf(".") !== -1;
|
|
84972
85186
|
const isScientific = node.numericLiteralFlags & 16 /* Scientific */;
|
|
84973
85187
|
if (isFractional || isScientific) {
|
|
@@ -88235,7 +88449,7 @@ ${lanes.join("\n")}
|
|
|
88235
88449
|
);
|
|
88236
88450
|
}
|
|
88237
88451
|
function createTemplateCooked(factory2, template) {
|
|
88238
|
-
return template.templateFlags ? factory2.createVoidZero() : factory2.createStringLiteral(template.text);
|
|
88452
|
+
return template.templateFlags & 26656 /* IsInvalid */ ? factory2.createVoidZero() : factory2.createStringLiteral(template.text);
|
|
88239
88453
|
}
|
|
88240
88454
|
function getRawLiteral(factory2, node, currentSourceFile) {
|
|
88241
88455
|
let text = node.rawText;
|
|
@@ -88605,7 +88819,7 @@ ${lanes.join("\n")}
|
|
|
88605
88819
|
let facts = 0 /* None */;
|
|
88606
88820
|
if (some(getProperties(
|
|
88607
88821
|
node,
|
|
88608
|
-
/*
|
|
88822
|
+
/*requireInitializer*/
|
|
88609
88823
|
true,
|
|
88610
88824
|
/*isStatic*/
|
|
88611
88825
|
true
|
|
@@ -90483,10 +90697,10 @@ ${lanes.join("\n")}
|
|
|
90483
90697
|
filter(node.modifiers, (m) => isModifier(m) && !isStaticModifier(m) && !isAccessorModifier(m)),
|
|
90484
90698
|
node.asteriskToken,
|
|
90485
90699
|
functionName,
|
|
90486
|
-
/*
|
|
90700
|
+
/*typeParameters*/
|
|
90487
90701
|
void 0,
|
|
90488
90702
|
visitParameterList(node.parameters, visitor, context),
|
|
90489
|
-
/*
|
|
90703
|
+
/*type*/
|
|
90490
90704
|
void 0,
|
|
90491
90705
|
visitFunctionBody(node.body, visitor, context)
|
|
90492
90706
|
)
|
|
@@ -91091,7 +91305,7 @@ ${lanes.join("\n")}
|
|
|
91091
91305
|
info.brandCheckIdentifier,
|
|
91092
91306
|
right,
|
|
91093
91307
|
info.kind,
|
|
91094
|
-
/*
|
|
91308
|
+
/*f*/
|
|
91095
91309
|
void 0
|
|
91096
91310
|
);
|
|
91097
91311
|
case "f" /* Field */:
|
|
@@ -91163,7 +91377,7 @@ ${lanes.join("\n")}
|
|
|
91163
91377
|
if (facts & 4 /* NeedsClassSuperReference */) {
|
|
91164
91378
|
const temp = factory2.createTempVariable(
|
|
91165
91379
|
hoistVariableDeclaration,
|
|
91166
|
-
/*
|
|
91380
|
+
/*reservedInNestedScopes*/
|
|
91167
91381
|
true
|
|
91168
91382
|
);
|
|
91169
91383
|
getClassLexicalEnvironment().superClassReference = temp;
|
|
@@ -91996,7 +92210,7 @@ ${lanes.join("\n")}
|
|
|
91996
92210
|
const identifier = typeof name === "object" ? factory2.getGeneratedNameForNode(name, 16 /* Optimistic */ | 8 /* ReservedInNestedScopes */, prefix, suffix) : typeof name === "string" ? factory2.createUniqueName(name, 16 /* Optimistic */, prefix, suffix) : factory2.createTempVariable(
|
|
91997
92211
|
/*recordTempVariable*/
|
|
91998
92212
|
void 0,
|
|
91999
|
-
/*
|
|
92213
|
+
/*reservedInNestedScopes*/
|
|
92000
92214
|
true,
|
|
92001
92215
|
prefix,
|
|
92002
92216
|
suffix
|
|
@@ -92714,11 +92928,11 @@ ${lanes.join("\n")}
|
|
|
92714
92928
|
}
|
|
92715
92929
|
function visitClassDeclaration(node) {
|
|
92716
92930
|
if (!(classOrConstructorParameterIsDecorated(
|
|
92717
|
-
/*
|
|
92931
|
+
/*useLegacyDecorators*/
|
|
92718
92932
|
true,
|
|
92719
92933
|
node
|
|
92720
92934
|
) || childIsDecorated(
|
|
92721
|
-
/*
|
|
92935
|
+
/*useLegacyDecorators*/
|
|
92722
92936
|
true,
|
|
92723
92937
|
node
|
|
92724
92938
|
))) {
|
|
@@ -92973,7 +93187,7 @@ ${lanes.join("\n")}
|
|
|
92973
93187
|
}
|
|
92974
93188
|
function isDecoratedClassElement(member, isStaticElement, parent2) {
|
|
92975
93189
|
return nodeOrChildIsDecorated(
|
|
92976
|
-
/*
|
|
93190
|
+
/*useLegacyDecorators*/
|
|
92977
93191
|
true,
|
|
92978
93192
|
member,
|
|
92979
93193
|
parent2
|
|
@@ -93331,7 +93545,7 @@ ${lanes.join("\n")}
|
|
|
93331
93545
|
case 223 /* PostfixUnaryExpression */:
|
|
93332
93546
|
return visitPreOrPostfixUnaryExpression(
|
|
93333
93547
|
node,
|
|
93334
|
-
/*
|
|
93548
|
+
/*discarded*/
|
|
93335
93549
|
false
|
|
93336
93550
|
);
|
|
93337
93551
|
case 209 /* PropertyAccessExpression */:
|
|
@@ -93482,7 +93696,7 @@ ${lanes.join("\n")}
|
|
|
93482
93696
|
let hasStaticPrivateClassElements = false;
|
|
93483
93697
|
for (const member of node.members) {
|
|
93484
93698
|
if (isNamedClassElement(member) && nodeOrChildIsDecorated(
|
|
93485
|
-
/*
|
|
93699
|
+
/*useLegacyDecorators*/
|
|
93486
93700
|
false,
|
|
93487
93701
|
member,
|
|
93488
93702
|
node
|
|
@@ -93721,7 +93935,7 @@ ${lanes.join("\n")}
|
|
|
93721
93935
|
if (leadingBlockStatements) {
|
|
93722
93936
|
const leadingStaticBlockBody = factory2.createBlock(
|
|
93723
93937
|
leadingBlockStatements,
|
|
93724
|
-
/*
|
|
93938
|
+
/*multiLine*/
|
|
93725
93939
|
true
|
|
93726
93940
|
);
|
|
93727
93941
|
const leadingStaticBlock = factory2.createClassStaticBlockDeclaration(leadingStaticBlockBody);
|
|
@@ -93736,7 +93950,7 @@ ${lanes.join("\n")}
|
|
|
93736
93950
|
if (trailingBlockStatements) {
|
|
93737
93951
|
const trailingStaticBlockBody = factory2.createBlock(
|
|
93738
93952
|
trailingBlockStatements,
|
|
93739
|
-
/*
|
|
93953
|
+
/*multiLine*/
|
|
93740
93954
|
true
|
|
93741
93955
|
);
|
|
93742
93956
|
const trailingStaticBlock = factory2.createClassStaticBlockDeclaration(trailingStaticBlockBody);
|
|
@@ -93802,11 +94016,11 @@ ${lanes.join("\n")}
|
|
|
93802
94016
|
}
|
|
93803
94017
|
function isDecoratedClassLike(node) {
|
|
93804
94018
|
return classOrConstructorParameterIsDecorated(
|
|
93805
|
-
/*
|
|
94019
|
+
/*useLegacyDecorators*/
|
|
93806
94020
|
false,
|
|
93807
94021
|
node
|
|
93808
94022
|
) || childIsDecorated(
|
|
93809
|
-
/*
|
|
94023
|
+
/*useLegacyDecorators*/
|
|
93810
94024
|
false,
|
|
93811
94025
|
node
|
|
93812
94026
|
);
|
|
@@ -95492,15 +95706,15 @@ ${lanes.join("\n")}
|
|
|
95492
95706
|
getterAndSetter.push(factory2.createPropertyAssignment(
|
|
95493
95707
|
"get",
|
|
95494
95708
|
factory2.createArrowFunction(
|
|
95495
|
-
/*
|
|
95709
|
+
/*modifiers*/
|
|
95496
95710
|
void 0,
|
|
95497
|
-
/*
|
|
95711
|
+
/*typeParameters*/
|
|
95498
95712
|
void 0,
|
|
95499
95713
|
/* parameters */
|
|
95500
95714
|
[],
|
|
95501
|
-
/*
|
|
95715
|
+
/*type*/
|
|
95502
95716
|
void 0,
|
|
95503
|
-
/*
|
|
95717
|
+
/*equalsGreaterThanToken*/
|
|
95504
95718
|
void 0,
|
|
95505
95719
|
setEmitFlags(
|
|
95506
95720
|
factory2.createPropertyAccessExpression(
|
|
@@ -95519,29 +95733,29 @@ ${lanes.join("\n")}
|
|
|
95519
95733
|
factory2.createPropertyAssignment(
|
|
95520
95734
|
"set",
|
|
95521
95735
|
factory2.createArrowFunction(
|
|
95522
|
-
/*
|
|
95736
|
+
/*modifiers*/
|
|
95523
95737
|
void 0,
|
|
95524
|
-
/*
|
|
95738
|
+
/*typeParameters*/
|
|
95525
95739
|
void 0,
|
|
95526
95740
|
/* parameters */
|
|
95527
95741
|
[
|
|
95528
95742
|
factory2.createParameterDeclaration(
|
|
95529
|
-
/*
|
|
95743
|
+
/*modifiers*/
|
|
95530
95744
|
void 0,
|
|
95531
|
-
/*
|
|
95745
|
+
/*dotDotDotToken*/
|
|
95532
95746
|
void 0,
|
|
95533
95747
|
"v",
|
|
95534
|
-
/*
|
|
95748
|
+
/*questionToken*/
|
|
95535
95749
|
void 0,
|
|
95536
|
-
/*
|
|
95750
|
+
/*type*/
|
|
95537
95751
|
void 0,
|
|
95538
|
-
/*
|
|
95752
|
+
/*initializer*/
|
|
95539
95753
|
void 0
|
|
95540
95754
|
)
|
|
95541
95755
|
],
|
|
95542
|
-
/*
|
|
95756
|
+
/*type*/
|
|
95543
95757
|
void 0,
|
|
95544
|
-
/*
|
|
95758
|
+
/*equalsGreaterThanToken*/
|
|
95545
95759
|
void 0,
|
|
95546
95760
|
factory2.createAssignment(
|
|
95547
95761
|
setEmitFlags(
|
|
@@ -95568,7 +95782,7 @@ ${lanes.join("\n")}
|
|
|
95568
95782
|
);
|
|
95569
95783
|
});
|
|
95570
95784
|
return factory2.createVariableStatement(
|
|
95571
|
-
/*
|
|
95785
|
+
/*modifiers*/
|
|
95572
95786
|
void 0,
|
|
95573
95787
|
factory2.createVariableDeclarationList(
|
|
95574
95788
|
[
|
|
@@ -95576,20 +95790,20 @@ ${lanes.join("\n")}
|
|
|
95576
95790
|
factory2.createUniqueName("_super", 16 /* Optimistic */ | 32 /* FileLevel */),
|
|
95577
95791
|
/*exclamationToken*/
|
|
95578
95792
|
void 0,
|
|
95579
|
-
/*
|
|
95793
|
+
/*type*/
|
|
95580
95794
|
void 0,
|
|
95581
95795
|
factory2.createCallExpression(
|
|
95582
95796
|
factory2.createPropertyAccessExpression(
|
|
95583
95797
|
factory2.createIdentifier("Object"),
|
|
95584
95798
|
"create"
|
|
95585
95799
|
),
|
|
95586
|
-
/*
|
|
95800
|
+
/*typeArguments*/
|
|
95587
95801
|
void 0,
|
|
95588
95802
|
[
|
|
95589
95803
|
factory2.createNull(),
|
|
95590
95804
|
factory2.createObjectLiteralExpression(
|
|
95591
95805
|
accessors,
|
|
95592
|
-
/*
|
|
95806
|
+
/*multiLine*/
|
|
95593
95807
|
true
|
|
95594
95808
|
)
|
|
95595
95809
|
]
|
|
@@ -96467,7 +96681,7 @@ ${lanes.join("\n")}
|
|
|
96467
96681
|
enclosingFunctionFlags & 2 /* Async */ ? void 0 : node.asteriskToken,
|
|
96468
96682
|
visitNode(node.name, visitor, isPropertyName),
|
|
96469
96683
|
visitNode(
|
|
96470
|
-
/*
|
|
96684
|
+
/*node*/
|
|
96471
96685
|
void 0,
|
|
96472
96686
|
visitor,
|
|
96473
96687
|
isQuestionToken
|
|
@@ -96693,7 +96907,7 @@ ${lanes.join("\n")}
|
|
|
96693
96907
|
context,
|
|
96694
96908
|
1 /* ObjectRest */,
|
|
96695
96909
|
factory2.getGeneratedNameForNode(parameter),
|
|
96696
|
-
/*
|
|
96910
|
+
/*hoistTempVariables*/
|
|
96697
96911
|
false,
|
|
96698
96912
|
/*skipInitializer*/
|
|
96699
96913
|
true
|
|
@@ -97266,7 +97480,7 @@ ${lanes.join("\n")}
|
|
|
97266
97480
|
}
|
|
97267
97481
|
const declaration = factory2.createVariableDeclaration(
|
|
97268
97482
|
factory2.createUniqueName("_jsxFileName", 16 /* Optimistic */ | 32 /* FileLevel */),
|
|
97269
|
-
/*
|
|
97483
|
+
/*exclamationToken*/
|
|
97270
97484
|
void 0,
|
|
97271
97485
|
/*type*/
|
|
97272
97486
|
void 0,
|
|
@@ -97335,7 +97549,7 @@ ${lanes.join("\n")}
|
|
|
97335
97549
|
/*modifiers*/
|
|
97336
97550
|
void 0,
|
|
97337
97551
|
factory2.createImportClause(
|
|
97338
|
-
/*
|
|
97552
|
+
/*isTypeOnly*/
|
|
97339
97553
|
false,
|
|
97340
97554
|
/*name*/
|
|
97341
97555
|
void 0,
|
|
@@ -97358,12 +97572,12 @@ ${lanes.join("\n")}
|
|
|
97358
97572
|
factory2.createVariableDeclarationList([
|
|
97359
97573
|
factory2.createVariableDeclaration(
|
|
97360
97574
|
factory2.createObjectBindingPattern(arrayFrom(importSpecifiersMap.values(), (s) => factory2.createBindingElement(
|
|
97361
|
-
/*
|
|
97575
|
+
/*dotDotDotToken*/
|
|
97362
97576
|
void 0,
|
|
97363
97577
|
s.propertyName,
|
|
97364
97578
|
s.name
|
|
97365
97579
|
))),
|
|
97366
|
-
/*
|
|
97580
|
+
/*exclamationToken*/
|
|
97367
97581
|
void 0,
|
|
97368
97582
|
/*type*/
|
|
97369
97583
|
void 0,
|
|
@@ -99693,7 +99907,7 @@ ${lanes.join("\n")}
|
|
|
99693
99907
|
visitor,
|
|
99694
99908
|
context,
|
|
99695
99909
|
0 /* All */,
|
|
99696
|
-
/*
|
|
99910
|
+
/*rval*/
|
|
99697
99911
|
void 0,
|
|
99698
99912
|
(ancestorFacts & 32 /* ExportedVariableStatement */) !== 0
|
|
99699
99913
|
);
|
|
@@ -104074,7 +104288,7 @@ ${lanes.join("\n")}
|
|
|
104074
104288
|
/*whenTrue*/
|
|
104075
104289
|
createImportCallExpressionCommonJS(
|
|
104076
104290
|
temp,
|
|
104077
|
-
/*
|
|
104291
|
+
/*isInlineable*/
|
|
104078
104292
|
true
|
|
104079
104293
|
),
|
|
104080
104294
|
/*colonToken*/
|
|
@@ -104510,9 +104724,9 @@ ${lanes.join("\n")}
|
|
|
104510
104724
|
createExportExpression(
|
|
104511
104725
|
factory2.getExportName(specifier),
|
|
104512
104726
|
exportedValue,
|
|
104513
|
-
/*
|
|
104727
|
+
/*location*/
|
|
104514
104728
|
void 0,
|
|
104515
|
-
/*
|
|
104729
|
+
/*liveBinding*/
|
|
104516
104730
|
true
|
|
104517
104731
|
)
|
|
104518
104732
|
),
|
|
@@ -104822,7 +105036,7 @@ ${lanes.join("\n")}
|
|
|
104822
105036
|
statements = appendExportsOfDeclaration(
|
|
104823
105037
|
statements,
|
|
104824
105038
|
importBinding,
|
|
104825
|
-
/*
|
|
105039
|
+
/*liveBinding*/
|
|
104826
105040
|
true
|
|
104827
105041
|
);
|
|
104828
105042
|
}
|
|
@@ -104891,7 +105105,7 @@ ${lanes.join("\n")}
|
|
|
104891
105105
|
name,
|
|
104892
105106
|
/*location*/
|
|
104893
105107
|
exportSpecifier.name,
|
|
104894
|
-
/*
|
|
105108
|
+
/*allowComments*/
|
|
104895
105109
|
void 0,
|
|
104896
105110
|
liveBinding
|
|
104897
105111
|
);
|
|
@@ -104935,7 +105149,7 @@ ${lanes.join("\n")}
|
|
|
104935
105149
|
const statement = setTextRange(factory2.createExpressionStatement(createExportExpression(
|
|
104936
105150
|
name,
|
|
104937
105151
|
value,
|
|
104938
|
-
/*
|
|
105152
|
+
/*location*/
|
|
104939
105153
|
void 0,
|
|
104940
105154
|
liveBinding
|
|
104941
105155
|
)), location);
|
|
@@ -105417,7 +105631,7 @@ ${lanes.join("\n")}
|
|
|
105417
105631
|
void 0,
|
|
105418
105632
|
factory2.createObjectLiteralExpression(
|
|
105419
105633
|
exportedNames,
|
|
105420
|
-
/*
|
|
105634
|
+
/*multiLine*/
|
|
105421
105635
|
true
|
|
105422
105636
|
)
|
|
105423
105637
|
)
|
|
@@ -105509,7 +105723,7 @@ ${lanes.join("\n")}
|
|
|
105509
105723
|
)
|
|
105510
105724
|
)
|
|
105511
105725
|
],
|
|
105512
|
-
/*
|
|
105726
|
+
/*multiLine*/
|
|
105513
105727
|
true
|
|
105514
105728
|
)
|
|
105515
105729
|
);
|
|
@@ -105574,7 +105788,7 @@ ${lanes.join("\n")}
|
|
|
105574
105788
|
void 0,
|
|
105575
105789
|
[factory2.createObjectLiteralExpression(
|
|
105576
105790
|
properties,
|
|
105577
|
-
/*
|
|
105791
|
+
/*multiLine*/
|
|
105578
105792
|
true
|
|
105579
105793
|
)]
|
|
105580
105794
|
)
|
|
@@ -107131,18 +107345,18 @@ ${lanes.join("\n")}
|
|
|
107131
107345
|
getTrailingCommentRanges(text, skipTrivia(
|
|
107132
107346
|
text,
|
|
107133
107347
|
previousSibling.end + 1,
|
|
107134
|
-
/*
|
|
107348
|
+
/*stopAfterLineBreak*/
|
|
107135
107349
|
false,
|
|
107136
|
-
/*
|
|
107350
|
+
/*stopAtComments*/
|
|
107137
107351
|
true
|
|
107138
107352
|
)),
|
|
107139
107353
|
getLeadingCommentRanges(text, node.pos)
|
|
107140
107354
|
) : getTrailingCommentRanges(text, skipTrivia(
|
|
107141
107355
|
text,
|
|
107142
107356
|
node.pos,
|
|
107143
|
-
/*
|
|
107357
|
+
/*stopAfterLineBreak*/
|
|
107144
107358
|
false,
|
|
107145
|
-
/*
|
|
107359
|
+
/*stopAtComments*/
|
|
107146
107360
|
true
|
|
107147
107361
|
));
|
|
107148
107362
|
return commentRanges && commentRanges.length && hasInternalAnnotation(last(commentRanges), currentSourceFile);
|
|
@@ -107257,7 +107471,7 @@ ${lanes.join("\n")}
|
|
|
107257
107471
|
symbol,
|
|
107258
107472
|
enclosingDeclaration2,
|
|
107259
107473
|
meaning,
|
|
107260
|
-
/*
|
|
107474
|
+
/*shouldComputeAliasToMarkVisible*/
|
|
107261
107475
|
true
|
|
107262
107476
|
));
|
|
107263
107477
|
recordTypeReferenceDirectivesIfNecessary(resolver.getTypeReferenceDirectivesForSymbol(symbol, meaning));
|
|
@@ -107603,7 +107817,7 @@ ${lanes.join("\n")}
|
|
|
107603
107817
|
return factory2.updateBindingElement(
|
|
107604
107818
|
elem,
|
|
107605
107819
|
elem.dotDotDotToken,
|
|
107606
|
-
/*
|
|
107820
|
+
/*propertyName*/
|
|
107607
107821
|
void 0,
|
|
107608
107822
|
elem.propertyName,
|
|
107609
107823
|
shouldPrintWithInitializer(elem) ? elem.initializer : void 0
|
|
@@ -107965,7 +108179,7 @@ ${lanes.join("\n")}
|
|
|
107965
108179
|
return cleanup(factory2.createPropertyDeclaration(
|
|
107966
108180
|
ensureModifiers(input),
|
|
107967
108181
|
input.name,
|
|
107968
|
-
/*
|
|
108182
|
+
/*questionOrExclamationToken*/
|
|
107969
108183
|
void 0,
|
|
107970
108184
|
/*type*/
|
|
107971
108185
|
void 0,
|
|
@@ -108529,7 +108743,7 @@ ${lanes.join("\n")}
|
|
|
108529
108743
|
elems.push(factory2.createPropertyDeclaration(
|
|
108530
108744
|
ensureModifiers(param),
|
|
108531
108745
|
elem.name,
|
|
108532
|
-
/*
|
|
108746
|
+
/*questionOrExclamationToken*/
|
|
108533
108747
|
void 0,
|
|
108534
108748
|
ensureType(
|
|
108535
108749
|
elem,
|
|
@@ -108551,7 +108765,7 @@ ${lanes.join("\n")}
|
|
|
108551
108765
|
/*modifiers*/
|
|
108552
108766
|
void 0,
|
|
108553
108767
|
factory2.createPrivateIdentifier("#private"),
|
|
108554
|
-
/*
|
|
108768
|
+
/*questionOrExclamationToken*/
|
|
108555
108769
|
void 0,
|
|
108556
108770
|
/*type*/
|
|
108557
108771
|
void 0,
|
|
@@ -109937,7 +110151,7 @@ ${lanes.join("\n")}
|
|
|
109937
110151
|
declarationMapText,
|
|
109938
110152
|
buildInfoPath,
|
|
109939
110153
|
buildInfo,
|
|
109940
|
-
/*
|
|
110154
|
+
/*oldFileOfCurrentEmit*/
|
|
109941
110155
|
true
|
|
109942
110156
|
);
|
|
109943
110157
|
const outputFiles = [];
|
|
@@ -110126,7 +110340,7 @@ ${lanes.join("\n")}
|
|
|
110126
110340
|
writeBundle(
|
|
110127
110341
|
bundle,
|
|
110128
110342
|
beginPrint(),
|
|
110129
|
-
/*
|
|
110343
|
+
/*sourceMapGenerator*/
|
|
110130
110344
|
void 0
|
|
110131
110345
|
);
|
|
110132
110346
|
return endPrint();
|
|
@@ -110135,7 +110349,7 @@ ${lanes.join("\n")}
|
|
|
110135
110349
|
writeFile2(
|
|
110136
110350
|
sourceFile,
|
|
110137
110351
|
beginPrint(),
|
|
110138
|
-
/*
|
|
110352
|
+
/*sourceMapGenerator*/
|
|
110139
110353
|
void 0
|
|
110140
110354
|
);
|
|
110141
110355
|
return endPrint();
|
|
@@ -111553,7 +111767,7 @@ ${lanes.join("\n")}
|
|
|
111553
111767
|
/*jsxAttributeEscape*/
|
|
111554
111768
|
false
|
|
111555
111769
|
);
|
|
111556
|
-
return !expression.numericLiteralFlags && !stringContains(text, tokenToString(24 /* DotToken */));
|
|
111770
|
+
return !(expression.numericLiteralFlags & 448 /* WithSpecifier */) && !stringContains(text, tokenToString(24 /* DotToken */)) && !stringContains(text, String.fromCharCode(69 /* E */)) && !stringContains(text, String.fromCharCode(101 /* e */));
|
|
111557
111771
|
} else if (isAccessExpression(expression)) {
|
|
111558
111772
|
const constantValue = getConstantValue(expression);
|
|
111559
111773
|
return typeof constantValue === "number" && isFinite(constantValue) && Math.floor(constantValue) === constantValue;
|
|
@@ -111616,7 +111830,7 @@ ${lanes.join("\n")}
|
|
|
111616
111830
|
const indented = writeLineSeparatorsAndIndentBefore(node.expression, node);
|
|
111617
111831
|
emitExpression(
|
|
111618
111832
|
node.expression,
|
|
111619
|
-
/*
|
|
111833
|
+
/*parenthesizerRule*/
|
|
111620
111834
|
void 0
|
|
111621
111835
|
);
|
|
111622
111836
|
writeLineSeparatorsAfter(node.expression, node);
|
|
@@ -111830,7 +112044,7 @@ ${lanes.join("\n")}
|
|
|
111830
112044
|
function emitAsExpression(node) {
|
|
111831
112045
|
emitExpression(
|
|
111832
112046
|
node.expression,
|
|
111833
|
-
/*
|
|
112047
|
+
/*parenthesizerRule*/
|
|
111834
112048
|
void 0
|
|
111835
112049
|
);
|
|
111836
112050
|
if (node.type) {
|
|
@@ -111847,7 +112061,7 @@ ${lanes.join("\n")}
|
|
|
111847
112061
|
function emitSatisfiesExpression(node) {
|
|
111848
112062
|
emitExpression(
|
|
111849
112063
|
node.expression,
|
|
111850
|
-
/*
|
|
112064
|
+
/*parenthesizerRule*/
|
|
111851
112065
|
void 0
|
|
111852
112066
|
);
|
|
111853
112067
|
if (node.type) {
|
|
@@ -114167,7 +114381,7 @@ ${lanes.join("\n")}
|
|
|
114167
114381
|
case 165 /* ComputedPropertyName */:
|
|
114168
114382
|
return makeTempVariableName(
|
|
114169
114383
|
0 /* Auto */,
|
|
114170
|
-
/*
|
|
114384
|
+
/*reservedInNestedScopes*/
|
|
114171
114385
|
true,
|
|
114172
114386
|
privateName,
|
|
114173
114387
|
prefix,
|
|
@@ -114176,7 +114390,7 @@ ${lanes.join("\n")}
|
|
|
114176
114390
|
default:
|
|
114177
114391
|
return makeTempVariableName(
|
|
114178
114392
|
0 /* Auto */,
|
|
114179
|
-
/*
|
|
114393
|
+
/*reservedInNestedScopes*/
|
|
114180
114394
|
false,
|
|
114181
114395
|
privateName,
|
|
114182
114396
|
prefix,
|
|
@@ -116464,7 +116678,7 @@ ${lanes.join("\n")}
|
|
|
116464
116678
|
return resolveTypeReferenceDirectiveNamesWorker(
|
|
116465
116679
|
typeDirectiveNames,
|
|
116466
116680
|
containingFile,
|
|
116467
|
-
/*
|
|
116681
|
+
/*reusedNames*/
|
|
116468
116682
|
void 0
|
|
116469
116683
|
);
|
|
116470
116684
|
}
|
|
@@ -116792,7 +117006,7 @@ ${lanes.join("\n")}
|
|
|
116792
117006
|
void 0,
|
|
116793
117007
|
/*transformers*/
|
|
116794
117008
|
noTransformers,
|
|
116795
|
-
/*
|
|
117009
|
+
/*emitOnly*/
|
|
116796
117010
|
false,
|
|
116797
117011
|
/*onlyBuildInfo*/
|
|
116798
117012
|
true
|
|
@@ -117388,7 +117602,7 @@ ${lanes.join("\n")}
|
|
|
117388
117602
|
const node = getNodeAtPosition(file2, r.lastIndex);
|
|
117389
117603
|
if (shouldProcessRequires && isRequireCall(
|
|
117390
117604
|
node,
|
|
117391
|
-
/*
|
|
117605
|
+
/*requireStringLiteralLikeArgument*/
|
|
117392
117606
|
true
|
|
117393
117607
|
)) {
|
|
117394
117608
|
setParentRecursive(
|
|
@@ -117985,7 +118199,7 @@ ${lanes.join("\n")}
|
|
|
117985
118199
|
commandLine = host.getParsedCommandLine(refPath);
|
|
117986
118200
|
if (!commandLine) {
|
|
117987
118201
|
addFileToFilesByName(
|
|
117988
|
-
/*
|
|
118202
|
+
/*file*/
|
|
117989
118203
|
void 0,
|
|
117990
118204
|
sourceFilePath,
|
|
117991
118205
|
/*redirectedPath*/
|
|
@@ -119116,7 +119330,6 @@ ${lanes.join("\n")}
|
|
|
119116
119330
|
Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,
|
|
119117
119331
|
Diagnostics.Invalid_use_of_0_in_strict_mode.code,
|
|
119118
119332
|
Diagnostics.A_label_is_not_allowed_here.code,
|
|
119119
|
-
Diagnostics.Octal_literals_are_not_allowed_in_strict_mode.code,
|
|
119120
119333
|
Diagnostics.with_statements_are_not_allowed_in_strict_mode.code,
|
|
119121
119334
|
// grammar errors
|
|
119122
119335
|
Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,
|
|
@@ -119449,7 +119662,7 @@ ${lanes.join("\n")}
|
|
|
119449
119662
|
), sourceFiles);
|
|
119450
119663
|
},
|
|
119451
119664
|
cancellationToken,
|
|
119452
|
-
/*
|
|
119665
|
+
/*emitOnly*/
|
|
119453
119666
|
true,
|
|
119454
119667
|
/*customTransformers*/
|
|
119455
119668
|
void 0,
|
|
@@ -120650,7 +120863,7 @@ ${lanes.join("\n")}
|
|
|
120650
120863
|
continue;
|
|
120651
120864
|
} else {
|
|
120652
120865
|
result = state.program.getSemanticDiagnostics(
|
|
120653
|
-
/*
|
|
120866
|
+
/*sourceFile*/
|
|
120654
120867
|
void 0,
|
|
120655
120868
|
cancellationToken
|
|
120656
120869
|
);
|
|
@@ -121484,7 +121697,7 @@ ${lanes.join("\n")}
|
|
|
121484
121697
|
} else {
|
|
121485
121698
|
resolutions.forEach((resolution) => watchAffectingLocationsOfResolution(
|
|
121486
121699
|
resolution,
|
|
121487
|
-
/*
|
|
121700
|
+
/*addToResolutionsWithOnlyAffectingLocations*/
|
|
121488
121701
|
true
|
|
121489
121702
|
));
|
|
121490
121703
|
}
|
|
@@ -121841,7 +122054,7 @@ ${lanes.join("\n")}
|
|
|
121841
122054
|
return getRelativePathFromDirectory(
|
|
121842
122055
|
cwd,
|
|
121843
122056
|
error.fileName,
|
|
121844
|
-
/*
|
|
122057
|
+
/*ignoreCase*/
|
|
121845
122058
|
false
|
|
121846
122059
|
) + line;
|
|
121847
122060
|
}
|
|
@@ -123027,7 +123240,6 @@ ${lanes.join("\n")}
|
|
|
123027
123240
|
);
|
|
123028
123241
|
}
|
|
123029
123242
|
function updateExtendedConfigFilesWatches(forProjectPath, options, watchOptions2, watchType) {
|
|
123030
|
-
Debug.assert(configFileName);
|
|
123031
123243
|
updateSharedExtendedConfigFileWatcher(
|
|
123032
123244
|
forProjectPath,
|
|
123033
123245
|
options,
|
|
@@ -123043,7 +123255,7 @@ ${lanes.join("\n")}
|
|
|
123043
123255
|
if (!(projects == null ? void 0 : projects.size))
|
|
123044
123256
|
return;
|
|
123045
123257
|
projects.forEach((projectPath) => {
|
|
123046
|
-
if (toPath3(configFileName) === projectPath) {
|
|
123258
|
+
if (configFileName && toPath3(configFileName) === projectPath) {
|
|
123047
123259
|
reloadLevel = 2 /* Full */;
|
|
123048
123260
|
} else {
|
|
123049
123261
|
const config = parsedConfigs == null ? void 0 : parsedConfigs.get(projectPath);
|
|
@@ -123801,7 +124013,7 @@ ${lanes.join("\n")}
|
|
|
123801
124013
|
void 0,
|
|
123802
124014
|
(name, text, writeByteOrderMark, _onError, _sourceFiles, data) => outputFiles.push({ name, text, writeByteOrderMark, data }),
|
|
123803
124015
|
cancellationToken,
|
|
123804
|
-
/*
|
|
124016
|
+
/*emitOnlyDtsFiles*/
|
|
123805
124017
|
false,
|
|
123806
124018
|
customTransformers || ((_b = (_a2 = state.host).getCustomTransformers) == null ? void 0 : _b.call(_a2, project))
|
|
123807
124019
|
);
|
|
@@ -126793,7 +127005,7 @@ ${lanes.join("\n")}
|
|
|
126793
127005
|
}
|
|
126794
127006
|
const start = allowPositionInLeadingTrivia ? children[middle].getFullStart() : children[middle].getStart(
|
|
126795
127007
|
sourceFile,
|
|
126796
|
-
/*
|
|
127008
|
+
/*includeJsDocComment*/
|
|
126797
127009
|
true
|
|
126798
127010
|
);
|
|
126799
127011
|
if (start > position) {
|
|
@@ -126828,7 +127040,7 @@ ${lanes.join("\n")}
|
|
|
126828
127040
|
}
|
|
126829
127041
|
start != null ? start : start = allowPositionInLeadingTrivia ? node.getFullStart() : node.getStart(
|
|
126830
127042
|
sourceFile,
|
|
126831
|
-
/*
|
|
127043
|
+
/*includeJsDocComment*/
|
|
126832
127044
|
true
|
|
126833
127045
|
);
|
|
126834
127046
|
if (start > position) {
|
|
@@ -127844,7 +128056,7 @@ ${lanes.join("\n")}
|
|
|
127844
128056
|
signature,
|
|
127845
128057
|
enclosingDeclaration,
|
|
127846
128058
|
flags,
|
|
127847
|
-
/*
|
|
128059
|
+
/*kind*/
|
|
127848
128060
|
void 0,
|
|
127849
128061
|
writer
|
|
127850
128062
|
);
|
|
@@ -128492,13 +128704,13 @@ ${lanes.join("\n")}
|
|
|
128492
128704
|
const fileNameCase = ts_codefix_exports.moduleSymbolToValidIdentifier(
|
|
128493
128705
|
getSymbolParentOrFail(symbol),
|
|
128494
128706
|
scriptTarget,
|
|
128495
|
-
/*
|
|
128707
|
+
/*forceCapitalize*/
|
|
128496
128708
|
false
|
|
128497
128709
|
);
|
|
128498
128710
|
const capitalized = ts_codefix_exports.moduleSymbolToValidIdentifier(
|
|
128499
128711
|
getSymbolParentOrFail(symbol),
|
|
128500
128712
|
scriptTarget,
|
|
128501
|
-
/*
|
|
128713
|
+
/*forceCapitalize*/
|
|
128502
128714
|
true
|
|
128503
128715
|
);
|
|
128504
128716
|
if (fileNameCase === capitalized)
|
|
@@ -129206,7 +129418,7 @@ ${lanes.join("\n")}
|
|
|
129206
129418
|
const lastTemplateStackToken = lastOrUndefined(templateStack);
|
|
129207
129419
|
if (lastTemplateStackToken === 15 /* TemplateHead */) {
|
|
129208
129420
|
token = scanner2.reScanTemplateToken(
|
|
129209
|
-
/*
|
|
129421
|
+
/*isTaggedTemplate*/
|
|
129210
129422
|
false
|
|
129211
129423
|
);
|
|
129212
129424
|
if (token === 17 /* TemplateTail */) {
|
|
@@ -130922,7 +131134,7 @@ ${lanes.join("\n")}
|
|
|
130922
131134
|
candidate,
|
|
130923
131135
|
span,
|
|
130924
131136
|
chunk.text,
|
|
130925
|
-
/*ignoreCase
|
|
131137
|
+
/*ignoreCase*/
|
|
130926
131138
|
true
|
|
130927
131139
|
)) {
|
|
130928
131140
|
return createPatternMatch(
|
|
@@ -130932,7 +131144,7 @@ ${lanes.join("\n")}
|
|
|
130932
131144
|
candidate,
|
|
130933
131145
|
span,
|
|
130934
131146
|
chunk.text,
|
|
130935
|
-
/*ignoreCase
|
|
131147
|
+
/*ignoreCase*/
|
|
130936
131148
|
false
|
|
130937
131149
|
)
|
|
130938
131150
|
);
|
|
@@ -130941,7 +131153,7 @@ ${lanes.join("\n")}
|
|
|
130941
131153
|
if (chunk.text.length < candidate.length && isUpperCaseLetter(candidate.charCodeAt(index))) {
|
|
130942
131154
|
return createPatternMatch(
|
|
130943
131155
|
2 /* substring */,
|
|
130944
|
-
/*isCaseSensitive
|
|
131156
|
+
/*isCaseSensitive*/
|
|
130945
131157
|
false
|
|
130946
131158
|
);
|
|
130947
131159
|
}
|
|
@@ -130949,7 +131161,7 @@ ${lanes.join("\n")}
|
|
|
130949
131161
|
if (candidate.indexOf(chunk.text) > 0) {
|
|
130950
131162
|
return createPatternMatch(
|
|
130951
131163
|
2 /* substring */,
|
|
130952
|
-
/*isCaseSensitive
|
|
131164
|
+
/*isCaseSensitive*/
|
|
130953
131165
|
true
|
|
130954
131166
|
);
|
|
130955
131167
|
}
|
|
@@ -130959,13 +131171,13 @@ ${lanes.join("\n")}
|
|
|
130959
131171
|
candidate,
|
|
130960
131172
|
candidateParts,
|
|
130961
131173
|
chunk,
|
|
130962
|
-
/*ignoreCase
|
|
131174
|
+
/*ignoreCase*/
|
|
130963
131175
|
false
|
|
130964
131176
|
) ? true : tryCamelCaseMatch(
|
|
130965
131177
|
candidate,
|
|
130966
131178
|
candidateParts,
|
|
130967
131179
|
chunk,
|
|
130968
|
-
/*ignoreCase
|
|
131180
|
+
/*ignoreCase*/
|
|
130969
131181
|
true
|
|
130970
131182
|
) ? false : void 0;
|
|
130971
131183
|
if (isCaseSensitive !== void 0) {
|
|
@@ -131119,14 +131331,14 @@ ${lanes.join("\n")}
|
|
|
131119
131331
|
function breakIntoCharacterSpans(identifier) {
|
|
131120
131332
|
return breakIntoSpans(
|
|
131121
131333
|
identifier,
|
|
131122
|
-
/*word
|
|
131334
|
+
/*word*/
|
|
131123
131335
|
false
|
|
131124
131336
|
);
|
|
131125
131337
|
}
|
|
131126
131338
|
function breakIntoWordSpans(identifier) {
|
|
131127
131339
|
return breakIntoSpans(
|
|
131128
131340
|
identifier,
|
|
131129
|
-
/*word
|
|
131341
|
+
/*word*/
|
|
131130
131342
|
true
|
|
131131
131343
|
);
|
|
131132
131344
|
}
|
|
@@ -131498,7 +131710,7 @@ ${lanes.join("\n")}
|
|
|
131498
131710
|
if (length(stack)) {
|
|
131499
131711
|
if (lastOrUndefined(stack) === 15 /* TemplateHead */) {
|
|
131500
131712
|
if (scanner.reScanTemplateToken(
|
|
131501
|
-
/*
|
|
131713
|
+
/*isTaggedTemplate*/
|
|
131502
131714
|
false
|
|
131503
131715
|
) === 17 /* TemplateTail */) {
|
|
131504
131716
|
stack.pop();
|
|
@@ -131747,7 +131959,7 @@ ${lanes.join("\n")}
|
|
|
131747
131959
|
const init = node.declarationList.declarations[0].initializer;
|
|
131748
131960
|
if (init && isRequireCall(
|
|
131749
131961
|
init,
|
|
131750
|
-
/*
|
|
131962
|
+
/*requireStringLiteralLikeArgument*/
|
|
131751
131963
|
true
|
|
131752
131964
|
)) {
|
|
131753
131965
|
diags.push(createDiagnosticForNode(init, Diagnostics.require_call_may_be_converted_to_an_import));
|
|
@@ -131773,7 +131985,7 @@ ${lanes.join("\n")}
|
|
|
131773
131985
|
case 241 /* VariableStatement */:
|
|
131774
131986
|
return statement.declarationList.declarations.some((decl) => !!decl.initializer && isRequireCall(
|
|
131775
131987
|
propertyAccessLeftHandSide(decl.initializer),
|
|
131776
|
-
/*
|
|
131988
|
+
/*requireStringLiteralLikeArgument*/
|
|
131777
131989
|
true
|
|
131778
131990
|
));
|
|
131779
131991
|
case 242 /* ExpressionStatement */: {
|
|
@@ -131781,7 +131993,7 @@ ${lanes.join("\n")}
|
|
|
131781
131993
|
if (!isBinaryExpression(expression))
|
|
131782
131994
|
return isRequireCall(
|
|
131783
131995
|
expression,
|
|
131784
|
-
/*
|
|
131996
|
+
/*requireStringLiteralLikeArgument*/
|
|
131785
131997
|
true
|
|
131786
131998
|
);
|
|
131787
131999
|
const kind = getAssignmentDeclarationKind(expression);
|
|
@@ -131975,7 +132187,7 @@ ${lanes.join("\n")}
|
|
|
131975
132187
|
languageVersion: getEmitScriptTarget(options),
|
|
131976
132188
|
impliedNodeFormat: getImpliedNodeFormatForFile(
|
|
131977
132189
|
toPath(inputFileName, "", compilerHost.getCanonicalFileName),
|
|
131978
|
-
/*
|
|
132190
|
+
/*packageJsonInfoCache*/
|
|
131979
132191
|
void 0,
|
|
131980
132192
|
compilerHost,
|
|
131981
132193
|
options
|
|
@@ -132550,10 +132762,10 @@ ${lanes.join("\n")}
|
|
|
132550
132762
|
if (ctorFunction !== void 0) {
|
|
132551
132763
|
const ctorNode = setTextRange(
|
|
132552
132764
|
factory.createConstructorDeclaration(
|
|
132553
|
-
/*
|
|
132765
|
+
/*modifiers*/
|
|
132554
132766
|
void 0,
|
|
132555
132767
|
[],
|
|
132556
|
-
/*
|
|
132768
|
+
/*body*/
|
|
132557
132769
|
void 0
|
|
132558
132770
|
),
|
|
132559
132771
|
ctorFunction
|
|
@@ -132572,12 +132784,12 @@ ${lanes.join("\n")}
|
|
|
132572
132784
|
}
|
|
132573
132785
|
}
|
|
132574
132786
|
lastANode = a.node = setTextRange(factory.createClassDeclaration(
|
|
132575
|
-
/*
|
|
132787
|
+
/*modifiers*/
|
|
132576
132788
|
void 0,
|
|
132577
132789
|
a.name || factory.createIdentifier("__class__"),
|
|
132578
|
-
/*
|
|
132790
|
+
/*typeParameters*/
|
|
132579
132791
|
void 0,
|
|
132580
|
-
/*
|
|
132792
|
+
/*heritageClauses*/
|
|
132581
132793
|
void 0,
|
|
132582
132794
|
[]
|
|
132583
132795
|
), a.node);
|
|
@@ -132594,12 +132806,12 @@ ${lanes.join("\n")}
|
|
|
132594
132806
|
if (!a.additionalNodes)
|
|
132595
132807
|
a.additionalNodes = [];
|
|
132596
132808
|
a.additionalNodes.push(setTextRange(factory.createClassDeclaration(
|
|
132597
|
-
/*
|
|
132809
|
+
/*modifiers*/
|
|
132598
132810
|
void 0,
|
|
132599
132811
|
a.name || factory.createIdentifier("__class__"),
|
|
132600
|
-
/*
|
|
132812
|
+
/*typeParameters*/
|
|
132601
132813
|
void 0,
|
|
132602
|
-
/*
|
|
132814
|
+
/*heritageClauses*/
|
|
132603
132815
|
void 0,
|
|
132604
132816
|
[]
|
|
132605
132817
|
), b.node));
|
|
@@ -133558,7 +133770,7 @@ ${lanes.join("\n")}
|
|
|
133558
133770
|
result,
|
|
133559
133771
|
parseConfigHost,
|
|
133560
133772
|
getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory),
|
|
133561
|
-
/*
|
|
133773
|
+
/*existingOptions*/
|
|
133562
133774
|
void 0,
|
|
133563
133775
|
getNormalizedAbsolutePath(configFileName, currentDirectory)
|
|
133564
133776
|
);
|
|
@@ -135288,7 +135500,7 @@ ${lanes.join("\n")}
|
|
|
135288
135500
|
const result = transformNodes(
|
|
135289
135501
|
/*resolver*/
|
|
135290
135502
|
void 0,
|
|
135291
|
-
/*
|
|
135503
|
+
/*host*/
|
|
135292
135504
|
void 0,
|
|
135293
135505
|
factory,
|
|
135294
135506
|
compilerOptions,
|
|
@@ -136089,9 +136301,9 @@ ${lanes.join("\n")}
|
|
|
136089
136301
|
() => {
|
|
136090
136302
|
const result = preProcessFile(
|
|
136091
136303
|
getSnapshotText(sourceTextSnapshot),
|
|
136092
|
-
/*
|
|
136304
|
+
/*readImportFiles*/
|
|
136093
136305
|
true,
|
|
136094
|
-
/*
|
|
136306
|
+
/*detectJavaScriptImports*/
|
|
136095
136307
|
true
|
|
136096
136308
|
);
|
|
136097
136309
|
return {
|
|
@@ -136160,7 +136372,7 @@ ${lanes.join("\n")}
|
|
|
136160
136372
|
}
|
|
136161
136373
|
discoverTypings(discoverTypingsJson) {
|
|
136162
136374
|
const getCanonicalFileName = createGetCanonicalFileName(
|
|
136163
|
-
/*
|
|
136375
|
+
/*useCaseSensitiveFileNames*/
|
|
136164
136376
|
false
|
|
136165
136377
|
);
|
|
136166
136378
|
return this.forwardJSONCall("discoverTypings()", () => {
|
|
@@ -136202,7 +136414,7 @@ ${lanes.join("\n")}
|
|
|
136202
136414
|
const languageService = createLanguageService(
|
|
136203
136415
|
hostAdapter,
|
|
136204
136416
|
this.documentRegistry,
|
|
136205
|
-
/*
|
|
136417
|
+
/*syntaxOnlyOrLanguageServiceMode*/
|
|
136206
136418
|
false
|
|
136207
136419
|
);
|
|
136208
136420
|
return new LanguageServiceShimObject(this, host, languageService);
|
|
@@ -138239,7 +138451,7 @@ ${lanes.join("\n")}
|
|
|
138239
138451
|
const prototypes = firstDeclaration.parent.right;
|
|
138240
138452
|
createClassElement(
|
|
138241
138453
|
prototypes.symbol,
|
|
138242
|
-
|
|
138454
|
+
/*modifiers*/
|
|
138243
138455
|
void 0,
|
|
138244
138456
|
memberElements
|
|
138245
138457
|
);
|
|
@@ -138311,7 +138523,7 @@ ${lanes.join("\n")}
|
|
|
138311
138523
|
members.push(factory.createPropertyDeclaration(
|
|
138312
138524
|
modifiers,
|
|
138313
138525
|
symbol2.name,
|
|
138314
|
-
/*
|
|
138526
|
+
/*questionOrExclamationToken*/
|
|
138315
138527
|
void 0,
|
|
138316
138528
|
/*type*/
|
|
138317
138529
|
void 0,
|
|
@@ -138351,7 +138563,7 @@ ${lanes.join("\n")}
|
|
|
138351
138563
|
const prop = factory.createPropertyDeclaration(
|
|
138352
138564
|
modifiers,
|
|
138353
138565
|
memberDeclaration.name,
|
|
138354
|
-
/*
|
|
138566
|
+
/*questionOrExclamationToken*/
|
|
138355
138567
|
void 0,
|
|
138356
138568
|
/*type*/
|
|
138357
138569
|
void 0,
|
|
@@ -138820,7 +139032,7 @@ ${lanes.join("\n")}
|
|
|
138820
139032
|
hasContinuation,
|
|
138821
139033
|
/*continuationArgName*/
|
|
138822
139034
|
void 0,
|
|
138823
|
-
/*
|
|
139035
|
+
/*inputArgName*/
|
|
138824
139036
|
void 0,
|
|
138825
139037
|
node,
|
|
138826
139038
|
transformer
|
|
@@ -139233,7 +139445,7 @@ ${lanes.join("\n")}
|
|
|
139233
139445
|
case 211 /* CallExpression */:
|
|
139234
139446
|
if (isRequireCall(
|
|
139235
139447
|
importNode,
|
|
139236
|
-
/*
|
|
139448
|
+
/*requireStringLiteralLikeArgument*/
|
|
139237
139449
|
false
|
|
139238
139450
|
)) {
|
|
139239
139451
|
changes.replaceNode(importingFile, importNode, factory.createPropertyAccessExpression(getSynthesizedDeepClone(importNode), "default"));
|
|
@@ -139308,11 +139520,11 @@ ${lanes.join("\n")}
|
|
|
139308
139520
|
case 211 /* CallExpression */: {
|
|
139309
139521
|
if (isRequireCall(
|
|
139310
139522
|
expression,
|
|
139311
|
-
/*
|
|
139523
|
+
/*requireStringLiteralLikeArgument*/
|
|
139312
139524
|
true
|
|
139313
139525
|
)) {
|
|
139314
139526
|
changes.replaceNode(sourceFile, statement, makeImport(
|
|
139315
|
-
/*
|
|
139527
|
+
/*defaultImport*/
|
|
139316
139528
|
void 0,
|
|
139317
139529
|
/*namedImports*/
|
|
139318
139530
|
void 0,
|
|
@@ -139343,14 +139555,14 @@ ${lanes.join("\n")}
|
|
|
139343
139555
|
return convertedImports([]);
|
|
139344
139556
|
} else if (isRequireCall(
|
|
139345
139557
|
initializer,
|
|
139346
|
-
/*
|
|
139558
|
+
/*requireStringLiteralLikeArgument*/
|
|
139347
139559
|
true
|
|
139348
139560
|
)) {
|
|
139349
139561
|
foundImport = true;
|
|
139350
139562
|
return convertSingleImport(name, initializer.arguments[0], checker, identifiers, target, quotePreference);
|
|
139351
139563
|
} else if (isPropertyAccessExpression(initializer) && isRequireCall(
|
|
139352
139564
|
initializer.expression,
|
|
139353
|
-
/*
|
|
139565
|
+
/*requireStringLiteralLikeArgument*/
|
|
139354
139566
|
true
|
|
139355
139567
|
)) {
|
|
139356
139568
|
foundImport = true;
|
|
@@ -139406,7 +139618,7 @@ ${lanes.join("\n")}
|
|
|
139406
139618
|
} else {
|
|
139407
139619
|
const replacement = isObjectLiteralExpression(right) ? tryChangeModuleExportsObject(right, useSitesToUnqualify) : isRequireCall(
|
|
139408
139620
|
right,
|
|
139409
|
-
/*
|
|
139621
|
+
/*requireStringLiteralLikeArgument*/
|
|
139410
139622
|
true
|
|
139411
139623
|
) ? convertReExportAll(right.arguments[0], checker) : void 0;
|
|
139412
139624
|
if (replacement) {
|
|
@@ -139474,7 +139686,7 @@ ${lanes.join("\n")}
|
|
|
139474
139686
|
}
|
|
139475
139687
|
function reExportStar(moduleSpecifier) {
|
|
139476
139688
|
return makeExportDeclaration(
|
|
139477
|
-
/*
|
|
139689
|
+
/*exportSpecifiers*/
|
|
139478
139690
|
void 0,
|
|
139479
139691
|
moduleSpecifier
|
|
139480
139692
|
);
|
|
@@ -139556,7 +139768,7 @@ ${lanes.join("\n")}
|
|
|
139556
139768
|
const importSpecifiers = mapAllOrFail(name.elements, (e) => e.dotDotDotToken || e.initializer || e.propertyName && !isIdentifier(e.propertyName) || !isIdentifier(e.name) ? void 0 : makeImportSpecifier(e.propertyName && e.propertyName.text, e.name.text));
|
|
139557
139769
|
if (importSpecifiers) {
|
|
139558
139770
|
return convertedImports([makeImport(
|
|
139559
|
-
/*
|
|
139771
|
+
/*defaultImport*/
|
|
139560
139772
|
void 0,
|
|
139561
139773
|
importSpecifiers,
|
|
139562
139774
|
moduleSpecifier,
|
|
@@ -139689,7 +139901,7 @@ ${lanes.join("\n")}
|
|
|
139689
139901
|
moduleSpecifier,
|
|
139690
139902
|
quotePreference
|
|
139691
139903
|
) : makeImport(
|
|
139692
|
-
/*
|
|
139904
|
+
/*defaultImport*/
|
|
139693
139905
|
void 0,
|
|
139694
139906
|
[makeImportSpecifier(propertyName, localName)],
|
|
139695
139907
|
moduleSpecifier,
|
|
@@ -140354,7 +140566,7 @@ ${lanes.join("\n")}
|
|
|
140354
140566
|
symbol,
|
|
140355
140567
|
symbolName2,
|
|
140356
140568
|
moduleSymbol,
|
|
140357
|
-
/*
|
|
140569
|
+
/*preferCapitalized*/
|
|
140358
140570
|
false,
|
|
140359
140571
|
program,
|
|
140360
140572
|
host,
|
|
@@ -142407,7 +142619,7 @@ ${lanes.join("\n")}
|
|
|
142407
142619
|
checker,
|
|
142408
142620
|
declaration,
|
|
142409
142621
|
checker.getTypeFromTypeNode(declaration.type),
|
|
142410
|
-
/*
|
|
142622
|
+
/*isFunctionType*/
|
|
142411
142623
|
false
|
|
142412
142624
|
);
|
|
142413
142625
|
case Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:
|
|
@@ -142421,7 +142633,7 @@ ${lanes.join("\n")}
|
|
|
142421
142633
|
checker,
|
|
142422
142634
|
declaration,
|
|
142423
142635
|
type,
|
|
142424
|
-
/*
|
|
142636
|
+
/*isFunctionType*/
|
|
142425
142637
|
true
|
|
142426
142638
|
);
|
|
142427
142639
|
case Diagnostics.Type_0_is_not_assignable_to_type_1.code:
|
|
@@ -142434,7 +142646,7 @@ ${lanes.join("\n")}
|
|
|
142434
142646
|
checker,
|
|
142435
142647
|
initializer,
|
|
142436
142648
|
checker.getTypeAtLocation(node.parent),
|
|
142437
|
-
/*
|
|
142649
|
+
/*isFunctionType*/
|
|
142438
142650
|
true
|
|
142439
142651
|
);
|
|
142440
142652
|
}
|
|
@@ -142487,7 +142699,7 @@ ${lanes.join("\n")}
|
|
|
142487
142699
|
declaration,
|
|
142488
142700
|
expression,
|
|
142489
142701
|
commentSource,
|
|
142490
|
-
/*
|
|
142702
|
+
/*withParen*/
|
|
142491
142703
|
false
|
|
142492
142704
|
));
|
|
142493
142705
|
return createCodeFixAction(fixId23, changes, Diagnostics.Remove_braces_from_arrow_function_body, fixRemoveBracesFromArrowFunctionBody, Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues);
|
|
@@ -142546,7 +142758,7 @@ ${lanes.join("\n")}
|
|
|
142546
142758
|
info.declaration,
|
|
142547
142759
|
info.expression,
|
|
142548
142760
|
info.commentSource,
|
|
142549
|
-
/*
|
|
142761
|
+
/*withParen*/
|
|
142550
142762
|
false
|
|
142551
142763
|
);
|
|
142552
142764
|
break;
|
|
@@ -142583,9 +142795,9 @@ ${lanes.join("\n")}
|
|
|
142583
142795
|
const properties = arrayFrom(checker.getUnmatchedProperties(
|
|
142584
142796
|
checker.getTypeAtLocation(parent2),
|
|
142585
142797
|
checker.getParameterType(signature, argIndex),
|
|
142586
|
-
/*
|
|
142798
|
+
/*requireOptionalProperties*/
|
|
142587
142799
|
false,
|
|
142588
|
-
/*
|
|
142800
|
+
/*matchDiscriminantProperties*/
|
|
142589
142801
|
false
|
|
142590
142802
|
));
|
|
142591
142803
|
if (!length(properties))
|
|
@@ -142599,9 +142811,9 @@ ${lanes.join("\n")}
|
|
|
142599
142811
|
const properties = arrayFrom(checker.getUnmatchedProperties(
|
|
142600
142812
|
checker.getTypeAtLocation(parent2.initializer),
|
|
142601
142813
|
targetType,
|
|
142602
|
-
/*
|
|
142814
|
+
/*requireOptionalProperties*/
|
|
142603
142815
|
false,
|
|
142604
|
-
/*
|
|
142816
|
+
/*matchDiscriminantProperties*/
|
|
142605
142817
|
false
|
|
142606
142818
|
));
|
|
142607
142819
|
if (!length(properties))
|
|
@@ -142694,7 +142906,7 @@ ${lanes.join("\n")}
|
|
|
142694
142906
|
/*modifiers*/
|
|
142695
142907
|
void 0,
|
|
142696
142908
|
tokenName,
|
|
142697
|
-
/*
|
|
142909
|
+
/*questionOrExclamationToken*/
|
|
142698
142910
|
void 0,
|
|
142699
142911
|
/*type*/
|
|
142700
142912
|
void 0,
|
|
@@ -142757,7 +142969,7 @@ ${lanes.join("\n")}
|
|
|
142757
142969
|
const property = isClassLike(node) ? factory.createPropertyDeclaration(
|
|
142758
142970
|
modifiers,
|
|
142759
142971
|
tokenName,
|
|
142760
|
-
/*
|
|
142972
|
+
/*questionOrExclamationToken*/
|
|
142761
142973
|
void 0,
|
|
142762
142974
|
typeNode,
|
|
142763
142975
|
/*initializer*/
|
|
@@ -143759,7 +143971,7 @@ ${lanes.join("\n")}
|
|
|
143759
143971
|
preferences,
|
|
143760
143972
|
sourceFile,
|
|
143761
143973
|
span.start,
|
|
143762
|
-
/*
|
|
143974
|
+
/*useHtmlEntity*/
|
|
143763
143975
|
false
|
|
143764
143976
|
));
|
|
143765
143977
|
const changeToHtmlEntity = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange18(
|
|
@@ -143767,7 +143979,7 @@ ${lanes.join("\n")}
|
|
|
143767
143979
|
preferences,
|
|
143768
143980
|
sourceFile,
|
|
143769
143981
|
span.start,
|
|
143770
|
-
/*
|
|
143982
|
+
/*useHtmlEntity*/
|
|
143771
143983
|
true
|
|
143772
143984
|
));
|
|
143773
143985
|
return [
|
|
@@ -144901,7 +145113,7 @@ ${lanes.join("\n")}
|
|
|
144901
145113
|
if (importableReference && changes.tryInsertTypeAnnotation(sourceFile, declaration, importableReference.typeNode)) {
|
|
144902
145114
|
forEach(importableReference.symbols, (s) => importAdder.addImportFromExportedSymbol(
|
|
144903
145115
|
s,
|
|
144904
|
-
/*
|
|
145116
|
+
/*isValidTypeOnlyUseSite*/
|
|
144905
145117
|
true
|
|
144906
145118
|
));
|
|
144907
145119
|
return true;
|
|
@@ -144957,7 +145169,7 @@ ${lanes.join("\n")}
|
|
|
144957
145169
|
/*isBracketed*/
|
|
144958
145170
|
!!isOptional,
|
|
144959
145171
|
factory.createJSDocTypeExpression(typeNode),
|
|
144960
|
-
/*
|
|
145172
|
+
/*isNameFirst*/
|
|
144961
145173
|
false,
|
|
144962
145174
|
/*comment*/
|
|
144963
145175
|
void 0
|
|
@@ -145825,7 +146037,7 @@ ${lanes.join("\n")}
|
|
|
145825
146037
|
preferences,
|
|
145826
146038
|
importAdder,
|
|
145827
146039
|
addClassElement,
|
|
145828
|
-
/*
|
|
146040
|
+
/*body*/
|
|
145829
146041
|
void 0
|
|
145830
146042
|
);
|
|
145831
146043
|
}
|
|
@@ -146293,7 +146505,7 @@ ${lanes.join("\n")}
|
|
|
146293
146505
|
const parameters = createDummyParameters(
|
|
146294
146506
|
maxNonRestArgs,
|
|
146295
146507
|
maxArgsParameterSymbolNames,
|
|
146296
|
-
/*
|
|
146508
|
+
/*types*/
|
|
146297
146509
|
void 0,
|
|
146298
146510
|
minArgumentCount,
|
|
146299
146511
|
/*inJs*/
|
|
@@ -146362,7 +146574,7 @@ ${lanes.join("\n")}
|
|
|
146362
146574
|
)]
|
|
146363
146575
|
)
|
|
146364
146576
|
)],
|
|
146365
|
-
/*
|
|
146577
|
+
/*multiLine*/
|
|
146366
146578
|
true
|
|
146367
146579
|
);
|
|
146368
146580
|
}
|
|
@@ -146979,7 +147191,7 @@ ${lanes.join("\n")}
|
|
|
146979
147191
|
const { parent: parent2 } = getTokenAtPosition(sourceFile, pos);
|
|
146980
147192
|
if (!isRequireCall(
|
|
146981
147193
|
parent2,
|
|
146982
|
-
/*
|
|
147194
|
+
/*requireStringLiteralLikeArgument*/
|
|
146983
147195
|
true
|
|
146984
147196
|
)) {
|
|
146985
147197
|
Debug.failBadSyntaxKind(parent2);
|
|
@@ -147142,7 +147354,7 @@ ${lanes.join("\n")}
|
|
|
147142
147354
|
importType.assertions,
|
|
147143
147355
|
importType.qualifier,
|
|
147144
147356
|
importType.typeArguments,
|
|
147145
|
-
/*
|
|
147357
|
+
/*isTypeOf*/
|
|
147146
147358
|
true
|
|
147147
147359
|
);
|
|
147148
147360
|
changes.replaceNode(sourceFile, importType, newTypeNode);
|
|
@@ -148473,14 +148685,14 @@ ${lanes.join("\n")}
|
|
|
148473
148685
|
const emptyStmt = factory.createEmptyStatement();
|
|
148474
148686
|
body = factory.createBlock(
|
|
148475
148687
|
[emptyStmt],
|
|
148476
|
-
/*
|
|
148688
|
+
/*multiLine*/
|
|
148477
148689
|
true
|
|
148478
148690
|
);
|
|
148479
148691
|
setSnippetElement(emptyStmt, { kind: 0 /* TabStop */, order: 0 });
|
|
148480
148692
|
} else {
|
|
148481
148693
|
body = factory.createBlock(
|
|
148482
148694
|
[],
|
|
148483
|
-
/*
|
|
148695
|
+
/*multiLine*/
|
|
148484
148696
|
true
|
|
148485
148697
|
);
|
|
148486
148698
|
}
|
|
@@ -148658,14 +148870,14 @@ ${lanes.join("\n")}
|
|
|
148658
148870
|
const emptyStmt = factory.createEmptyStatement();
|
|
148659
148871
|
body = factory.createBlock(
|
|
148660
148872
|
[emptyStmt],
|
|
148661
|
-
/*
|
|
148873
|
+
/*multiLine*/
|
|
148662
148874
|
true
|
|
148663
148875
|
);
|
|
148664
148876
|
setSnippetElement(emptyStmt, { kind: 0 /* TabStop */, order: 0 });
|
|
148665
148877
|
} else {
|
|
148666
148878
|
body = factory.createBlock(
|
|
148667
148879
|
[],
|
|
148668
|
-
/*
|
|
148880
|
+
/*multiLine*/
|
|
148669
148881
|
true
|
|
148670
148882
|
);
|
|
148671
148883
|
}
|
|
@@ -149640,7 +149852,7 @@ ${lanes.join("\n")}
|
|
|
149640
149852
|
if (typeChecker.isValidPropertyAccessForCompletions(propertyAccess, type, symbol)) {
|
|
149641
149853
|
addPropertySymbol(
|
|
149642
149854
|
symbol,
|
|
149643
|
-
/*
|
|
149855
|
+
/*insertAwait*/
|
|
149644
149856
|
false,
|
|
149645
149857
|
insertQuestionDot
|
|
149646
149858
|
);
|
|
@@ -149656,7 +149868,7 @@ ${lanes.join("\n")}
|
|
|
149656
149868
|
if (typeChecker.isValidPropertyAccessForCompletions(propertyAccess, promiseType, symbol)) {
|
|
149657
149869
|
addPropertySymbol(
|
|
149658
149870
|
symbol,
|
|
149659
|
-
/*
|
|
149871
|
+
/*insertAwait*/
|
|
149660
149872
|
true,
|
|
149661
149873
|
insertQuestionDot
|
|
149662
149874
|
);
|
|
@@ -150155,7 +150367,7 @@ ${lanes.join("\n")}
|
|
|
150155
150367
|
objectLikeContainer,
|
|
150156
150368
|
/*isSuper*/
|
|
150157
150369
|
false,
|
|
150158
|
-
/*
|
|
150370
|
+
/*isWrite*/
|
|
150159
150371
|
false,
|
|
150160
150372
|
typeForObject,
|
|
150161
150373
|
propertySymbol
|
|
@@ -151245,7 +151457,7 @@ ${lanes.join("\n")}
|
|
|
151245
151457
|
options,
|
|
151246
151458
|
/*formatContext*/
|
|
151247
151459
|
void 0,
|
|
151248
|
-
/*isTypeOnlyLocation
|
|
151460
|
+
/*isTypeOnlyLocation*/
|
|
151249
151461
|
void 0,
|
|
151250
151462
|
/*propertyAccessToConvert*/
|
|
151251
151463
|
void 0,
|
|
@@ -151510,7 +151722,7 @@ ${lanes.join("\n")}
|
|
|
151510
151722
|
const scriptPath = sourceFile.path;
|
|
151511
151723
|
const scriptDirectory = getDirectoryPath(scriptPath);
|
|
151512
151724
|
const extensionOptions = getExtensionOptions(compilerOptions, 1 /* ModuleSpecifier */, sourceFile, typeChecker, preferences, mode);
|
|
151513
|
-
return isPathRelativeToScript(literalValue) || !compilerOptions.baseUrl && (isRootedDiskPath(literalValue) || isUrl(literalValue)) ? getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, compilerOptions, host, scriptPath, extensionOptions) : getCompletionEntriesForNonRelativeModules(literalValue, scriptDirectory, mode, compilerOptions, host, extensionOptions, typeChecker);
|
|
151725
|
+
return isPathRelativeToScript(literalValue) || !compilerOptions.baseUrl && !compilerOptions.paths && (isRootedDiskPath(literalValue) || isUrl(literalValue)) ? getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, compilerOptions, host, scriptPath, extensionOptions) : getCompletionEntriesForNonRelativeModules(literalValue, scriptDirectory, mode, compilerOptions, host, extensionOptions, typeChecker);
|
|
151514
151726
|
}
|
|
151515
151727
|
function getExtensionOptions(compilerOptions, referenceKind, importingSourceFile, typeChecker, preferences, resolutionMode) {
|
|
151516
151728
|
return {
|
|
@@ -151713,8 +151925,7 @@ ${lanes.join("\n")}
|
|
|
151713
151925
|
const result = createNameAndKindSet();
|
|
151714
151926
|
const moduleResolution = getEmitModuleResolutionKind(compilerOptions);
|
|
151715
151927
|
if (baseUrl) {
|
|
151716
|
-
const
|
|
151717
|
-
const absolute = normalizePath(combinePaths(projectDir, baseUrl));
|
|
151928
|
+
const absolute = normalizePath(combinePaths(host.getCurrentDirectory(), baseUrl));
|
|
151718
151929
|
getCompletionEntriesForDirectoryFragment(
|
|
151719
151930
|
fragment,
|
|
151720
151931
|
absolute,
|
|
@@ -151726,9 +151937,10 @@ ${lanes.join("\n")}
|
|
|
151726
151937
|
void 0,
|
|
151727
151938
|
result
|
|
151728
151939
|
);
|
|
151729
|
-
|
|
151730
|
-
|
|
151731
|
-
|
|
151940
|
+
}
|
|
151941
|
+
if (paths) {
|
|
151942
|
+
const absolute = getPathsBasePath(compilerOptions, host);
|
|
151943
|
+
addCompletionEntriesFromPaths(result, fragment, absolute, extensionOptions, host, paths);
|
|
151732
151944
|
}
|
|
151733
151945
|
const fragmentDirectory = getFragmentDirectory(fragment);
|
|
151734
151946
|
for (const ambientName of getAmbientModuleCompletions(fragment, fragmentDirectory, typeChecker)) {
|
|
@@ -152168,7 +152380,7 @@ ${lanes.join("\n")}
|
|
|
152168
152380
|
} else if (direct.exportClause.kind === 278 /* NamespaceExport */) {
|
|
152169
152381
|
addIndirectUser(
|
|
152170
152382
|
getSourceFileLikeForImportDeclaration(direct),
|
|
152171
|
-
|
|
152383
|
+
/*addTransitiveDependencies*/
|
|
152172
152384
|
true
|
|
152173
152385
|
);
|
|
152174
152386
|
} else {
|
|
@@ -152179,7 +152391,7 @@ ${lanes.join("\n")}
|
|
|
152179
152391
|
if (!isAvailableThroughGlobal && direct.isTypeOf && !direct.qualifier && isExported2(direct)) {
|
|
152180
152392
|
addIndirectUser(
|
|
152181
152393
|
direct.getSourceFile(),
|
|
152182
|
-
|
|
152394
|
+
/*addTransitiveDependencies*/
|
|
152183
152395
|
true
|
|
152184
152396
|
);
|
|
152185
152397
|
}
|
|
@@ -152198,7 +152410,7 @@ ${lanes.join("\n")}
|
|
|
152198
152410
|
/** addTransitiveDependencies */
|
|
152199
152411
|
!!isExported2(
|
|
152200
152412
|
importCall,
|
|
152201
|
-
|
|
152413
|
+
/*stopAtAmbientModule*/
|
|
152202
152414
|
true
|
|
152203
152415
|
)
|
|
152204
152416
|
);
|
|
@@ -152220,7 +152432,7 @@ ${lanes.join("\n")}
|
|
|
152220
152432
|
if (isReExport || findNamespaceReExports(sourceFileLike, name, checker)) {
|
|
152221
152433
|
addIndirectUser(
|
|
152222
152434
|
sourceFileLike,
|
|
152223
|
-
|
|
152435
|
+
/*addTransitiveDependencies*/
|
|
152224
152436
|
true
|
|
152225
152437
|
);
|
|
152226
152438
|
} else {
|
|
@@ -152246,7 +152458,7 @@ ${lanes.join("\n")}
|
|
|
152246
152458
|
if (!isImportTypeNode(directImport)) {
|
|
152247
152459
|
addIndirectUser(
|
|
152248
152460
|
getSourceFileLikeForImportDeclaration(directImport),
|
|
152249
|
-
|
|
152461
|
+
/*addTransitiveDependencies*/
|
|
152250
152462
|
true
|
|
152251
152463
|
);
|
|
152252
152464
|
}
|
|
@@ -152377,10 +152589,10 @@ ${lanes.join("\n")}
|
|
|
152377
152589
|
}
|
|
152378
152590
|
}
|
|
152379
152591
|
}
|
|
152380
|
-
forEachImport(referencingFile, (
|
|
152592
|
+
forEachImport(referencingFile, (importDecl, moduleSpecifier) => {
|
|
152381
152593
|
const moduleSymbol = checker.getSymbolAtLocation(moduleSpecifier);
|
|
152382
152594
|
if (moduleSymbol === searchModuleSymbol) {
|
|
152383
|
-
refs.push({ kind: "import", literal: moduleSpecifier });
|
|
152595
|
+
refs.push(nodeIsSynthesized(importDecl) ? { kind: "implicit", literal: moduleSpecifier, referencingFile } : { kind: "import", literal: moduleSpecifier });
|
|
152384
152596
|
}
|
|
152385
152597
|
});
|
|
152386
152598
|
}
|
|
@@ -153303,6 +153515,12 @@ ${lanes.join("\n")}
|
|
|
153303
153515
|
}
|
|
153304
153516
|
}
|
|
153305
153517
|
return nodeEntry(reference.literal);
|
|
153518
|
+
} else if (reference.kind === "implicit") {
|
|
153519
|
+
const range = reference.literal.text !== externalHelpersModuleNameText && forEachChildRecursively(
|
|
153520
|
+
reference.referencingFile,
|
|
153521
|
+
(n) => !(n.transformFlags & 2 /* ContainsJsx */) ? "skip" : isJsxElement(n) || isJsxSelfClosingElement(n) || isJsxFragment(n) ? n : void 0
|
|
153522
|
+
) || reference.referencingFile.statements[0] || reference.referencingFile;
|
|
153523
|
+
return nodeEntry(range);
|
|
153306
153524
|
} else {
|
|
153307
153525
|
return {
|
|
153308
153526
|
kind: 0 /* Span */,
|
|
@@ -154196,7 +154414,7 @@ ${lanes.join("\n")}
|
|
|
154196
154414
|
function getReferencesForThisKeyword(thisOrSuperKeyword, sourceFiles, cancellationToken) {
|
|
154197
154415
|
let searchSpaceNode = getThisContainer(
|
|
154198
154416
|
thisOrSuperKeyword,
|
|
154199
|
-
/*
|
|
154417
|
+
/*includeArrowFunctions*/
|
|
154200
154418
|
false,
|
|
154201
154419
|
/*includeClassComputedPropertyName*/
|
|
154202
154420
|
false
|
|
@@ -154236,7 +154454,7 @@ ${lanes.join("\n")}
|
|
|
154236
154454
|
}
|
|
154237
154455
|
const container = getThisContainer(
|
|
154238
154456
|
node,
|
|
154239
|
-
/*
|
|
154457
|
+
/*includeArrowFunctions*/
|
|
154240
154458
|
false,
|
|
154241
154459
|
/*includeClassComputedPropertyName*/
|
|
154242
154460
|
false
|
|
@@ -156947,7 +157165,7 @@ ${lanes.join("\n")}
|
|
|
156947
157165
|
changes.deleteRange(importingSourceFile, { pos: ref.getStart(importingSourceFile), end: namedBindings.getStart(importingSourceFile) });
|
|
156948
157166
|
const quotePreference = isStringLiteral(clause.parent.moduleSpecifier) ? quotePreferenceFromString(clause.parent.moduleSpecifier, importingSourceFile) : 1 /* Double */;
|
|
156949
157167
|
const newImport = makeImport(
|
|
156950
|
-
/*
|
|
157168
|
+
/*defaultImport*/
|
|
156951
157169
|
void 0,
|
|
156952
157170
|
[makeImportSpecifier2(exportName, ref.text)],
|
|
156953
157171
|
clause.parent.moduleSpecifier,
|
|
@@ -157351,7 +157569,7 @@ ${lanes.join("\n")}
|
|
|
157351
157569
|
typeName.text,
|
|
157352
157570
|
typeName,
|
|
157353
157571
|
262144 /* TypeParameter */,
|
|
157354
|
-
/*
|
|
157572
|
+
/*excludeGlobals*/
|
|
157355
157573
|
true
|
|
157356
157574
|
);
|
|
157357
157575
|
for (const decl of (symbol == null ? void 0 : symbol.declarations) || emptyArray) {
|
|
@@ -157382,7 +157600,7 @@ ${lanes.join("\n")}
|
|
|
157382
157600
|
node.exprName.text,
|
|
157383
157601
|
node.exprName,
|
|
157384
157602
|
111551 /* Value */,
|
|
157385
|
-
/*
|
|
157603
|
+
/*excludeGlobals*/
|
|
157386
157604
|
false
|
|
157387
157605
|
);
|
|
157388
157606
|
if ((symbol == null ? void 0 : symbol.valueDeclaration) && rangeContainsSkipTrivia(enclosingNode, symbol.valueDeclaration, file) && !rangeContainsSkipTrivia(selection, symbol.valueDeclaration, file)) {
|
|
@@ -157403,7 +157621,7 @@ ${lanes.join("\n")}
|
|
|
157403
157621
|
function doTypeAliasChange(changes, file, name, info) {
|
|
157404
157622
|
const { enclosingNode, selection, typeParameters } = info;
|
|
157405
157623
|
const newTypeNode = factory.createTypeAliasDeclaration(
|
|
157406
|
-
/*
|
|
157624
|
+
/*modifiers*/
|
|
157407
157625
|
void 0,
|
|
157408
157626
|
name,
|
|
157409
157627
|
typeParameters.map((id) => factory.updateTypeParameterDeclaration(
|
|
@@ -157411,7 +157629,7 @@ ${lanes.join("\n")}
|
|
|
157411
157629
|
id.modifiers,
|
|
157412
157630
|
id.name,
|
|
157413
157631
|
id.constraint,
|
|
157414
|
-
/*
|
|
157632
|
+
/*defaultType*/
|
|
157415
157633
|
void 0
|
|
157416
157634
|
)),
|
|
157417
157635
|
selection
|
|
@@ -157420,12 +157638,12 @@ ${lanes.join("\n")}
|
|
|
157420
157638
|
file,
|
|
157421
157639
|
enclosingNode,
|
|
157422
157640
|
ignoreSourceNewlines(newTypeNode),
|
|
157423
|
-
/*
|
|
157641
|
+
/*blankLineBetween*/
|
|
157424
157642
|
true
|
|
157425
157643
|
);
|
|
157426
157644
|
changes.replaceNode(file, selection, factory.createTypeReferenceNode(name, typeParameters.map((id) => factory.createTypeReferenceNode(
|
|
157427
157645
|
id.name,
|
|
157428
|
-
/*
|
|
157646
|
+
/*typeArguments*/
|
|
157429
157647
|
void 0
|
|
157430
157648
|
))), { leadingTriviaOption: ts_textChanges_exports.LeadingTriviaOption.Exclude, trailingTriviaOption: ts_textChanges_exports.TrailingTriviaOption.ExcludeWhitespace });
|
|
157431
157649
|
}
|
|
@@ -157433,11 +157651,11 @@ ${lanes.join("\n")}
|
|
|
157433
157651
|
var _a2;
|
|
157434
157652
|
const { enclosingNode, selection, typeParameters, typeElements } = info;
|
|
157435
157653
|
const newTypeNode = factory.createInterfaceDeclaration(
|
|
157436
|
-
/*
|
|
157654
|
+
/*modifiers*/
|
|
157437
157655
|
void 0,
|
|
157438
157656
|
name,
|
|
157439
157657
|
typeParameters,
|
|
157440
|
-
/*
|
|
157658
|
+
/*heritageClauses*/
|
|
157441
157659
|
void 0,
|
|
157442
157660
|
typeElements
|
|
157443
157661
|
);
|
|
@@ -157446,12 +157664,12 @@ ${lanes.join("\n")}
|
|
|
157446
157664
|
file,
|
|
157447
157665
|
enclosingNode,
|
|
157448
157666
|
ignoreSourceNewlines(newTypeNode),
|
|
157449
|
-
/*
|
|
157667
|
+
/*blankLineBetween*/
|
|
157450
157668
|
true
|
|
157451
157669
|
);
|
|
157452
157670
|
changes.replaceNode(file, selection, factory.createTypeReferenceNode(name, typeParameters.map((id) => factory.createTypeReferenceNode(
|
|
157453
157671
|
id.name,
|
|
157454
|
-
/*
|
|
157672
|
+
/*typeArguments*/
|
|
157455
157673
|
void 0
|
|
157456
157674
|
))), { leadingTriviaOption: ts_textChanges_exports.LeadingTriviaOption.Exclude, trailingTriviaOption: ts_textChanges_exports.TrailingTriviaOption.ExcludeWhitespace });
|
|
157457
157675
|
}
|
|
@@ -157480,7 +157698,7 @@ ${lanes.join("\n")}
|
|
|
157480
157698
|
templates.push(template);
|
|
157481
157699
|
});
|
|
157482
157700
|
const jsDoc = factory.createJSDocComment(
|
|
157483
|
-
/*
|
|
157701
|
+
/*comment*/
|
|
157484
157702
|
void 0,
|
|
157485
157703
|
factory.createNodeArray(concatenate(templates, [node]))
|
|
157486
157704
|
);
|
|
@@ -157495,13 +157713,13 @@ ${lanes.join("\n")}
|
|
|
157495
157713
|
file,
|
|
157496
157714
|
enclosingNode,
|
|
157497
157715
|
jsDoc,
|
|
157498
|
-
/*
|
|
157716
|
+
/*blankLineBetween*/
|
|
157499
157717
|
true
|
|
157500
157718
|
);
|
|
157501
157719
|
}
|
|
157502
157720
|
changes.replaceNode(file, selection, factory.createTypeReferenceNode(name, typeParameters.map((id) => factory.createTypeReferenceNode(
|
|
157503
157721
|
id.name,
|
|
157504
|
-
/*
|
|
157722
|
+
/*typeArguments*/
|
|
157505
157723
|
void 0
|
|
157506
157724
|
))));
|
|
157507
157725
|
}
|
|
@@ -157677,7 +157895,7 @@ ${lanes.join("\n")}
|
|
|
157677
157895
|
case 241 /* VariableStatement */:
|
|
157678
157896
|
return node.declarationList.declarations.every((d) => !!d.initializer && isRequireCall(
|
|
157679
157897
|
d.initializer,
|
|
157680
|
-
/*
|
|
157898
|
+
/*requireStringLiteralLikeArgument*/
|
|
157681
157899
|
true
|
|
157682
157900
|
));
|
|
157683
157901
|
default:
|
|
@@ -157867,7 +158085,7 @@ ${lanes.join("\n")}
|
|
|
157867
158085
|
for (const decl of statement.declarationList.declarations) {
|
|
157868
158086
|
if (decl.initializer && isRequireCall(
|
|
157869
158087
|
decl.initializer,
|
|
157870
|
-
/*
|
|
158088
|
+
/*requireStringLiteralLikeArgument*/
|
|
157871
158089
|
true
|
|
157872
158090
|
)) {
|
|
157873
158091
|
cb(decl);
|
|
@@ -158159,7 +158377,7 @@ ${lanes.join("\n")}
|
|
|
158159
158377
|
function isVariableDeclarationInImport(decl) {
|
|
158160
158378
|
return isSourceFile(decl.parent.parent.parent) && !!decl.initializer && isRequireCall(
|
|
158161
158379
|
decl.initializer,
|
|
158162
|
-
/*
|
|
158380
|
+
/*requireStringLiteralLikeArgument*/
|
|
158163
158381
|
true
|
|
158164
158382
|
);
|
|
158165
158383
|
}
|
|
@@ -158693,7 +158911,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
158693
158911
|
const returnStatement2 = factory.createReturnStatement(expression);
|
|
158694
158912
|
body = factory.createBlock(
|
|
158695
158913
|
[returnStatement2],
|
|
158696
|
-
/*
|
|
158914
|
+
/*multiLine*/
|
|
158697
158915
|
true
|
|
158698
158916
|
);
|
|
158699
158917
|
copyLeadingComments(
|
|
@@ -158701,7 +158919,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
158701
158919
|
returnStatement2,
|
|
158702
158920
|
file,
|
|
158703
158921
|
3 /* MultiLineCommentTrivia */,
|
|
158704
|
-
/*
|
|
158922
|
+
/*hasTrailingNewLine*/
|
|
158705
158923
|
true
|
|
158706
158924
|
);
|
|
158707
158925
|
} else if (actionName2 === removeBracesAction.name && returnStatement) {
|
|
@@ -158712,7 +158930,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
158712
158930
|
body,
|
|
158713
158931
|
file,
|
|
158714
158932
|
3 /* MultiLineCommentTrivia */,
|
|
158715
|
-
/*
|
|
158933
|
+
/*hasTrailingNewLine*/
|
|
158716
158934
|
false
|
|
158717
158935
|
);
|
|
158718
158936
|
copyLeadingComments(
|
|
@@ -158720,7 +158938,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
158720
158938
|
body,
|
|
158721
158939
|
file,
|
|
158722
158940
|
3 /* MultiLineCommentTrivia */,
|
|
158723
|
-
/*
|
|
158941
|
+
/*hasTrailingNewLine*/
|
|
158724
158942
|
false
|
|
158725
158943
|
);
|
|
158726
158944
|
copyTrailingComments(
|
|
@@ -158728,7 +158946,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
158728
158946
|
body,
|
|
158729
158947
|
file,
|
|
158730
158948
|
3 /* MultiLineCommentTrivia */,
|
|
158731
|
-
/*
|
|
158949
|
+
/*hasTrailingNewLine*/
|
|
158732
158950
|
false
|
|
158733
158951
|
);
|
|
158734
158952
|
} else {
|
|
@@ -158919,14 +159137,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
158919
159137
|
body,
|
|
158920
159138
|
returnStatement,
|
|
158921
159139
|
file,
|
|
158922
|
-
/*
|
|
159140
|
+
/*commentKind*/
|
|
158923
159141
|
void 0,
|
|
158924
|
-
/*
|
|
159142
|
+
/*hasTrailingNewLine*/
|
|
158925
159143
|
true
|
|
158926
159144
|
);
|
|
158927
159145
|
return factory.createBlock(
|
|
158928
159146
|
[returnStatement],
|
|
158929
|
-
/*
|
|
159147
|
+
/*multiLine*/
|
|
158930
159148
|
true
|
|
158931
159149
|
);
|
|
158932
159150
|
} else {
|
|
@@ -158949,7 +159167,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
158949
159167
|
const newNode = factory.createFunctionExpression(
|
|
158950
159168
|
func.modifiers,
|
|
158951
159169
|
func.asteriskToken,
|
|
158952
|
-
/*
|
|
159170
|
+
/*name*/
|
|
158953
159171
|
void 0,
|
|
158954
159172
|
func.typeParameters,
|
|
158955
159173
|
func.parameters,
|
|
@@ -159760,7 +159978,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
159760
159978
|
node.expression,
|
|
159761
159979
|
file,
|
|
159762
159980
|
3 /* MultiLineCommentTrivia */,
|
|
159763
|
-
/*
|
|
159981
|
+
/*hasTrailingNewLine*/
|
|
159764
159982
|
false
|
|
159765
159983
|
);
|
|
159766
159984
|
copyTrailingAsLeadingComments(
|
|
@@ -159768,7 +159986,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
159768
159986
|
node.expression,
|
|
159769
159987
|
file,
|
|
159770
159988
|
3 /* MultiLineCommentTrivia */,
|
|
159771
|
-
/*
|
|
159989
|
+
/*hasTrailingNewLine*/
|
|
159772
159990
|
false
|
|
159773
159991
|
);
|
|
159774
159992
|
}
|
|
@@ -159804,7 +160022,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
159804
160022
|
targetNode,
|
|
159805
160023
|
file,
|
|
159806
160024
|
3 /* MultiLineCommentTrivia */,
|
|
159807
|
-
/*
|
|
160025
|
+
/*hasTrailingNewLine*/
|
|
159808
160026
|
false
|
|
159809
160027
|
);
|
|
159810
160028
|
}
|
|
@@ -159817,7 +160035,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
159817
160035
|
targetNode,
|
|
159818
160036
|
file,
|
|
159819
160037
|
3 /* MultiLineCommentTrivia */,
|
|
159820
|
-
/*
|
|
160038
|
+
/*hasTrailingNewLine*/
|
|
159821
160039
|
false
|
|
159822
160040
|
);
|
|
159823
160041
|
copyOperatorComments(index, targetNode);
|
|
@@ -160329,7 +160547,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
160329
160547
|
if (rangeFacts & 8 /* UsesThis */) {
|
|
160330
160548
|
const container = getThisContainer(
|
|
160331
160549
|
nodeToCheck,
|
|
160332
|
-
|
|
160550
|
+
/*includeArrowFunctions*/
|
|
160333
160551
|
false,
|
|
160334
160552
|
/*includeClassComputedPropertyName*/
|
|
160335
160553
|
false
|
|
@@ -160900,7 +161118,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
160900
161118
|
edits,
|
|
160901
161119
|
renameFilename,
|
|
160902
161120
|
functionNameText,
|
|
160903
|
-
/*
|
|
161121
|
+
/*preferLastLocation*/
|
|
160904
161122
|
false
|
|
160905
161123
|
);
|
|
160906
161124
|
return { renameFilename, renameLocation, edits };
|
|
@@ -160943,7 +161161,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
160943
161161
|
const newVariable = factory.createPropertyDeclaration(
|
|
160944
161162
|
modifiers,
|
|
160945
161163
|
localNameText,
|
|
160946
|
-
/*
|
|
161164
|
+
/*questionOrExclamationToken*/
|
|
160947
161165
|
void 0,
|
|
160948
161166
|
variableType,
|
|
160949
161167
|
initializer
|
|
@@ -161033,7 +161251,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
161033
161251
|
edits,
|
|
161034
161252
|
renameFilename,
|
|
161035
161253
|
localNameText,
|
|
161036
|
-
/*
|
|
161254
|
+
/*preferLastLocation*/
|
|
161037
161255
|
true
|
|
161038
161256
|
);
|
|
161039
161257
|
return { renameFilename, renameLocation, edits };
|
|
@@ -161087,12 +161305,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
161087
161305
|
if (!firstParameter || isIdentifier(firstParameter.name) && firstParameter.name.escapedText !== "this") {
|
|
161088
161306
|
const thisType = checker.getTypeOfSymbolAtLocation(functionSignature.thisParameter, node);
|
|
161089
161307
|
parameters.splice(0, 0, factory.createParameterDeclaration(
|
|
161090
|
-
/*
|
|
161308
|
+
/*modifiers*/
|
|
161091
161309
|
void 0,
|
|
161092
|
-
/*
|
|
161310
|
+
/*dotDotDotToken*/
|
|
161093
161311
|
void 0,
|
|
161094
161312
|
"this",
|
|
161095
|
-
/*
|
|
161313
|
+
/*questionToken*/
|
|
161096
161314
|
void 0,
|
|
161097
161315
|
checker.typeToTypeNode(thisType, scope, 1 /* NoTruncation */)
|
|
161098
161316
|
));
|
|
@@ -161154,7 +161372,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
161154
161372
|
if (isBlock(body) && !hasWritesOrVariableDeclarations && substitutions.size === 0) {
|
|
161155
161373
|
return { body: factory.createBlock(
|
|
161156
161374
|
body.statements,
|
|
161157
|
-
/*
|
|
161375
|
+
/*multiLine*/
|
|
161158
161376
|
true
|
|
161159
161377
|
), returnValueProperty: void 0 };
|
|
161160
161378
|
}
|
|
@@ -164767,7 +164985,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
164767
164985
|
const end = skipTrivia(
|
|
164768
164986
|
sourceFile.text,
|
|
164769
164987
|
nextToken.end,
|
|
164770
|
-
/*
|
|
164988
|
+
/*stopAfterLineBreak*/
|
|
164771
164989
|
false,
|
|
164772
164990
|
/*stopAtComments*/
|
|
164773
164991
|
true
|
|
@@ -165086,7 +165304,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
165086
165304
|
if (token === 19 /* CloseBraceToken */) {
|
|
165087
165305
|
lastScanAction = 3 /* RescanTemplateToken */;
|
|
165088
165306
|
return scanner2.reScanTemplateToken(
|
|
165089
|
-
/*
|
|
165307
|
+
/*isTaggedTemplate*/
|
|
165090
165308
|
false
|
|
165091
165309
|
);
|
|
165092
165310
|
}
|
|
@@ -165097,7 +165315,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
165097
165315
|
case 5 /* RescanJsxText */:
|
|
165098
165316
|
lastScanAction = 5 /* RescanJsxText */;
|
|
165099
165317
|
return scanner2.reScanJsxToken(
|
|
165100
|
-
/*
|
|
165318
|
+
/*allowMultilineJsxText*/
|
|
165101
165319
|
false
|
|
165102
165320
|
);
|
|
165103
165321
|
case 6 /* RescanJsxAttributeValue */:
|
|
@@ -168628,7 +168846,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
168628
168846
|
this,
|
|
168629
168847
|
/*fileExists*/
|
|
168630
168848
|
false,
|
|
168631
|
-
/*
|
|
168849
|
+
/*detachFromProject*/
|
|
168632
168850
|
false
|
|
168633
168851
|
);
|
|
168634
168852
|
p.onFileAddedOrRemoved(this.isSymlink());
|
|
@@ -170704,7 +170922,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
170704
170922
|
packageJson,
|
|
170705
170923
|
program,
|
|
170706
170924
|
symlinkCache,
|
|
170707
|
-
/*
|
|
170925
|
+
/*resolveJs*/
|
|
170708
170926
|
true
|
|
170709
170927
|
);
|
|
170710
170928
|
rootNames = concatenate(rootNames, entrypoints);
|
|
@@ -176863,7 +177081,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
176863
177081
|
tags: this.mapJSDocTagInfo(
|
|
176864
177082
|
quickInfo.tags,
|
|
176865
177083
|
project,
|
|
176866
|
-
/*
|
|
177084
|
+
/*richResponse*/
|
|
176867
177085
|
false
|
|
176868
177086
|
)
|
|
176869
177087
|
};
|
|
@@ -177260,7 +177478,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
177260
177478
|
const projectItems = project.getLanguageService().getNavigateToItems(
|
|
177261
177479
|
searchValue,
|
|
177262
177480
|
maxResultCount,
|
|
177263
|
-
/*
|
|
177481
|
+
/*fileName*/
|
|
177264
177482
|
void 0,
|
|
177265
177483
|
/*excludeDts*/
|
|
177266
177484
|
project.isNonTsProject()
|