6 references to WithIsExplicitlySpecified
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
85
notification = localNotification.
WithIsExplicitlySpecified
(true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions.cs (1)
22
return notificationOption.
WithIsExplicitlySpecified
(isOverridenSeverity);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (1)
38
return notificationOption.
WithIsExplicitlySpecified
(isNonDefault);
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (3)
src\Analyzers\CSharp\Tests\UseExpressionBody\UseExpressionBodyForMethodsAnalyzerTests.cs (3)
68
Assert.Equal(NotificationOption2.Error.
WithIsExplicitlySpecified
(true), option.Notification);
72
Assert.Equal(NotificationOption2.Warning.
WithIsExplicitlySpecified
(true), option.Notification);
76
Assert.Equal(NotificationOption2.Suggestion.
WithIsExplicitlySpecified
(true), option.Notification);