Skip to content

Commit 06c656a

Browse files
committed
Merge remote-tracking branch 'origin/master' into faster-interface-check
* origin/master: LEGO: check in for master to temporary branch. Fix microsoft#19959 and microsoft#19958: Remove un-localizable messages (microsoft#20019) LEGO: check in for master to temporary branch. LEGO: check in for master to temporary branch. LEGO: check in for master to temporary branch. LEGO: check in for master to temporary branch. Port generated lib files (microsoft#20213) Update test baseline Offer global completions in all blocks Accept new baselines Add regression test Make sure 'async' isn't treated as a parameter modifier
2 parents 9bcc3f7 + 0ae5a89 commit 06c656a

31 files changed

+1620
-141
lines changed

src/compiler/diagnosticMessages.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3766,7 +3766,7 @@
37663766
"category": "Error",
37673767
"code": 90010
37683768
},
3769-
"Import '{0}' from \"{1}\".": {
3769+
"Import '{0}' from module \"{1}\".": {
37703770
"category": "Message",
37713771
"code": 90013
37723772
},
@@ -3886,13 +3886,5 @@
38863886
"Install '{0}'": {
38873887
"category": "Message",
38883888
"code": 95014
3889-
},
3890-
"Import '{0}' = require(\"{1}\").": {
3891-
"category": "Message",
3892-
"code": 95015
3893-
},
3894-
"Import * as '{0}' from \"{1}\".": {
3895-
"category": "Message",
3896-
"code": 95016
38973889
}
38983890
}

src/compiler/parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3281,7 +3281,7 @@ namespace ts {
32813281
// Check for "(xxx yyy", where xxx is a modifier and yyy is an identifier. This
32823282
// isn't actually allowed, but we want to treat it as a lambda so we can provide
32833283
// a good error message.
3284-
if (isModifierKind(second) && lookAhead(nextTokenIsIdentifier)) {
3284+
if (isModifierKind(second) && second !== SyntaxKind.AsyncKeyword && lookAhead(nextTokenIsIdentifier)) {
32853285
return Tristate.True;
32863286
}
32873287

@@ -3298,7 +3298,7 @@ namespace ts {
32983298
return Tristate.True;
32993299
case SyntaxKind.QuestionToken:
33003300
nextToken();
3301-
// If we have "(a?:" or "(a?," or "(a?=" or "(a?)" then it is definitely a lamnda.
3301+
// If we have "(a?:" or "(a?," or "(a?=" or "(a?)" then it is definitely a lambda.
33023302
if (token() === SyntaxKind.ColonToken || token() === SyntaxKind.CommaToken || token() === SyntaxKind.EqualsToken || token() === SyntaxKind.CloseParenToken) {
33033303
return Tristate.True;
33043304
}

src/lib/dom.generated.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15029,6 +15029,8 @@ interface SVGElementTagNameMap {
1502915029
"view": SVGViewElement;
1503015030
}
1503115031

15032+
interface ElementTagNameMap extends HTMLElementTagNameMap, SVGElementTagNameMap { }
15033+
1503215034
declare var Audio: { new(src?: string): HTMLAudioElement; };
1503315035
declare var Image: { new(width?: number, height?: number): HTMLImageElement; };
1503415036
declare var Option: { new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement; };

src/loc/lcl/cht/diagnosticMessages/diagnosticMessages.generated.json.lcl

Lines changed: 105 additions & 0 deletions
Large diffs are not rendered by default.

src/loc/lcl/csy/diagnosticMessages/diagnosticMessages.generated.json.lcl

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,30 +153,45 @@
153153
<Item ItemId=";A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166" ItemType="0" PsrId="306" Leaf="true">
154154
<Str Cat="Text">
155155
<Val><![CDATA[A computed property name in a class property declaration must refer to an expression whose type is a literal type or a 'unique symbol' type.]]></Val>
156+
<Tgt Cat="Text" Stat="Loc" Orig="New">
157+
<Val><![CDATA[Název vypočítané vlastnosti v deklaraci vlastnosti třídy musí odkazovat na výraz, jehož typ je literál nebo jedinečný symbol.]]></Val>
158+
</Tgt>
156159
</Str>
157160
<Disp Icon="Str" />
158161
</Item>
159162
<Item ItemId=";A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168" ItemType="0" PsrId="306" Leaf="true">
160163
<Str Cat="Text">
161164
<Val><![CDATA[A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type.]]></Val>
165+
<Tgt Cat="Text" Stat="Loc" Orig="New">
166+
<Val><![CDATA[Název vypočítané vlastnosti v přetížené metodě musí odkazovat na výraz, jehož typ je literál nebo jedinečný symbol.]]></Val>
167+
</Tgt>
162168
</Str>
163169
<Disp Icon="Str" />
164170
</Item>
165171
<Item ItemId=";A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170" ItemType="0" PsrId="306" Leaf="true">
166172
<Str Cat="Text">
167173
<Val><![CDATA[A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.]]></Val>
174+
<Tgt Cat="Text" Stat="Loc" Orig="New">
175+
<Val><![CDATA[Název vypočítané vlastnosti v literálu typu musí odkazovat na výraz, jehož typ je literál nebo jedinečný symbol.]]></Val>
176+
</Tgt>
168177
</Str>
169178
<Disp Icon="Str" />
170179
</Item>
171180
<Item ItemId=";A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165" ItemType="0" PsrId="306" Leaf="true">
172181
<Str Cat="Text">
173182
<Val><![CDATA[A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type.]]></Val>
183+
<Tgt Cat="Text" Stat="Loc" Orig="New">
184+
<Val><![CDATA[Název vypočítané vlastnosti v ambientním kontextu musí odkazovat na výraz, jehož typ je literál nebo jedinečný symbol.]]></Val>
185+
</Tgt>
174186
</Str>
175187
<Disp Icon="Str" />
176188
</Item>
177189
<Item ItemId=";A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169" ItemType="0" PsrId="306" Leaf="true">
178190
<Str Cat="Text">
179191
<Val><![CDATA[A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type.]]></Val>
192+
<Tgt Cat="Text" Stat="Loc" Orig="New">
193+
<Val><![CDATA[Název vypočítané vlastnosti v rozhraní musí odkazovat na výraz, jehož typ je literál nebo jedinečný symbol.]]></Val>
194+
</Tgt>
180195
</Str>
181196
<Disp Icon="Str" />
182197
</Item>
@@ -300,6 +315,12 @@
300315
</Str>
301316
<Disp Icon="Str" />
302317
</Item>
318+
<Item ItemId=";A_definite_assignment_assertion_is_not_permitted_in_this_context_1255" ItemType="0" PsrId="306" Leaf="true">
319+
<Str Cat="Text">
320+
<Val><![CDATA[A definite assignment assertion '!' is not permitted in this context.]]></Val>
321+
</Str>
322+
<Disp Icon="Str" />
323+
</Item>
303324
<Item ItemId=";A_destructuring_declaration_must_have_an_initializer_1182" ItemType="0" PsrId="306" Leaf="true">
304325
<Str Cat="Text">
305326
<Val><![CDATA[A destructuring declaration must have an initializer.]]></Val>
@@ -516,12 +537,18 @@
516537
<Item ItemId=";A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331" ItemType="0" PsrId="306" Leaf="true">
517538
<Str Cat="Text">
518539
<Val><![CDATA[A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'.]]></Val>
540+
<Tgt Cat="Text" Stat="Loc" Orig="New">
541+
<Val><![CDATA[Vlastnost třídy, jejíž typ je jedinečný symbol, musí být static a readonly.]]></Val>
542+
</Tgt>
519543
</Str>
520544
<Disp Icon="Str" />
521545
</Item>
522546
<Item ItemId=";A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330" ItemType="0" PsrId="306" Leaf="true">
523547
<Str Cat="Text">
524548
<Val><![CDATA[A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'.]]></Val>
549+
<Tgt Cat="Text" Stat="Loc" Orig="New">
550+
<Val><![CDATA[Vlastnost rozhraní nebo literálu typu, jehož typ je jedinečný symbol, musí být readonly.]]></Val>
551+
</Tgt>
525552
</Str>
526553
<Disp Icon="Str" />
527554
</Item>
@@ -774,6 +801,9 @@
774801
<Item ItemId=";A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332" ItemType="0" PsrId="306" Leaf="true">
775802
<Str Cat="Text">
776803
<Val><![CDATA[A variable whose type is a 'unique symbol' type must be 'const'.]]></Val>
804+
<Tgt Cat="Text" Stat="Loc" Orig="New">
805+
<Val><![CDATA[Proměnná, jejíž typ je jedinečný symbol, musí být const.]]></Val>
806+
</Tgt>
777807
</Str>
778808
<Disp Icon="Str" />
779809
</Item>
@@ -2592,6 +2622,9 @@
25922622
<Item ItemId=";Duplicate_declaration_0_2718" ItemType="0" PsrId="306" Leaf="true">
25932623
<Str Cat="Text">
25942624
<Val><![CDATA[Duplicate declaration '{0}'.]]></Val>
2625+
<Tgt Cat="Text" Stat="Loc" Orig="New">
2626+
<Val><![CDATA[Duplicitní deklarace pro: {0}]]></Val>
2627+
</Tgt>
25952628
</Str>
25962629
<Disp Icon="Str" />
25972630
</Item>
@@ -2808,6 +2841,9 @@
28082841
<Item ItemId=";Enable_strict_checking_of_property_initialization_in_classes_6187" ItemType="0" PsrId="306" Leaf="true">
28092842
<Str Cat="Text">
28102843
<Val><![CDATA[Enable strict checking of property initialization in classes.]]></Val>
2844+
<Tgt Cat="Text" Stat="Loc" Orig="New">
2845+
<Val><![CDATA[Povolí striktní kontrolu inicializace vlastností ve třídách.]]></Val>
2846+
</Tgt>
28112847
</Str>
28122848
<Disp Icon="Str" />
28132849
</Item>
@@ -2952,6 +2988,9 @@
29522988
<Item ItemId=";Expected_0_arguments_but_got_1_or_more_2556" ItemType="0" PsrId="306" Leaf="true">
29532989
<Str Cat="Text">
29542990
<Val><![CDATA[Expected {0} arguments, but got {1} or more.]]></Val>
2991+
<Tgt Cat="Text" Stat="Loc" Orig="New">
2992+
<Val><![CDATA[Očekával se tento počet argumentů: {0}. Počet předaných argumentů: {1} nebo více.]]></Val>
2993+
</Tgt>
29552994
</Str>
29562995
<Disp Icon="Str" />
29572996
</Item>
@@ -2985,6 +3024,9 @@
29853024
<Item ItemId=";Expected_at_least_0_arguments_but_got_1_or_more_2557" ItemType="0" PsrId="306" Leaf="true">
29863025
<Str Cat="Text">
29873026
<Val><![CDATA[Expected at least {0} arguments, but got {1} or more.]]></Val>
3027+
<Tgt Cat="Text" Stat="Loc" Orig="New">
3028+
<Val><![CDATA[Očekával se aspoň tento počet argumentů: {0}. Počet předaných argumentů: {1} nebo více.]]></Val>
3029+
</Tgt>
29883030
</Str>
29893031
<Disp Icon="Str" />
29903032
</Item>
@@ -4521,12 +4563,18 @@
45214563
<Item ItemId=";Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101" ItemType="0" PsrId="306" Leaf="true">
45224564
<Str Cat="Text">
45234565
<Val><![CDATA[Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'.]]></Val>
4566+
<Tgt Cat="Text" Stat="Loc" Orig="New">
4567+
<Val><![CDATA[Metoda {0} z exportovaného rozhraní má nebo používá název {1} z privátního modulu {2}.]]></Val>
4568+
</Tgt>
45244569
</Str>
45254570
<Disp Icon="Str" />
45264571
</Item>
45274572
<Item ItemId=";Method_0_of_exported_interface_has_or_is_using_private_name_1_4102" ItemType="0" PsrId="306" Leaf="true">
45284573
<Str Cat="Text">
45294574
<Val><![CDATA[Method '{0}' of exported interface has or is using private name '{1}'.]]></Val>
4575+
<Tgt Cat="Text" Stat="Loc" Orig="New">
4576+
<Val><![CDATA[Metoda {0} z exportovaného rozhraní má nebo používá privátní název {1}.]]></Val>
4577+
</Tgt>
45304578
</Str>
45314579
<Disp Icon="Str" />
45324580
</Item>
@@ -5457,6 +5505,9 @@
54575505
<Item ItemId=";Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564" ItemType="0" PsrId="306" Leaf="true">
54585506
<Str Cat="Text">
54595507
<Val><![CDATA[Property '{0}' has no initializer and is not definitely assigned in the constructor.]]></Val>
5508+
<Tgt Cat="Text" Stat="Loc" Orig="New">
5509+
<Val><![CDATA[Vlastnost {0} nemá žádný inicializátor a není jednoznačně přiřazena v konstruktoru.]]></Val>
5510+
</Tgt>
54605511
</Str>
54615512
<Disp Icon="Str" />
54625513
</Item>
@@ -5583,6 +5634,9 @@
55835634
<Item ItemId=";Property_0_is_used_before_being_assigned_2565" ItemType="0" PsrId="306" Leaf="true">
55845635
<Str Cat="Text">
55855636
<Val><![CDATA[Property '{0}' is used before being assigned.]]></Val>
5637+
<Tgt Cat="Text" Stat="Loc" Orig="New">
5638+
<Val><![CDATA[Vlastnost {0} je použitá před přiřazením.]]></Val>
5639+
</Tgt>
55865640
</Str>
55875641
<Disp Icon="Str" />
55885642
</Item>
@@ -5688,18 +5742,27 @@
56885742
<Item ItemId=";Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098" ItemType="0" PsrId="306" Leaf="true">
56895743
<Str Cat="Text">
56905744
<Val><![CDATA[Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.]]></Val>
5745+
<Tgt Cat="Text" Stat="Loc" Orig="New">
5746+
<Val><![CDATA[Veřejná metoda {0} z exportované třídy má nebo používá název {1} z externího modulu {2}, ale nedá se pojmenovat.]]></Val>
5747+
</Tgt>
56915748
</Str>
56925749
<Disp Icon="Str" />
56935750
</Item>
56945751
<Item ItemId=";Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099" ItemType="0" PsrId="306" Leaf="true">
56955752
<Str Cat="Text">
56965753
<Val><![CDATA[Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'.]]></Val>
5754+
<Tgt Cat="Text" Stat="Loc" Orig="New">
5755+
<Val><![CDATA[Veřejná metoda {0} z exportované třídy má nebo používá název {1} z privátního modulu {2}.]]></Val>
5756+
</Tgt>
56975757
</Str>
56985758
<Disp Icon="Str" />
56995759
</Item>
57005760
<Item ItemId=";Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100" ItemType="0" PsrId="306" Leaf="true">
57015761
<Str Cat="Text">
57025762
<Val><![CDATA[Public method '{0}' of exported class has or is using private name '{1}'.]]></Val>
5763+
<Tgt Cat="Text" Stat="Loc" Orig="New">
5764+
<Val><![CDATA[Veřejná metoda {0} z exportované třídy má nebo používá privátní název {1}.]]></Val>
5765+
</Tgt>
57035766
</Str>
57045767
<Disp Icon="Str" />
57055768
</Item>
@@ -5733,18 +5796,27 @@
57335796
<Item ItemId=";Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095" ItemType="0" PsrId="306" Leaf="true">
57345797
<Str Cat="Text">
57355798
<Val><![CDATA[Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.]]></Val>
5799+
<Tgt Cat="Text" Stat="Loc" Orig="New">
5800+
<Val><![CDATA[Veřejná statická metoda {0} z exportované třídy má nebo používá název {1} z externího modulu {2}, ale nedá se pojmenovat.]]></Val>
5801+
</Tgt>
57365802
</Str>
57375803
<Disp Icon="Str" />
57385804
</Item>
57395805
<Item ItemId=";Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096" ItemType="0" PsrId="306" Leaf="true">
57405806
<Str Cat="Text">
57415807
<Val><![CDATA[Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'.]]></Val>
5808+
<Tgt Cat="Text" Stat="Loc" Orig="New">
5809+
<Val><![CDATA[Veřejná statická metoda {0} z exportované třídy má nebo používá název {1} z privátního modulu {2}.]]></Val>
5810+
</Tgt>
57425811
</Str>
57435812
<Disp Icon="Str" />
57445813
</Item>
57455814
<Item ItemId=";Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097" ItemType="0" PsrId="306" Leaf="true">
57465815
<Str Cat="Text">
57475816
<Val><![CDATA[Public static method '{0}' of exported class has or is using private name '{1}'.]]></Val>
5817+
<Tgt Cat="Text" Stat="Loc" Orig="New">
5818+
<Val><![CDATA[Veřejná statická metoda {0} z exportované třídy má nebo používá privátní název {1}.]]></Val>
5819+
</Tgt>
57485820
</Str>
57495821
<Disp Icon="Str" />
57505822
</Item>
@@ -6537,6 +6609,9 @@
65376609
<Item ItemId=";Subsequent_property_declarations_must_have_the_same_type_Property_0_has_type_1_at_2_but_here_has_typ_2717" ItemType="0" PsrId="306" Leaf="true">
65386610
<Str Cat="Text">
65396611
<Val><![CDATA[Subsequent property declarations must have the same type. Property '{0}' has type '{1}' at {2}, but here has type '{3}'.]]></Val>
6612+
<Tgt Cat="Text" Stat="Loc" Orig="New">
6613+
<Val><![CDATA[Deklarace následných vlastností musí obsahovat stejný typ. Vlastnost {0} musí být typu {1} v {2}, ale tady je typu {3}.]]></Val>
6614+
</Tgt>
65406615
</Str>
65416616
<Disp Icon="Str" />
65426617
</Item>
@@ -6765,6 +6840,9 @@
67656840
<Item ItemId=";The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527" ItemType="0" PsrId="306" Leaf="true">
67666841
<Str Cat="Text">
67676842
<Val><![CDATA[The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary.]]></Val>
6843+
<Tgt Cat="Text" Stat="Loc" Orig="New">
6844+
<Val><![CDATA[Odvozený typ {0} odkazuje na nepřístupný typ {1}. Musí se použít anotace typu.]]></Val>
6845+
</Tgt>
67686846
</Str>
67696847
<Disp Icon="Str" />
67706848
</Item>
@@ -8817,18 +8895,27 @@
88178895
<Item ItemId=";unique_symbol_types_are_not_allowed_here_1335" ItemType="0" PsrId="306" Leaf="true">
88188896
<Str Cat="Text">
88198897
<Val><![CDATA['unique symbol' types are not allowed here.]]></Val>
8898+
<Tgt Cat="Text" Stat="Loc" Orig="New">
8899+
<Val><![CDATA[Typy „jedinečný symbol“ tady nejsou povolené.]]></Val>
8900+
</Tgt>
88208901
</Str>
88218902
<Disp Icon="Str" />
88228903
</Item>
88238904
<Item ItemId=";unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334" ItemType="0" PsrId="306" Leaf="true">
88248905
<Str Cat="Text">
88258906
<Val><![CDATA['unique symbol' types are only allowed on variables in a variable statement.]]></Val>
8907+
<Tgt Cat="Text" Stat="Loc" Orig="New">
8908+
<Val><![CDATA[Typy „jedinečný symbol“ jsou povolené jen u proměnných v příkazu proměnné.]]></Val>
8909+
</Tgt>
88268910
</Str>
88278911
<Disp Icon="Str" />
88288912
</Item>
88298913
<Item ItemId=";unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333" ItemType="0" PsrId="306" Leaf="true">
88308914
<Str Cat="Text">
88318915
<Val><![CDATA['unique symbol' types may not be used on a variable declaration with a binding name.]]></Val>
8916+
<Tgt Cat="Text" Stat="Loc" Orig="New">
8917+
<Val><![CDATA[Typy „jedinečný symbol“ nejde použít v deklaraci proměnné s názvem vazby.]]></Val>
8918+
</Tgt>
88328919
</Str>
88338920
<Disp Icon="Str" />
88348921
</Item>

0 commit comments

Comments
 (0)