45 references to ErrorFacts
Microsoft.CodeAnalysis.CSharp (45)
Binder\Binder_Lambda.cs (1)
296diagnostics.Add(ErrorFacts.GetStaticClassReturnCode(useWarning: false), syntax.Location, type);
Binder\Binder_Statements.cs (2)
2159Error(diagnostics, ErrorFacts.GetStaticClassParameterCode(useWarning: false), anonymousFunction.ParameterLocation(i), delegateParameters[i].Type); 2213Debug.Assert(ErrorFacts.PreventsSuccessfulDelegateConversion(bindingResult.Diagnostics.Diagnostics));
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1580if (ErrorFacts.PreventsSuccessfulDelegateConversion(bound.Diagnostics.Diagnostics))
BoundTree\UnboundLambda.cs (2)
863if (IsAsync && !ErrorFacts.PreventsSuccessfulDelegateConversion(diagnostics.DiagnosticBag)) 1367if (ErrorFacts.PreventsSuccessfulDelegateConversion((ErrorCode)diagnostic.Code))
CommandLine\CSharpCommandLineParser.cs (2)
2101foreach (var errorCode in ErrorFacts.NullableWarnings) 2113ErrorFacts.IsWarning((ErrorCode)number))
CommandLine\CSharpCompiler.cs (5)
277consoleOutput.WriteLine(ErrorFacts.GetMessage(MessageID.IDS_LogoLine1, Culture), GetToolName(), GetCompilerVersion()); 278consoleOutput.WriteLine(ErrorFacts.GetMessage(MessageID.IDS_LogoLine2, Culture)); 284consoleOutput.WriteLine(ErrorFacts.GetMessage(MessageID.IDS_LangVersions, Culture)); 316return ErrorFacts.GetMessage(MessageID.IDS_ToolName, Culture); 325consoleOutput.WriteLine(ErrorFacts.GetMessage(MessageID.IDS_CSCHelp, Culture));
Compilation\CSharpCompilerDiagnosticAnalyzer.cs (1)
28if (!ErrorFacts.IsBuildOnlyDiagnostic(errorCode) &&
Compilation\CSharpDiagnosticFilter.cs (3)
79reportAction = GetDiagnosticReport(ErrorFacts.GetSeverity(ErrorCode.WRN_ALinkWarn), 83ErrorFacts.GetWarningLevel(ErrorCode.WRN_ALinkWarn), 157bool isNullableFlowAnalysisWarning = ErrorFacts.NullableWarnings.Contains(id);
Compiler\DocumentationCommentCompiler.cs (2)
298string message = ErrorFacts.GetMessage(MessageID.IDS_XMLIGNORED, CultureInfo.CurrentUICulture); 348string message = ErrorFacts.GetMessage(MessageID.IDS_XMLIGNORED, CultureInfo.CurrentUICulture);
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (3)
286commentMessage = ErrorFacts.GetMessage(MessageID.IDS_XMLNOINCLUDE, CultureInfo.CurrentUICulture); 409commentMessage = string.Format(ErrorFacts.GetMessage(MessageID.IDS_XMLIGNORED2, CultureInfo.CurrentUICulture), resolvedFilePath); 438return ErrorFacts.GetMessage(messageId, CultureInfo.CurrentUICulture);
Errors\CSharpDiagnosticFormatter.cs (1)
17return diagnostic.Descriptor.HelpLinkUri == ErrorFacts.GetHelpLink((ErrorCode)diagnostic.Code);
Errors\ErrorFacts.cs (5)
152return new LocalizableResourceString(code.ToString(), ResourceManager, typeof(ErrorFacts)); 157return new LocalizableResourceString(code.ToString() + s_titleSuffix, ResourceManager, typeof(ErrorFacts)); 162return new LocalizableResourceString(code.ToString() + s_descriptionSuffix, ResourceManager, typeof(ErrorFacts)); 2523if (ErrorFacts.PreventsSuccessfulDelegateConversion((ErrorCode)diag.Code)) 2536if (ErrorFacts.PreventsSuccessfulDelegateConversion((ErrorCode)diag.Code))
Errors\MessageID.cs (1)
317return ErrorFacts.GetMessage(_id, formatProvider as System.Globalization.CultureInfo);
Errors\MessageProvider.cs (8)
27return ErrorFacts.GetSeverity((ErrorCode)code); 32return ErrorFacts.GetMessage((ErrorCode)code, language); 37return ErrorFacts.GetMessageFormat((ErrorCode)code); 42return ErrorFacts.GetDescription((ErrorCode)code); 47return ErrorFacts.GetTitle((ErrorCode)code); 52return ErrorFacts.GetHelpLink((ErrorCode)code); 57return ErrorFacts.GetCategory((ErrorCode)code); 79return ErrorFacts.GetWarningLevel((ErrorCode)code);
Errors\XmlSyntaxDiagnosticInfo.cs (1)
41string message = ErrorFacts.GetMessage(_xmlErrorCode, culture);
FlowAnalysis\NullableWalker.cs (1)
2579Debug.Assert(ErrorFacts.NullableWarnings.Contains(MessageProvider.Instance.GetIdForErrorCode((int)errorCode)));
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
79diagnostics.Add(ErrorFacts.GetStaticClassReturnCode(useWarning: false), returnTypeParameter.Location, returnType);
Symbols\Source\ParameterHelpers.cs (1)
681ErrorFacts.GetStaticClassParameterCode(containingSymbol?.ContainingType?.IsInterfaceType() ?? false),
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
845diagnostics.Add(ErrorFacts.GetStaticClassReturnCode(ContainingType.IsInterfaceType()), location, ReturnType);
Symbols\Source\SourcePropertySymbolBase.cs (2)
1847diagnostics.Add(ErrorFacts.GetStaticClassReturnCode(ContainingType.IsInterfaceType()), TypeLocation, type); 1852diagnostics.Add(ErrorFacts.GetStaticClassParameterCode(ContainingType.IsInterfaceType()), TypeLocation, type);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
267diagnostics.Add(ErrorFacts.GetStaticClassReturnCode(useWarning: false), returnTypeSyntax.Location, returnType.Type);