Skip to content

Commit cc0f923

Browse files
authored
LEGO: Merge pull request 20103
LEGO: Merge pull request 20103
2 parents 74a44e0 + 294ebaa commit cc0f923

7 files changed

Lines changed: 847 additions & 280 deletions

File tree

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

Lines changed: 121 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -141,48 +141,33 @@
141141
</Str>
142142
<Disp Icon="Str" />
143143
</Item>
144-
<Item ItemId=";A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol_1166" ItemType="0" PsrId="306" Leaf="true">
144+
<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">
145145
<Str Cat="Text">
146-
<Val><![CDATA[A computed property name in a class property declaration must directly refer to a built-in symbol.]]></Val>
147-
<Tgt Cat="Text" Stat="Loc" Orig="New">
148-
<Val><![CDATA[类属性声明中的计算属性名必须直接引用内置符号。]]></Val>
149-
</Tgt>
146+
<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>
150147
</Str>
151148
<Disp Icon="Str" />
152149
</Item>
153-
<Item ItemId=";A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol_1168" ItemType="0" PsrId="306" Leaf="true">
150+
<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">
154151
<Str Cat="Text">
155-
<Val><![CDATA[A computed property name in a method overload must directly refer to a built-in symbol.]]></Val>
156-
<Tgt Cat="Text" Stat="Loc" Orig="New">
157-
<Val><![CDATA[方法重载中的计算属性名必须直接引用内置符号。]]></Val>
158-
</Tgt>
152+
<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>
159153
</Str>
160154
<Disp Icon="Str" />
161155
</Item>
162-
<Item ItemId=";A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol_1170" ItemType="0" PsrId="306" Leaf="true">
156+
<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">
163157
<Str Cat="Text">
164-
<Val><![CDATA[A computed property name in a type literal must directly refer to a built-in symbol.]]></Val>
165-
<Tgt Cat="Text" Stat="Loc" Orig="New">
166-
<Val><![CDATA[类型文本中的计算属性名必须直接引用内置符号。]]></Val>
167-
</Tgt>
158+
<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>
168159
</Str>
169160
<Disp Icon="Str" />
170161
</Item>
171-
<Item ItemId=";A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol_1165" ItemType="0" PsrId="306" Leaf="true">
162+
<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">
172163
<Str Cat="Text">
173-
<Val><![CDATA[A computed property name in an ambient context must directly refer to a built-in symbol.]]></Val>
174-
<Tgt Cat="Text" Stat="Loc" Orig="New">
175-
<Val><![CDATA[环境上下文中的计算属性名必须直接引用内置符号。]]></Val>
176-
</Tgt>
164+
<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>
177165
</Str>
178166
<Disp Icon="Str" />
179167
</Item>
180-
<Item ItemId=";A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol_1169" ItemType="0" PsrId="306" Leaf="true">
168+
<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">
181169
<Str Cat="Text">
182-
<Val><![CDATA[A computed property name in an interface must directly refer to a built-in symbol.]]></Val>
183-
<Tgt Cat="Text" Stat="Loc" Orig="New">
184-
<Val><![CDATA[接口中的计算属性名必须直接引用内置符号。]]></Val>
185-
</Tgt>
170+
<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>
186171
</Str>
187172
<Disp Icon="Str" />
188173
</Item>
@@ -519,6 +504,18 @@
519504
</Str>
520505
<Disp Icon="Str" />
521506
</Item>
507+
<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">
508+
<Str Cat="Text">
509+
<Val><![CDATA[A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'.]]></Val>
510+
</Str>
511+
<Disp Icon="Str" />
512+
</Item>
513+
<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">
514+
<Str Cat="Text">
515+
<Val><![CDATA[A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'.]]></Val>
516+
</Str>
517+
<Disp Icon="Str" />
518+
</Item>
522519
<Item ItemId=";A_required_parameter_cannot_follow_an_optional_parameter_1016" ItemType="0" PsrId="306" Leaf="true">
523520
<Str Cat="Text">
524521
<Val><![CDATA[A required parameter cannot follow an optional parameter.]]></Val>
@@ -765,6 +762,12 @@
765762
</Str>
766763
<Disp Icon="Str" />
767764
</Item>
765+
<Item ItemId=";A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332" ItemType="0" PsrId="306" Leaf="true">
766+
<Str Cat="Text">
767+
<Val><![CDATA[A variable whose type is a 'unique symbol' type must be 'const'.]]></Val>
768+
</Str>
769+
<Disp Icon="Str" />
770+
</Item>
768771
<Item ItemId=";A_yield_expression_is_only_allowed_in_a_generator_body_1163" ItemType="0" PsrId="306" Leaf="true">
769772
<Str Cat="Text">
770773
<Val><![CDATA[A 'yield' expression is only allowed in a generator body.]]></Val>
@@ -2577,6 +2580,12 @@
25772580
</Str>
25782581
<Disp Icon="Str" />
25792582
</Item>
2583+
<Item ItemId=";Duplicate_declaration_0_2718" ItemType="0" PsrId="306" Leaf="true">
2584+
<Str Cat="Text">
2585+
<Val><![CDATA[Duplicate declaration '{0}'.]]></Val>
2586+
</Str>
2587+
<Disp Icon="Str" />
2588+
</Item>
25802589
<Item ItemId=";Duplicate_function_implementation_2393" ItemType="0" PsrId="306" Leaf="true">
25812590
<Str Cat="Text">
25822591
<Val><![CDATA[Duplicate function implementation.]]></Val>
@@ -2925,12 +2934,9 @@
29252934
</Str>
29262935
<Disp Icon="Str" />
29272936
</Item>
2928-
<Item ItemId=";Expected_0_arguments_but_got_a_minimum_of_1_2556" ItemType="0" PsrId="306" Leaf="true">
2937+
<Item ItemId=";Expected_0_arguments_but_got_1_or_more_2556" ItemType="0" PsrId="306" Leaf="true">
29292938
<Str Cat="Text">
2930-
<Val><![CDATA[Expected {0} arguments, but got a minimum of {1}.]]></Val>
2931-
<Tgt Cat="Text" Stat="Loc" Orig="New">
2932-
<Val><![CDATA[应有 {0} 个参数,但获得最小值 {1} 个。]]></Val>
2933-
</Tgt>
2939+
<Val><![CDATA[Expected {0} arguments, but got {1} or more.]]></Val>
29342940
</Str>
29352941
<Disp Icon="Str" />
29362942
</Item>
@@ -2961,12 +2967,9 @@
29612967
</Str>
29622968
<Disp Icon="Str" />
29632969
</Item>
2964-
<Item ItemId=";Expected_at_least_0_arguments_but_got_a_minimum_of_1_2557" ItemType="0" PsrId="306" Leaf="true">
2970+
<Item ItemId=";Expected_at_least_0_arguments_but_got_1_or_more_2557" ItemType="0" PsrId="306" Leaf="true">
29652971
<Str Cat="Text">
2966-
<Val><![CDATA[Expected at least {0} arguments, but got a minimum of {1}.]]></Val>
2967-
<Tgt Cat="Text" Stat="Loc" Orig="New">
2968-
<Val><![CDATA[应有至少 {0} 个参数,但获得最小值 {1} 个。]]></Val>
2969-
</Tgt>
2972+
<Val><![CDATA[Expected at least {0} arguments, but got {1} or more.]]></Val>
29702973
</Str>
29712974
<Disp Icon="Str" />
29722975
</Item>
@@ -4122,6 +4125,15 @@
41224125
</Str>
41234126
<Disp Icon="Str" />
41244127
</Item>
4128+
<Item ItemId=";JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028" ItemType="0" PsrId="306" Leaf="true">
4129+
<Str Cat="Text">
4130+
<Val><![CDATA[JSDoc '...' may only appear in the last parameter of a signature.]]></Val>
4131+
<Tgt Cat="Text" Stat="Loc" Orig="New">
4132+
<Val><![CDATA[JSDoc "..." 可能仅出现在签名的最后一个参数中。]]></Val>
4133+
</Tgt>
4134+
</Str>
4135+
<Disp Icon="Str" />
4136+
</Item>
41254137
<Item ItemId=";JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024" ItemType="0" PsrId="306" Leaf="true">
41264138
<Str Cat="Text">
41274139
<Val><![CDATA[JSDoc '@param' tag has name '{0}', but there is no parameter with that name.]]></Val>
@@ -4491,6 +4503,18 @@
44914503
</Str>
44924504
<Disp Icon="Str" />
44934505
</Item>
4506+
<Item ItemId=";Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101" ItemType="0" PsrId="306" Leaf="true">
4507+
<Str Cat="Text">
4508+
<Val><![CDATA[Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'.]]></Val>
4509+
</Str>
4510+
<Disp Icon="Str" />
4511+
</Item>
4512+
<Item ItemId=";Method_0_of_exported_interface_has_or_is_using_private_name_1_4102" ItemType="0" PsrId="306" Leaf="true">
4513+
<Str Cat="Text">
4514+
<Val><![CDATA[Method '{0}' of exported interface has or is using private name '{1}'.]]></Val>
4515+
</Str>
4516+
<Disp Icon="Str" />
4517+
</Item>
44944518
<Item ItemId=";Modifiers_cannot_appear_here_1184" ItemType="0" PsrId="306" Leaf="true">
44954519
<Str Cat="Text">
44964520
<Val><![CDATA[Modifiers cannot appear here.]]></Val>
@@ -5634,6 +5658,24 @@
56345658
</Str>
56355659
<Disp Icon="Str" />
56365660
</Item>
5661+
<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">
5662+
<Str Cat="Text">
5663+
<Val><![CDATA[Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.]]></Val>
5664+
</Str>
5665+
<Disp Icon="Str" />
5666+
</Item>
5667+
<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">
5668+
<Str Cat="Text">
5669+
<Val><![CDATA[Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'.]]></Val>
5670+
</Str>
5671+
<Disp Icon="Str" />
5672+
</Item>
5673+
<Item ItemId=";Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100" ItemType="0" PsrId="306" Leaf="true">
5674+
<Str Cat="Text">
5675+
<Val><![CDATA[Public method '{0}' of exported class has or is using private name '{1}'.]]></Val>
5676+
</Str>
5677+
<Disp Icon="Str" />
5678+
</Item>
56375679
<Item ItemId=";Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029" ItemType="0" PsrId="306" Leaf="true">
56385680
<Str Cat="Text">
56395681
<Val><![CDATA[Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.]]></Val>
@@ -5661,6 +5703,24 @@
56615703
</Str>
56625704
<Disp Icon="Str" />
56635705
</Item>
5706+
<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">
5707+
<Str Cat="Text">
5708+
<Val><![CDATA[Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.]]></Val>
5709+
</Str>
5710+
<Disp Icon="Str" />
5711+
</Item>
5712+
<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">
5713+
<Str Cat="Text">
5714+
<Val><![CDATA[Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'.]]></Val>
5715+
</Str>
5716+
<Disp Icon="Str" />
5717+
</Item>
5718+
<Item ItemId=";Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097" ItemType="0" PsrId="306" Leaf="true">
5719+
<Str Cat="Text">
5720+
<Val><![CDATA[Public static method '{0}' of exported class has or is using private name '{1}'.]]></Val>
5721+
</Str>
5722+
<Disp Icon="Str" />
5723+
</Item>
56645724
<Item ItemId=";Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026" ItemType="0" PsrId="306" Leaf="true">
56655725
<Str Cat="Text">
56665726
<Val><![CDATA[Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.]]></Val>
@@ -6447,6 +6507,12 @@
64476507
</Str>
64486508
<Disp Icon="Str" />
64496509
</Item>
6510+
<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">
6511+
<Str Cat="Text">
6512+
<Val><![CDATA[Subsequent property declarations must have the same type. Property '{0}' has type '{1}' at {2}, but here has type '{3}'.]]></Val>
6513+
</Str>
6514+
<Disp Icon="Str" />
6515+
</Item>
64506516
<Item ItemId=";Subsequent_variable_declarations_must_have_the_same_type_Variable_0_has_type_1_at_2_but_here_has_typ_2403" ItemType="0" PsrId="306" Leaf="true">
64516517
<Str Cat="Text">
64526518
<Val><![CDATA[Subsequent variable declarations must have the same type. Variable '{0}' has type '{1}' at {2}, but here has type '{3}'.]]></Val>
@@ -6669,12 +6735,9 @@
66696735
</Str>
66706736
<Disp Icon="Str" />
66716737
</Item>
6672-
<Item ItemId=";The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary_2527" ItemType="0" PsrId="306" Leaf="true">
6738+
<Item ItemId=";The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527" ItemType="0" PsrId="306" Leaf="true">
66736739
<Str Cat="Text">
6674-
<Val><![CDATA[The inferred type of '{0}' references an inaccessible 'this' type. A type annotation is necessary.]]></Val>
6675-
<Tgt Cat="Text" Stat="Loc" Orig="New">
6676-
<Val><![CDATA[“{0}”的推断类型引用不可访问的 "this" 类型。需要类型批注。]]></Val>
6677-
</Tgt>
6740+
<Val><![CDATA[The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary.]]></Val>
66786741
</Str>
66796742
<Disp Icon="Str" />
66806743
</Item>
@@ -8724,6 +8787,24 @@
87248787
</Str>
87258788
<Disp Icon="Str" />
87268789
</Item>
8790+
<Item ItemId=";unique_symbol_types_are_not_allowed_here_1335" ItemType="0" PsrId="306" Leaf="true">
8791+
<Str Cat="Text">
8792+
<Val><![CDATA['unique symbol' types are not allowed here.]]></Val>
8793+
</Str>
8794+
<Disp Icon="Str" />
8795+
</Item>
8796+
<Item ItemId=";unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334" ItemType="0" PsrId="306" Leaf="true">
8797+
<Str Cat="Text">
8798+
<Val><![CDATA['unique symbol' types are only allowed on variables in a variable statement.]]></Val>
8799+
</Str>
8800+
<Disp Icon="Str" />
8801+
</Item>
8802+
<Item ItemId=";unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333" ItemType="0" PsrId="306" Leaf="true">
8803+
<Str Cat="Text">
8804+
<Val><![CDATA['unique symbol' types may not be used on a variable declaration with a binding name.]]></Val>
8805+
</Str>
8806+
<Disp Icon="Str" />
8807+
</Item>
87278808
<Item ItemId=";with_statements_are_not_allowed_in_an_async_function_block_1300" ItemType="0" PsrId="306" Leaf="true">
87288809
<Str Cat="Text">
87298810
<Val><![CDATA['with' statements are not allowed in an async function block.]]></Val>

0 commit comments

Comments
 (0)