8 references to WithIsExplicitlySpecified
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
src\Analyzers\CSharp\Tests\UseExpressionBody\UseExpressionBodyForMethodsAnalyzerTests.cs (3)
68Assert.Equal(NotificationOption2.Error.WithIsExplicitlySpecified(true), option.Notification); 72Assert.Equal(NotificationOption2.Warning.WithIsExplicitlySpecified(true), option.Notification); 76Assert.Equal(NotificationOption2.Suggestion.WithIsExplicitlySpecified(true), option.Notification);
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
85notification = localNotification.WithIsExplicitlySpecified(true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions.cs (1)
22return notificationOption.WithIsExplicitlySpecified(isOverridenSeverity);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (1)
38return notificationOption.WithIsExplicitlySpecified(isNonDefault);
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Options\DocumentOptionSetTests.cs (1)
32var internalCodeStyleOption = new CodeStyleOption2<bool>(true, NotificationOption2.Warning.WithIsExplicitlySpecified(true));
Options\OptionKeyTests.cs (1)
172Assert.Equal(new CodeStyleOption2<bool>(true, NotificationOption2.Suggestion.WithIsExplicitlySpecified(true)), result);