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