Skip to content

Commit c3b82e0

Browse files
authored
Avoid localizing parameter name (#80116)
1 parent fa66c36 commit c3b82e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Compilers/VisualBasic/Portable/Compilation/VisualBasicCompilation.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
943943

944944
For Each tree As SyntaxTree In trees
945945
If tree Is Nothing Then
946-
Throw New ArgumentNullException(String.Format(VBResources.Trees0, i))
946+
Throw New ArgumentNullException($"trees({i})")
947947
End If
948948

949949
If Not tree.HasCompilationUnitRoot Then
@@ -955,7 +955,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
955955
End If
956956

957957
If declMap.ContainsKey(tree) Then
958-
Throw New ArgumentException(VBResources.SyntaxTreeAlreadyPresent, String.Format(VBResources.Trees0, i))
958+
Throw New ArgumentException(VBResources.SyntaxTreeAlreadyPresent, $"trees({i})")
959959
End If
960960

961961
AddSyntaxTreeToDeclarationMapAndTable(tree, _options, Me.IsSubmission, declMap, declTable, referenceDirectivesChanged) ' declMap and declTable passed ByRef

0 commit comments

Comments
 (0)