122 references to VBResources
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Diagnostics\DiagnosticProviderTests.vb (2)
200
Message=<%=
VBResources
.ERR_EndSubExpected %>/>
202
Message=<%=
VBResources
.ERR_ExpectedEOS %>/>
Microsoft.CodeAnalysis.VisualBasic (73)
Binding\MemberSemanticModel.vb (6)
573
Throw New ArgumentException(
VBResources
.IdentifierSyntaxNotWithinSyntaxTree)
607
Throw New ArgumentException(
VBResources
.AnonymousObjectCreationExpressionSyntaxNotWithinTree)
623
Throw New ArgumentException(
VBResources
.FieldInitializerSyntaxNotWithinSyntaxTree)
658
Throw New ArgumentException(
VBResources
.IdentifierSyntaxNotWithinSyntaxTree)
679
Throw New ArgumentException(
VBResources
.IdentifierSyntaxNotWithinSyntaxTree)
696
Throw New ArgumentException(
VBResources
.IdentifierSyntaxNotWithinSyntaxTree)
Compilation\QuerySymbolInfo.vb (3)
78
Throw New ArgumentException(
VBResources
.VariableSyntaxNotWithinSyntaxTree)
97
Throw New ArgumentException(
VBResources
.AggregateSyntaxNotWithinSyntaxTree)
196
Throw New ArgumentException(
VBResources
.FunctionSyntaxNotWithinSyntaxTree)
Compilation\SemanticModel.vb (13)
574
Throw New ArgumentException(
VBResources
.PositionIsNotWithinSyntax)
583
Throw New ArgumentException(
VBResources
.NodeIsNotWithinSyntaxTree)
593
Throw New InvalidOperationException(
VBResources
.ChainingSpeculativeModelIsNotSupported)
597
Throw New ArgumentException(
VBResources
.SpeculatedSyntaxNodeCannotBelongToCurrentCompilation)
2381
Throw New ArgumentException(
VBResources
.IdentifierSyntaxNotWithinSyntaxTree)
2443
Throw New ArgumentException(
VBResources
.FieldInitializerSyntaxNotWithinSyntaxTree)
2459
Throw New ArgumentException(
VBResources
.AnonymousObjectCreationExpressionSyntaxNotWithinTree)
2475
Throw New ArgumentException(
VBResources
.RangeVariableSyntaxNotWithinSyntaxTree)
2491
Throw New ArgumentException(
VBResources
.RangeVariableSyntaxNotWithinSyntaxTree)
2507
Throw New ArgumentException(
VBResources
.RangeVariableSyntaxNotWithinSyntaxTree)
2523
Throw New ArgumentException(
VBResources
.DeclarationSyntaxNotWithinSyntaxTree)
3239
Throw New ArgumentException(
VBResources
.NotAVbSymbol, NameOf(container))
3393
Throw New ArgumentException(
VBResources
.StatementOrExpressionIsNotAValidType)
Compilation\SpeculativeSemanticModelWithMemberModel.vb (1)
27
Debug.Assert(Not parentSemanticModel.IsSpeculativeSemanticModel,
VBResources
.ChainingSpeculativeModelIsNotSupported)
Compilation\SyntaxTreeSemanticModel.vb (11)
882
If Not IsInTree(declarationSyntax) Then Throw New ArgumentException(
VBResources
.DeclarationSyntaxNotWithinTree)
901
If Not IsInTree(declarationSyntax) Then Throw New ArgumentException(
VBResources
.DeclarationSyntaxNotWithinTree)
920
If Not IsInTree(declarationSyntax) Then Throw New ArgumentException(
VBResources
.DeclarationSyntaxNotWithinTree)
939
If Not IsInTree(declarationSyntax) Then Throw New ArgumentException(
VBResources
.DeclarationSyntaxNotWithinTree)
962
Throw New ArgumentException(
VBResources
.DeclarationSyntaxNotWithinTree)
1110
Throw New ArgumentException(
VBResources
.TypeParameterNotWithinTree)
1159
Throw New ArgumentException(
VBResources
.DeclarationSyntaxNotWithinTree)
1185
Throw New ArgumentException(
VBResources
.DeclarationSyntaxNotWithinTree)
1311
Throw New ArgumentException(
VBResources
.DeclarationSyntaxNotWithinTree)
1359
Throw New ArgumentException(
VBResources
.DeclarationSyntaxNotWithinTree)
1712
Throw New ArgumentException(argName &
VBResources
.NotWithinTree)
Compilation\VisualBasicCompilation.vb (20)
944
Throw New ArgumentNullException(String.Format(
VBResources
.Trees0, i))
948
Throw New ArgumentException(String.Format(
VBResources
.TreesMustHaveRootNode, i))
952
Throw New ArgumentException(
VBResources
.CannotAddCompilerSpecialTree)
956
Throw New ArgumentException(
VBResources
.SyntaxTreeAlreadyPresent, String.Format(
VBResources
.Trees0, i))
966
Throw New ArgumentException(
VBResources
.SubmissionCanHaveAtMostOneSyntaxTree, NameOf(trees))
1014
Throw New ArgumentException(
VBResources
.CannotRemoveCompilerSpecialTree)
1054
Throw New ArgumentException(String.Format(
VBResources
.SyntaxTreeNotFoundToRemove, tree))
1082
Throw New ArgumentException(
VBResources
.TreeMustHaveARootNodeWithCompilationUnit, NameOf(newTree))
1089
Throw New ArgumentException(
VBResources
.CannotRemoveCompilerSpecialTree)
1093
Throw New ArgumentException(
VBResources
.CannotAddCompilerSpecialTree)
1099
Throw New ArgumentException(
VBResources
.SyntaxTreeAlreadyPresent, NameOf(newTree))
2870
Throw New NotSupportedException(
VBResources
.ThereAreNoPointerTypesInVB)
2880
Throw New NotSupportedException(
VBResources
.ThereAreNoFunctionPointerTypesInVB)
2884
Throw New NotSupportedException(
VBResources
.ThereAreNoNativeIntegerTypesInVB)
3054
Throw New NotSupportedException(
VBResources
.ThereIsNoDynamicTypeInVB)
3077
Throw New ArgumentException(
VBResources
.NoNoneSearchCriteria, NameOf(filter))
3092
Throw New ArgumentException(
VBResources
.NoNoneSearchCriteria, NameOf(filter))
3111
Throw New ArgumentException(
VBResources
.NoNoneSearchCriteria, NameOf(filter))
3123
Throw New ArgumentException(
VBResources
.NoNoneSearchCriteria, NameOf(filter))
Compilation\VisualBasicCompilationReference.vb (1)
129
Return
VBResources
.CompilationVisualBasic + _compilation.AssemblyName
Errors\ErrorFactories.vb (1)
90
s_resourceManager = New Resources.ResourceManager(GetType(
VBResources
).FullName, GetType(ERRID).GetTypeInfo().Assembly)
Microsoft.CodeAnalysis.VisualBasic.VBResources.vb (1)
14
s_resourceManager = New Global.System.Resources.ResourceManager(GetType(
VBResources
))
SymbolDisplay\SymbolDisplay.vb (2)
97
Throw New ArgumentException(
VBResources
.SemanticModelMustBeProvided)
99
Throw New ArgumentOutOfRangeException(
VBResources
.PositionNotWithinTree)
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (2)
64
Return New UnsupportedMetadataTypeSymbol(
VBResources
.PositionOfTypeParameterTooLarge)
68
Return New UnsupportedMetadataTypeSymbol(
VBResources
.AssociatedTypeDoesNotHaveTypeParameters)
Symbols\ReferenceManager.vb (1)
113
Throw New NotSupportedException(String.Format(
VBResources
.CantReferenceCompilationFromTypes, compilationReference.GetType(), "Visual Basic"))
Symbols\SymbolExtensions.vb (1)
448
Throw New ArgumentException(
VBResources
.NotAVbSymbol, paramName)
Symbols\TypeSubstitution.vb (2)
404
Throw New ArgumentException(
VBResources
.NumberOfTypeParametersAndArgumentsMustMatch)
823
Throw New ArgumentException(
VBResources
.NumberOfTypeParametersAndArgumentsMustMatch)
Symbols\TypeSymbolExtensions.vb (2)
960
Throw New ArgumentException(
VBResources
.TypeArgumentCannotBeNothing, NameOf(typeArguments))
965
Throw New ArgumentException(
VBResources
.WrongNumberOfTypeArguments, NameOf(typeArguments))
Syntax\SyntaxFactory.vb (1)
1069
Throw New ArgumentException(
VBResources
.SyntaxTreeIsNotASubmission)
VisualBasicExtensions.vb (5)
1391
Throw New ArgumentException(String.Format(
VBResources
.IConversionExpressionIsNotVisualBasicConversion,
1409
Throw New ArgumentException(String.Format(
VBResources
.IArgumentIsNotVisualBasicArgument,
1427
Throw New ArgumentException(String.Format(
VBResources
.IArgumentIsNotVisualBasicArgument,
1449
Throw New ArgumentException(String.Format(
VBResources
.ICompoundAssignmentOperationIsNotVisualBasicCompoundAssignment,
1471
Throw New ArgumentException(String.Format(
VBResources
.ICompoundAssignmentOperationIsNotVisualBasicCompoundAssignment,
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (38)
Diagnostics\Suppression\SuppressionTests.vb (38)
64
#Disable Warning BC42024 ' {
VBResources
.WRN_UnusedLocal_Title}
66
#Enable Warning BC42024 ' {
VBResources
.WRN_UnusedLocal_Title}
100
#Disable Warning BC42024 ' {
VBResources
.WRN_UnusedLocal_Title}
103
#Enable Warning BC42024 ' {
VBResources
.WRN_UnusedLocal_Title}
140
#Disable Warning BC42025 ' {
VBResources
.WRN_SharedMemberThroughInstance_Title}
143
#Enable Warning BC42025 ' {
VBResources
.WRN_SharedMemberThroughInstance_Title}
184
#Disable Warning BC42025 ' {
VBResources
.WRN_SharedMemberThroughInstance_Title}
187
#Enable Warning BC42025 ' {
VBResources
.WRN_SharedMemberThroughInstance_Title}
226
#Disable Warning BC42024 ' {
VBResources
.WRN_UnusedLocal_Title}
229
#Enable Warning BC42024 ' {
VBResources
.WRN_UnusedLocal_Title}
264
#Disable Warning BC42024 ' {
VBResources
.WRN_UnusedLocal_Title}
267
#Enable Warning BC42024 ' {
VBResources
.WRN_UnusedLocal_Title}
303
#Disable Warning BC42025 ' {
VBResources
.WRN_SharedMemberThroughInstance_Title}
307
#Enable Warning BC42025 ' {
VBResources
.WRN_SharedMemberThroughInstance_Title}
344
#Disable Warning BC42025 ' {
VBResources
.WRN_SharedMemberThroughInstance_Title}
348
#Enable Warning BC42025 ' {
VBResources
.WRN_SharedMemberThroughInstance_Title}
385
#Disable Warning BC42024 ' {
VBResources
.WRN_UnusedLocal_Title}
389
#Enable Warning BC42024 ' {
VBResources
.WRN_UnusedLocal_Title}
434
#Disable Warning BC40008 ' {
VBResources
.WRN_UseOfObsoleteSymbolNoMessage1_Title}
438
#Enable Warning BC40008 ' {
VBResources
.WRN_UseOfObsoleteSymbolNoMessage1_Title}
480
#Disable Warning BC42024 ' {
VBResources
.WRN_UnusedLocal_Title}
482
#Enable Warning BC42024 ' {
VBResources
.WRN_UnusedLocal_Title}
526
#Disable Warning BC40008 ' {
VBResources
.WRN_UseOfObsoleteSymbolNoMessage1_Title}
528
#Enable Warning BC40008 ' {
VBResources
.WRN_UseOfObsoleteSymbolNoMessage1_Title}
569
#Disable Warning BC42309 ' {
VBResources
.WRN_XMLDocCrefAttributeNotFound1_Title}
572
#Enable Warning BC42309 ' {
VBResources
.WRN_XMLDocCrefAttributeNotFound1_Title}
586
#Disable Warning BC42309 ' {
VBResources
.WRN_XMLDocCrefAttributeNotFound1_Title}
589
#Enable Warning BC42309 ' {
VBResources
.WRN_XMLDocCrefAttributeNotFound1_Title}
601
Dim expected = $"#Disable Warning BC42312 ' {
VBResources
.WRN_XMLDocWithoutLanguageElement_Title}
603
#Enable Warning BC42312 ' {
VBResources
.WRN_XMLDocWithoutLanguageElement_Title}"
611
Dim expected = $"#Disable Warning BC42312 ' {
VBResources
.WRN_XMLDocWithoutLanguageElement_Title}
613
#Enable Warning BC42312 ' {
VBResources
.WRN_XMLDocWithoutLanguageElement_Title}"
628
#Disable Warning BC42309 ' {
VBResources
.WRN_XMLDocCrefAttributeNotFound1_Title}
631
#Enable Warning BC42309 ' {
VBResources
.WRN_XMLDocCrefAttributeNotFound1_Title}
645
#Disable Warning BC42309 ' {
VBResources
.WRN_XMLDocCrefAttributeNotFound1_Title}
648
#Enable Warning BC42309 ' {
VBResources
.WRN_XMLDocCrefAttributeNotFound1_Title}
660
#Disable Warning BC42302 ' {
VBResources
.WRN_XMLDocNotFirstOnLine_Title}
662
#Enable Warning BC42302 ' {
VBResources
.WRN_XMLDocNotFirstOnLine_Title}
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
CodeGen\CodeGenTuples.vb (1)
7212
Assert.Contains(
VBResources
.NotAVbSymbol, ex.Message)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (5)
MissingAssemblyTests.vb (1)
539
Assert.Equal($"error BC30652: { String.Format(
VBResources
.ERR_UnreferencedAssembly3, missingIdentity, "MissingType")}", errorMessage)
ReferencedModulesTests.vb (4)
576
Assert.Equal($"error BC30560: { String.Format(
VBResources
.ERR_AmbiguousInNamespace2, "C1", "N") }", errorMessage)
583
Assert.Equal($"error BC30560: { String.Format(
VBResources
.ERR_AmbiguousInNamespace2, "C1", "N") }", errorMessage)
587
Assert.Equal($"error BC30554: { String.Format(
VBResources
.ERR_AmbiguousInUnnamedNamespace1, "C2") }", errorMessage)
591
Assert.True(errorMessage.StartsWith($"error BC30521: { String.Format(
VBResources
.ERR_NoMostSpecificOverload2, "F", "") }"))
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (2)
CommandLineRunnerTests.vb (2)
106
(1) : error BC30002: " + String.Format(
VBResources
.ERR_UndefinedType1, "C1") + "
120
(1) : error BC2017: " + String.Format(
VBResources
.ERR_LibNotFound, "://invalidfilepath") + "
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.vb (1)
479
Dim message = String.Format("Add resource string named '{0}' for Title of '{1}' to '{2}'", missingResource, descriptor.Id, NameOf(
VBResources
))