23 references to GetWarningLevel
Microsoft.CodeAnalysis.CSharp (2)
Compilation\CSharpDiagnosticFilter.cs (1)
83ErrorFacts.GetWarningLevel(ErrorCode.WRN_ALinkWarn),
Errors\MessageProvider.cs (1)
79return ErrorFacts.GetWarningLevel((ErrorCode)code);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (21)
Diagnostics\DiagnosticTest.cs (21)
220Assert.NotEqual(0, ErrorFacts.GetWarningLevel(errorCode)); 225Assert.Equal(0, ErrorFacts.GetWarningLevel(errorCode)); 236Assert.Equal(2, ErrorFacts.GetWarningLevel(ErrorCode.WRN_DeprecatedCollectionInitAddStr)); 237Assert.Equal(1, ErrorFacts.GetWarningLevel(ErrorCode.WRN_DefaultValueForUnconsumedLocation)); 238Assert.Equal(2, ErrorFacts.GetWarningLevel(ErrorCode.WRN_UnmatchedParamRefTag)); 239Assert.Equal(2, ErrorFacts.GetWarningLevel(ErrorCode.WRN_UnmatchedTypeParamRefTag)); 240Assert.Equal(1, ErrorFacts.GetWarningLevel(ErrorCode.WRN_ReferencedAssemblyReferencesLinkedPIA)); 241Assert.Equal(2, ErrorFacts.GetWarningLevel(ErrorCode.WRN_DynamicDispatchToConditionalMethod)); 242Assert.Equal(3, ErrorFacts.GetWarningLevel(ErrorCode.WRN_IsDynamicIsConfusing)); 243Assert.Equal(2, ErrorFacts.GetWarningLevel(ErrorCode.WRN_NoSources)); 429Assert.Equal(1, ErrorFacts.GetWarningLevel(errorCode)); 434Assert.Equal(2, ErrorFacts.GetWarningLevel(errorCode)); 439Assert.Equal(3, ErrorFacts.GetWarningLevel(errorCode)); 442Assert.Equal(4, ErrorFacts.GetWarningLevel(errorCode)); 461Assert.Equal(5, ErrorFacts.GetWarningLevel(errorCode)); 465Assert.Equal(6, ErrorFacts.GetWarningLevel(errorCode)); 469Assert.Equal(7, ErrorFacts.GetWarningLevel(errorCode)); 474Assert.Equal(8, ErrorFacts.GetWarningLevel(errorCode)); 478Assert.Equal(9, ErrorFacts.GetWarningLevel(errorCode)); 482Assert.Equal(10, ErrorFacts.GetWarningLevel(errorCode)); 487Assert.True(false, $"Please update this test case with a proper warning level ({ErrorFacts.GetWarningLevel(errorCode)}) for '{errorCodeName}'");