1 instantiation of MessageProvider
Microsoft.CodeAnalysis.VisualBasic (1)
Errors\MessageProvider.vb (1)
14Public Shared ReadOnly Instance As MessageProvider = New MessageProvider()
56 references to MessageProvider
Microsoft.CodeAnalysis.VisualBasic (56)
CommandLine\VisualBasicCommandLineParser.vb (6)
38MyBase.New(VisualBasic.MessageProvider.Instance, isScriptCommandLineParser) 1802diagnosticBuilder.Add(Diagnostic.Create(VisualBasic.MessageProvider.Instance, ERRID.ERR_InvalidPreprocessorConstantType, symbol.Key, symbol.Value.GetType())) 2242(VisualBasic.MessageProvider.Instance.GetSeverity(number) = DiagnosticSeverity.Warning) AndAlso 2243(VisualBasic.MessageProvider.Instance.GetWarningLevel(number) = 1) Then 2247results.Add(VisualBasic.MessageProvider.Instance.GetIdForErrorCode(CInt(number))) 2283diagnostics.Add(Diagnostic.Create(VisualBasic.MessageProvider.Instance, CInt(errorCode), arguments))
CommandLine\VisualBasicCompiler.vb (2)
288MessageProvider.CreateDiagnostic( 289MessageProvider.ERR_FileNotFound,
Compilation\VisualBasicCompilation.vb (1)
2069Return VisualBasic.MessageProvider.Instance
Compilation\VisualBasicCompilerDiagnosticAnalyzer.vb (1)
18Return CodeAnalysis.VisualBasic.MessageProvider.Instance
Compilation\VisualBasicDiagnosticFilter.vb (3)
70caseInsensitiveSpecificDiagnosticOptions.Keys.Contains(VisualBasic.MessageProvider.Instance.GetIdForErrorCode(ERRID.WRN_AssemblyGeneration1))) Then 71report = GetDiagnosticReport(VisualBasic.MessageProvider.Instance.GetSeverity(ERRID.WRN_AssemblyGeneration1), 73VisualBasic.MessageProvider.Instance.GetIdForErrorCode(ERRID.WRN_AssemblyGeneration1),
Emit\EditAndContinue\VisualBasicDefinitionMap.vb (1)
70Return VisualBasic.MessageProvider.Instance
Errors\CustomDiagnostics.vb (2)
38MyBase.New(VisualBasic.MessageProvider.Instance, errid, additionalArgs) 77MyBase.New(VisualBasic.MessageProvider.Instance, errid, args)
Errors\ErrorFactories.vb (5)
59Return New DiagnosticInfo(MessageProvider.Instance, id) 63Return New DiagnosticInfo(MessageProvider.Instance, id, arguments) 67Return New CustomObsoleteDiagnosticInfo(MessageProvider.Instance, id, data, arguments) 120Dim idWithLanguagePrefix As String = MessageProvider.Instance.GetIdForErrorCode(CInt(id)) 141MyBase.New(VisualBasic.MessageProvider.Instance, 0, arguments)
Errors\LazyObsoleteDiagnosticInfo.vb (1)
19MyBase.New(VisualBasic.MessageProvider.Instance, ERRID.Unknown)
Errors\MessageProvider.vb (1)
14Public Shared ReadOnly Instance As MessageProvider = New MessageProvider()
GlobalImport.ImportDiagnosticInfo.vb (1)
30MyBase.New(VisualBasic.MessageProvider.Instance, wrappedDiagnostic.Code)
OptionsValidator.vb (1)
45syntaxErrors = syntaxErrors.Concat(New VBDiagnostic(New DiagnosticInfo(MessageProvider.Instance, ERRID.ERR_ExpectedEOS), importsClausesSyntaxList(1).GetLocation()))
SourceGeneration\VisualBasicGeneratorDriver.vb (1)
28Return VisualBasic.MessageProvider.Instance
Symbols\AssemblySymbol.vb (2)
295Dim diagInfo As DiagnosticInfo = New DiagnosticInfo(MessageProvider.Instance, ERRID.ERR_TypeFwdCycle2, emittedName.FullName, Me) 300Dim diagnosticInfo = New DiagnosticInfo(MessageProvider.Instance, ERRID.ERR_TypeForwardedToMultipleAssemblies, forwardingModule, Me, emittedName.FullName, destination1, destination2)
Symbols\Metadata\PE\PEFieldSymbol.vb (1)
437fieldUseSiteInfo = New UseSiteInfo(Of AssemblySymbol)(New DiagnosticInfo(MessageProvider.Instance,
Symbols\ObsoleteAttributeHelpers.vb (2)
152Return New CustomObsoleteDiagnosticInfo(MessageProvider.Instance, ERRID.WRN_Experimental, data, New FormattedSymbol(symbol, SymbolDisplayFormat.VisualBasicErrorMessageFormat)) 154Return New CustomObsoleteDiagnosticInfo(MessageProvider.Instance, ERRID.WRN_ExperimentalWithMessage, data, New FormattedSymbol(symbol, SymbolDisplayFormat.VisualBasicErrorMessageFormat),
Symbols\ReferenceManager.vb (1)
92Return VisualBasic.MessageProvider.Instance
Symbols\Source\SourceAssemblySymbol.vb (3)
107_lazyStrongNameKeys = StrongNameKeys.Create(compilation.Options.CryptoPublicKey, privateKey:=Nothing, hasCounterSignature:=False, MessageProvider.Instance) 1715keys = StrongNameKeys.Create(keyFile, MessageProvider.Instance) 1743keys = StrongNameKeys.Create(DeclaringCompilation.Options.StrongNameProvider, keyFile, keyContainer, hasCounterSignature, MessageProvider.Instance)
Symbols\Source\SourceFieldSymbol.vb (1)
760MarshalAsAttributeDecoder(Of CommonFieldWellKnownAttributeData, AttributeSyntax, VisualBasicAttributeData, AttributeLocation).Decode(arguments, AttributeTargets.Field, MessageProvider.Instance)
Symbols\Source\SourceMethodSymbol.vb (2)
1662AttributeData.DecodeMethodImplAttribute(Of MethodWellKnownAttributeData, AttributeSyntax, VisualBasicAttributeData, AttributeLocation)(arguments, MessageProvider.Instance) 1802MarshalAsAttributeDecoder(Of CommonReturnTypeWellKnownAttributeData, AttributeSyntax, VisualBasicAttributeData, AttributeLocation).Decode(arguments, AttributeTargets.ReturnValue, MessageProvider.Instance)
Symbols\Source\SourceNamedTypeSymbol.vb (1)
2272arguments, Me.DefaultMarshallingCharSet, defaultAutoLayoutSize, MessageProvider.Instance)
Symbols\Source\SourceParameterSymbol.vb (1)
360MarshalAsAttributeDecoder(Of CommonParameterWellKnownAttributeData, AttributeSyntax, VisualBasicAttributeData, AttributeLocation).Decode(arguments, AttributeTargets.Parameter, MessageProvider.Instance)
Symbols\Source\SourcePropertySymbol.vb (1)
596Decode(arguments, AttributeTargets.Field, MessageProvider.Instance)
VisualBasicCompilationOptions.vb (12)
1024ValidateOptions(builder, MessageProvider.Instance) 1031builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_VBCoreNetModuleConflict)) 1035builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(Platform), Platform.ToString())) 1039MetadataHelpers.CheckAssemblyOrModuleName(ModuleName, MessageProvider.Instance, ERRID.ERR_BadModuleName, builder) 1043builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(OutputKind), OutputKind.ToString())) 1047builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(OptimizationLevel), OptimizationLevel.ToString())) 1051builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(ScriptClassName), If(ScriptClassName, "Nothing"))) 1055builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(MainTypeName), MainTypeName)) 1059builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(RootNamespace), RootNamespace)) 1063builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(OptionStrict), OptionStrict.ToString())) 1068builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_LibAnycpu32bitPreferredConflict, NameOf(Platform), Platform.ToString())) 1072builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(MetadataImportOptions), MetadataImportOptions.ToString()))
VisualBasicParseOptions.vb (3)
246ValidateOptions(builder, MessageProvider.Instance) 250builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_BadLanguageVersion, LanguageVersion.ToString)) 264builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidPreprocessorConstantType, symbol.Key, symbol.Value.GetType))