Skip to content

Commit 70a0a27

Browse files
authored
Remove unused strings from parser (PowerShell#18383)
1 parent 4936a56 commit 70a0a27

File tree

1 file changed

+0
-160
lines changed

1 file changed

+0
-160
lines changed

src/System.Management.Automation/resources/ParserStrings.resx

Lines changed: 0 additions & 160 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,6 @@
123123
<data name="TypeNotFoundWithMessage" xml:space="preserve">
124124
<value>Unable to find type [{0}]. Details: {1}</value>
125125
</data>
126-
<data name="IncompleteVariableReference" xml:space="preserve">
127-
<value>Incomplete variable reference token.</value>
128-
</data>
129126
<data name="IncompleteString" xml:space="preserve">
130127
<value>Incomplete string token.</value>
131128
</data>
@@ -141,9 +138,6 @@
141138
<data name="TooManyDigitsInUnicodeEscapeSequence" xml:space="preserve">
142139
<value>The Unicode escape sequence contains more than the maximum of six hex digits between braces.</value>
143140
</data>
144-
<data name="NumberBothLongAndFloatingPoint" xml:space="preserve">
145-
<value>A number cannot be both a long and floating point.</value>
146-
</data>
147141
<data name="ReferenceNeedsToBeByItselfInTypeConstraint" xml:space="preserve">
148142
<value>Cannot use [ref] with other types in a type constraint.</value>
149143
</data>
@@ -183,14 +177,6 @@
183177
<data name="InvalidParameter" xml:space="preserve">
184178
<value>Parameter '{0}' is not valid</value>
185179
</data>
186-
<data name="AmbiguousParameterBaseMessage" xml:space="preserve">
187-
<value>Ambiguous parameter '-{0}'
188-
Possible matches are</value>
189-
</data>
190-
<data name="AmbiguousParameterExtendMessage" xml:space="preserve">
191-
<value>
192-
{0} ({1})</value>
193-
</data>
194180
<data name="MissingExpression" xml:space="preserve">
195181
<value>Missing expression after '{0}' in pipeline element.</value>
196182
</data>
@@ -227,15 +213,9 @@ Possible matches are</value>
227213
<data name="EmptyPipeElement" xml:space="preserve">
228214
<value>An empty pipe element is not allowed.</value>
229215
</data>
230-
<data name="UnknownAssignmentOperator" xml:space="preserve">
231-
<value>Unknown assignment operator '{0}'.</value>
232-
</data>
233216
<data name="InvalidLeftHandSide" xml:space="preserve">
234217
<value>The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept assignments, such as a variable or a property.</value>
235218
</data>
236-
<data name="NoPropertiesInSplatting" xml:space="preserve">
237-
<value>Cannot expand the splatted variable '@{0}'. Splatted variables cannot be used as part of a property or array expression. Assign the result of the expression to a temporary variable then splat the temporary variable instead.</value>
238-
</data>
239219
<data name="AddHashTableToNonHashTable" xml:space="preserve">
240220
<value>A hash table can only be added to another hash table.</value>
241221
</data>
@@ -260,9 +240,6 @@ Possible matches are</value>
260240
<data name="ExpectedValueExpression" xml:space="preserve">
261241
<value>You must provide a value expression following the '{0}' operator.</value>
262242
</data>
263-
<data name="BadRegularExpression" xml:space="preserve">
264-
<value>A regular expression that was provided to '{0}' is not valid: {1}.</value>
265-
</data>
266243
<data name="OperatorRequiresVariableOrProperty" xml:space="preserve">
267244
<value>The '{0}' operator works only on variables or on properties.</value>
268245
</data>
@@ -275,9 +252,6 @@ Possible matches are</value>
275252
<data name="MissingPropertyName" xml:space="preserve">
276253
<value>Missing property name after reference operator.</value>
277254
</data>
278-
<data name="MissingPropertyReference" xml:space="preserve">
279-
<value>Property reference or expression is missing or not valid.</value>
280-
</data>
281255
<data name="PropertyNotFound" xml:space="preserve">
282256
<value>The property '{0}' cannot be found on this object. Verify that the property exists and can be set.</value>
283257
</data>
@@ -299,27 +273,15 @@ Possible matches are</value>
299273
<data name="ArrayHasTooManyDimensions" xml:space="preserve">
300274
<value>The array has too many dimensions: {0}. The number of dimensions for an array must be less than or equal to 32.</value>
301275
</data>
302-
<data name="ArrayAssignmentFailed" xml:space="preserve">
303-
<value>Array assignment to [{0}] failed: {1}.</value>
304-
</data>
305276
<data name="ArraySliceAssignmentFailed" xml:space="preserve">
306277
<value>Array assignment to [{0}] failed because assignment to slices is not supported.</value>
307278
</data>
308279
<data name="NeedMultidimensionalIndex" xml:space="preserve">
309280
<value>You cannot index into a {0} dimensional array with index [{1}].</value>
310281
</data>
311-
<data name="KeyTypeMismatch" xml:space="preserve">
312-
<value>Unable to assign to a dictionary of type {0} when the key is of type {1}.</value>
313-
</data>
314-
<data name="NotADictionary" xml:space="preserve">
315-
<value>Unable to assign to an index into an object of type {0}.</value>
316-
</data>
317282
<data name="IndexOutOfRange" xml:space="preserve">
318283
<value>Array assignment failed because index '{0}' was out of range.</value>
319284
</data>
320-
<data name="IndexOperationFailed" xml:space="preserve">
321-
<value>Assigning to array element at index [{0}] failed: {1}.</value>
322-
</data>
323285
<data name="MissingExpressionAfterToken" xml:space="preserve">
324286
<value>Missing expression after '{0}'.</value>
325287
</data>
@@ -350,15 +312,9 @@ Possible matches are</value>
350312
<data name="ExpectedExpression" xml:space="preserve">
351313
<value>An expression was expected after '('.</value>
352314
</data>
353-
<data name="MissingKeyInHashLiteral" xml:space="preserve">
354-
<value>Missing key before '=' in hash literal.</value>
355-
</data>
356315
<data name="MissingEqualsInHashLiteral" xml:space="preserve">
357316
<value>Missing '=' operator after key in hash literal.</value>
358317
</data>
359-
<data name="MissingEqualsInNamedArgument" xml:space="preserve">
360-
<value>The "=" operator is missing after a named argument.</value>
361-
</data>
362318
<data name="MissingStatementInHashLiteral" xml:space="preserve">
363319
<value>Missing statement after '=' in hash literal.</value>
364320
</data>
@@ -392,9 +348,6 @@ Possible matches are</value>
392348
<data name="AmbiguousPath" xml:space="preserve">
393349
<value>The path cannot be processed because it resolved to more than one file; only one file at a time can be processed.</value>
394350
</data>
395-
<data name="IncompleteSwitchStatement" xml:space="preserve">
396-
<value>The switch statement was incomplete.</value>
397-
</data>
398351
<data name="KeywordParameterReservedForFutureUse" xml:space="preserve">
399352
<value>The {0} '-{1}' parameter is reserved for future use.</value>
400353
</data>
@@ -413,9 +366,6 @@ Possible matches are</value>
413366
<data name="PipelineValueRequired" xml:space="preserve">
414367
<value>A switch statement must have one of the following: '-file file_name' or '( expression )'.</value>
415368
</data>
416-
<data name="MissingSwitchValueExpression" xml:space="preserve">
417-
<value>Missing expression after '(' in switch statement.</value>
418-
</data>
419369
<data name="MissingSwitchConditionExpression" xml:space="preserve">
420370
<value>Missing condition in switch statement clause.</value>
421371
</data>
@@ -460,15 +410,9 @@ The correct form is: foreach ($a in $b) {...}</value>
460410
<data name="InvalidSplitOptionWithPredicate" xml:space="preserve">
461411
<value>Options are not allowed on the -split operator with a predicate.</value>
462412
</data>
463-
<data name="MissingEndMultiLineComment" xml:space="preserve">
464-
<value>The terminator '{0}' is missing from the multiline comment.</value>
465-
</data>
466413
<data name="InvalidEndOfLine" xml:space="preserve">
467414
<value>The token '{0}' is not a valid statement separator in this version.</value>
468415
</data>
469-
<data name="FromKeywordNotAllowed" xml:space="preserve">
470-
<value>The 'from' keyword is not supported in this version of the language.</value>
471-
</data>
472416
<data name="ReservedKeywordNotAllowed" xml:space="preserve">
473417
<value>The '{0}' keyword is not supported in this version of the language.</value>
474418
</data>
@@ -484,18 +428,12 @@ The correct form is: foreach ($a in $b) {...}</value>
484428
<data name="MissingTryStatement" xml:space="preserve">
485429
<value>Incomplete 'try' statement. A try statement requires a body.</value>
486430
</data>
487-
<data name="InvalidLabelCharacter" xml:space="preserve">
488-
<value>The character '{0}' is not valid. Labels can contain only alphanumeric characters, numbers, and underscores ('_').</value>
489-
</data>
490431
<data name="InvalidFunctionParameter" xml:space="preserve">
491432
<value>Parameter declarations are a comma-separated list of variable names with optional initializer expressions.</value>
492433
</data>
493434
<data name="MissingFunctionBody" xml:space="preserve">
494435
<value>Missing function body in function declaration.</value>
495436
</data>
496-
<data name="BadlyFormedCmdlet" xml:space="preserve">
497-
<value>Could not process combined Begin/Process/End clauses with command text. A script or function can either have begin/process/end clauses or command text but not both.</value>
498-
</data>
499437
<data name="DuplicateScriptCommandClause" xml:space="preserve">
500438
<value>Script command clause '{0}' has already been defined.</value>
501439
</data>
@@ -614,45 +552,18 @@ The correct form is: foreach ($a in $b) {...}</value>
614552
<value>At {0}:{1} char:{2}
615553
+ {3}</value>
616554
</data>
617-
<data name="TextForCharPositionMessage" xml:space="preserve">
618-
<value>At char:{0}</value>
619-
</data>
620555
<data name="TraceScriptLineMessage" xml:space="preserve">
621556
<value>{0,4}+ {1}</value>
622557
</data>
623-
<data name="TrapOnExceptionMatch" xml:space="preserve">
624-
<value> ! Trap or Catch on matching exception [{0}]</value>
625-
</data>
626-
<data name="TrapOnSubclassMatch" xml:space="preserve">
627-
<value> ! Trap or Catch on [{0}]; subclass of exception [{1}]</value>
628-
</data>
629-
<data name="TrapOnGenericException" xml:space="preserve">
630-
<value> ! Trap or Catch generic; caught [{0}]</value>
631-
</data>
632-
<data name="TraceSetMultipleRemaining" xml:space="preserve">
633-
<value> ! SET-MULTIPLE ${0} assigned remaining {1} values.</value>
634-
</data>
635-
<data name="TraceSetMultipleIndex" xml:space="preserve">
636-
<value> ! SET-MULTIPLE ${0} = '{1}'.</value>
637-
</data>
638558
<data name="TraceVariableAssignment" xml:space="preserve">
639559
<value> ! SET ${0} = '{1}'.</value>
640560
</data>
641-
<data name="TraceEnteringScriptBlock" xml:space="preserve">
642-
<value> ! CALL scriptblock.</value>
643-
</data>
644-
<data name="TraceEnteringScript" xml:space="preserve">
645-
<value> ! CALL script '{0}'</value>
646-
</data>
647561
<data name="TraceEnteringFunction" xml:space="preserve">
648562
<value> ! CALL function '{0}'</value>
649563
</data>
650564
<data name="TraceEnteringFunctionDefinedInFile" xml:space="preserve">
651565
<value> ! CALL function '{0}' (defined in file '{1}')</value>
652566
</data>
653-
<data name="TraceParameterizedPropertySet" xml:space="preserve">
654-
<value> ! Setting parameterized property '{0}'</value>
655-
</data>
656567
<data name="TraceMethodCall" xml:space="preserve">
657568
<value> ! CALL method '{0}'</value>
658569
</data>
@@ -665,42 +576,15 @@ The correct form is: foreach ($a in $b) {...}</value>
665576
<data name="EndSquareBracketExpectedAtEndOfType" xml:space="preserve">
666577
<value>Missing ] at end of type token.</value>
667578
</data>
668-
<data name="EndBracketExpectedAtEndOfSubExpression" xml:space="preserve">
669-
<value>Missing ) at end of subexpression.</value>
670-
</data>
671579
<data name="OpenBraceNeedsToBeBackTickedInVariableName" xml:space="preserve">
672580
<value>Use `{ instead of { in variable names.</value>
673581
</data>
674-
<data name="EndBraceExpectedAtEndOfVariableName" xml:space="preserve">
675-
<value>Missing } at end of variable name.</value>
676-
</data>
677-
<data name="EmptyBracedVariableName" xml:space="preserve">
678-
<value>Braced variable name cannot be empty.</value>
679-
</data>
680582
<data name="MissingStatementBlockForDataSection" xml:space="preserve">
681583
<value>The Data section is missing its statement block.</value>
682584
</data>
683-
<data name="MissingOpenBraceInDataSectionStatement" xml:space="preserve">
684-
<value>Missing the opening brace "{" in the Data section.</value>
685-
</data>
686-
<data name="MissingCloseBraceInDataSectionStatement" xml:space="preserve">
687-
<value>Missing closing brace in the data section statement.</value>
688-
</data>
689-
<data name="InvalidDataSectionBody" xml:space="preserve">
690-
<value>The body of the Data section is not valid. The Data section body can be only a convert-* command invocation optionally enclosed by an If statement.</value>
691-
</data>
692585
<data name="InvalidParameterForDataSectionStatement" xml:space="preserve">
693586
<value>The "{0}" parameter of the Data section is not valid. The valid Data section parameter is SupportedCommand.</value>
694587
</data>
695-
<data name="ExpandableStringsNotSupportedInDataSectionCmdletList" xml:space="preserve">
696-
<value>Expandable strings are not allowed in the list of supported commands for the Data section.</value>
697-
</data>
698-
<data name="InvalidTokenForDataSectionCmdletList" xml:space="preserve">
699-
<value>A token that is not valid was found in the list of supported commands for the Data section.</value>
700-
</data>
701-
<data name="DataSectionNameHasAlreadyBeenUsed" xml:space="preserve">
702-
<value>The Data section variable "{0}" has already been used for an existing variable or another Data section.</value>
703-
</data>
704588
<data name="ArrayReferenceNotSupportedInDataSection" xml:space="preserve">
705589
<value>Array references are not allowed in restricted language mode or a Data section.</value>
706590
</data>
@@ -710,9 +594,6 @@ The correct form is: foreach ($a in $b) {...}</value>
710594
<data name="RedirectionNotSupportedInDataSection" xml:space="preserve">
711595
<value>Redirection is not allowed in restricted language mode or a Data section.</value>
712596
</data>
713-
<data name="OnlyConvertFromCmdletsAreSupportedInDataSection" xml:space="preserve">
714-
<value>A command is referenced that is not allowed. Only convertfrom-* commands are supported in restricted language mode or a Data section.</value>
715-
</data>
716597
<data name="DoWhileStatementNotSupportedInDataSection" xml:space="preserve">
717598
<value>The Do and While statements are not allowed in restricted language mode or a Data section.</value>
718599
</data>
@@ -785,21 +666,12 @@ The correct form is: foreach ($a in $b) {...}</value>
785666
<data name="CustomAttributeTypeNotFound" xml:space="preserve">
786667
<value>Cannot find the type for custom attribute '{0}'. Make sure that the assembly that contains this type is loaded.</value>
787668
</data>
788-
<data name="CannotFindConstructorForCustomAttribute" xml:space="preserve">
789-
<value>Cannot find an appropriate constructor to instantiate the custom attribute object for type '{0}'.</value>
790-
</data>
791-
<data name="InValidCustomAttributeType" xml:space="preserve">
792-
<value>The custom attribute type '{0}' is not derived from System.Attribute.</value>
793-
</data>
794669
<data name="PropertyNotFoundForType" xml:space="preserve">
795670
<value>Property '{0}' cannot be found for type '{1}'.</value>
796671
</data>
797672
<data name="UnexpectedAttribute" xml:space="preserve">
798673
<value>Unexpected attribute '{0}'.</value>
799674
</data>
800-
<data name="OperatorNotSupportedForType" xml:space="preserve">
801-
<value>Operator '{0}' is not supported for type '{1}'.</value>
802-
</data>
803675
<data name="EndSquareBracketExpectedAtEndOfAttribute" xml:space="preserve">
804676
<value>Missing ] at end of attribute or type literal.</value>
805677
</data>
@@ -896,9 +768,6 @@ The correct form is: foreach ($a in $b) {...}</value>
896768
<data name="ErrorStream" xml:space="preserve">
897769
<value>error stream</value>
898770
</data>
899-
<data name="HostStream" xml:space="preserve">
900-
<value>host stream</value>
901-
</data>
902771
<data name="OutputStream" xml:space="preserve">
903772
<value>output stream</value>
904773
</data>
@@ -959,22 +828,13 @@ The correct form is: foreach ($a in $b) {...}</value>
959828
<data name="ConfigurationInvalidPropertyName" xml:space="preserve">
960829
<value>An attribute name for resource '{0}' was found that is not valid. An attribute name must be a simple string, and cannot contain variables or expressions. Replace '{1}' with a simple string.</value>
961830
</data>
962-
<data name="ConfigurationNameMissing" xml:space="preserve">
963-
<value>The configuration name is missing or '{' was not found for a default definition.</value>
964-
</data>
965-
<data name="InvalidConfigurationParameter" xml:space="preserve">
966-
<value>The parameter {0} is not valid for the configuration statement.</value>
967-
</data>
968831
<data name="InvalidInstanceProperty" xml:space="preserve">
969832
<value>The member '{0}' is not valid. Valid members are
970833
'{1}'.</value>
971834
</data>
972835
<data name="MissingBraceInObjectDefinition" xml:space="preserve">
973836
<value>Missing '{' in object definition.</value>
974837
</data>
975-
<data name="ParameterNameCanOnlyBeSpecifiedOnce" xml:space="preserve">
976-
<value>Parameter {0} can only be specified once for a configuration.</value>
977-
</data>
978838
<data name="RequiredNameOrExpressionMissing" xml:space="preserve">
979839
<value>A required name or expression was missing.</value>
980840
</data>
@@ -993,14 +853,6 @@ The correct form is: foreach ($a in $b) {...}</value>
993853
<data name="MissingConfigurationName" xml:space="preserve">
994854
<value>The name for the configuration is missing. Provide the missing name as a simple name, string, or string-valued expression.</value>
995855
</data>
996-
<data name="MissingRequiredResourcesArgument" xml:space="preserve">
997-
<value>Missing argument to -Resources. The argument to the -Resource parameter must be a comma-separated list of names or constant strings naming modules to reference for resource type definitions.</value>
998-
<comment>-Required Resources should not be localized</comment>
999-
</data>
1000-
<data name="MissingRequiredResourcesArgumentFatalError" xml:space="preserve">
1001-
<value>Unexpected token '{0}'. The argument to the -Resource parameter must be a comma-separated list of names or constant strings naming modules to reference for resource type definitions.</value>
1002-
<comment>-Resource parameter should not be localized</comment>
1003-
</data>
1004856
<data name="ModuleNotFoundDuringParse" xml:space="preserve">
1005857
<value>Could not find the module '{0}'.</value>
1006858
</data>
@@ -1156,15 +1008,9 @@ ModuleVersion : Version of module to import. If used, ModuleName must represent
11561008
<data name="MissingUsingStatementDirective" xml:space="preserve">
11571009
<value>Missing using directive</value>
11581010
</data>
1159-
<data name="MissingPropertyNameInClass" xml:space="preserve">
1160-
<value>Missing property name</value>
1161-
</data>
11621011
<data name="MissingNamespaceAlias" xml:space="preserve">
11631012
<value>Missing namespace alias</value>
11641013
</data>
1165-
<data name="MissingTypeAlias" xml:space="preserve">
1166-
<value>Missing type alias</value>
1167-
</data>
11681014
<data name="MissingEqualsInUsingAlias" xml:space="preserve">
11691015
<value>Missing '=' operator</value>
11701016
</data>
@@ -1458,12 +1304,6 @@ ModuleVersion : Version of module to import. If used, ModuleName must represent
14581304
<data name="PsDscRunAsCredentialMergeErrorForCompositeResources" xml:space="preserve">
14591305
<value>Conflict in using PsDscRunAsCredential for Resource {0} because it already specifies PsDscRunAsCredential value. We can only use one PsDscRunAsCredential for the composite resource. </value>
14601306
</data>
1461-
<data name="PsDscMissingSchemaStore" xml:space="preserve">
1462-
<value>Unable to find DSC schema store at "{0}". Please ensure PSDesiredStateConfiguration v3 module is installed.</value>
1463-
</data>
1464-
<data name="PS7DscSupportDisabled" xml:space="preserve">
1465-
<value>PS7DscSupport experimental feature is disabled; use Enable-ExperimentalFeature or update powershell.config.json to enable this feature.</value>
1466-
</data>
14671307
<data name="ParserError" xml:space="preserve">
14681308
<value>{0}</value>
14691309
</data>

0 commit comments

Comments
 (0)