123 references to Silent
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (12)
CodeActions\GenerateType\GenerateTypeTests.cs (1)
5228options: Option(CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.FileScoped, NotificationOption2.Silent)));
CodeActions\InitializeParameter\AddParameterCheckTests.cs (2)
1004{ CSharpCodeStyleOptions.PreferThrowExpression, false, NotificationOption2.Silent } 2075{ CSharpCodeStyleOptions.PreferBraces, new CodeStyleOption2<PreferBracesPreference>((PreferBracesPreference)preferBraces, NotificationOption2.Silent) },
CodeActions\PullMemberUp\CSharpPullMemberUpTests.cs (1)
3613options: Option(CSharpCodeStyleOptions.PreferredUsingDirectivePlacement, AddImportPlacement.InsideNamespace, CodeStyle.NotificationOption2.Silent));
Completion\CompletionProviders\PartialMethodCompletionProviderTests.cs (2)
712{ CSharpCodeStyleOptions.PreferExpressionBodiedMethods, new CodeStyleOption2<ExpressionBodyPreference>(ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent) } 739{ CSharpCodeStyleOptions.PreferExpressionBodiedMethods, new CodeStyleOption2<ExpressionBodyPreference>(ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent) }
EventHookup\EventHookupCommandHandlerTests.cs (1)
1013using var testState = EventHookupTestState.CreateTestState(markup, QualifyMethodAccessWithNotification(NotificationOption2.Silent));
ExtractInterface\ExtractInterfaceTests.cs (4)
395{ CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.FileScoped, NotificationOption2.Silent } 435{ CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.FileScoped, NotificationOption2.Silent } 476{ CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.BlockScoped, NotificationOption2.Silent } 903{ CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.Always, NotificationOption2.Silent }
Formatting\CodeCleanupTests.cs (1)
886=> AssertCodeCleanupResult(expected, code, new(AddImportPlacement.OutsideNamespace, NotificationOption2.Silent), systemUsingsFirst, separateUsingGroups, enabledFixIdsFilter, diagnosticIdsWithSeverity);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckDiagnosticAnalyzer.cs (1)
49notificationOption = NotificationOption2.Silent;
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (71)
ConvertForEachToFor\ConvertForEachToForTests.cs (1)
27private readonly CodeStyleOption2<bool> onWithSilent = new CodeStyleOption2<bool>(true, NotificationOption2.Silent);
ConvertForToForEach\ConvertForToForEachTests.cs (1)
25private readonly CodeStyleOption2<bool> onWithSilent = new CodeStyleOption2<bool>(true, NotificationOption2.Silent);
ConvertProgram\ConvertToProgramMainAnalyzerTests.cs (4)
71Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Silent } }, 97Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Silent } }, 125Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Silent } }, 136Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Silent } },
ConvertProgram\ConvertToProgramMainRefactoringTests.cs (1)
137{ CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Silent },
ConvertProgram\ConvertToTopLevelStatementsRefactoringTests.cs (1)
186{ CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Silent },
Diagnostics\Configuration\ConfigureSeverity\VarForBuiltInTypesSeverityConfigurationTests.cs (1)
37Assert.Equal(NotificationOption2.Silent, CSharpCodeStyleOptions.VarForBuiltInTypes.DefaultValue.Notification);
EncapsulateField\EncapsulateFieldTests.cs (2)
200{ CSharpCodeStyleOptions.PreferExpressionBodiedProperties, ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent }, 201{ CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, ExpressionBodyPreference.Never, NotificationOption2.Silent }
ExtractClass\ExtractClassTests.cs (3)
604{ CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.FileScoped, NotificationOption2.Silent } 659{ CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.FileScoped, NotificationOption2.Silent } 714{ CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.BlockScoped, NotificationOption2.Silent }
IntroduceUsingStatement\IntroduceUsingStatementTests.cs (2)
25{ CSharpCodeStyleOptions.PreferSimpleUsingStatement, new CodeStyleOption2<bool>(false, NotificationOption2.Silent) } 30{ CSharpCodeStyleOptions.PreferSimpleUsingStatement, new CodeStyleOption2<bool>(true, NotificationOption2.Silent) }
SimplifyTypeNames\SimplifyTypeNamesTests.cs (1)
6919private readonly CodeStyleOption2<bool> offWithSilent = new(false, NotificationOption2.Silent);
src\Analyzers\CSharp\Tests\AddBraces\AddBracesTests.cs (17)
48new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 72new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 92new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 112new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 132new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 152new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 173new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 201new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 236new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 257new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 278new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 298new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 1378new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 1400new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 1424new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 1856await TestInRegularAndScriptAsync(initialMarkup, expectedMarkup, new(options: Option(CSharpCodeStyleOptions.PreferBraces, bracesPreference, NotificationOption2.Silent))); 1860await TestMissingInRegularAndScriptAsync(initialMarkup, new(options: Option(CSharpCodeStyleOptions.PreferBraces, bracesPreference, NotificationOption2.Silent)));
src\Analyzers\CSharp\Tests\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionTests.cs (12)
1288{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1352{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1416{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1488{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1552{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1616{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1680{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1723{ CSharpCodeStyleOptions.VarForBuiltInTypes, true, NotificationOption2.Silent }, 1766{ CSharpCodeStyleOptions.VarForBuiltInTypes, true, NotificationOption2.Silent }, 1809{ CSharpCodeStyleOptions.VarForBuiltInTypes, true, NotificationOption2.Silent }, 1852{ CSharpCodeStyleOptions.VarForBuiltInTypes, false, NotificationOption2.Silent }, 1895{ CSharpCodeStyleOptions.VarForBuiltInTypes, true, NotificationOption2.Silent },
src\Analyzers\CSharp\Tests\ImplementAbstractClass\ImplementAbstractClassTests.cs (10)
1373{ CSharpCodeStyleOptions.PreferExpressionBodiedProperties, ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent }, 1374{ CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, ExpressionBodyPreference.Never, NotificationOption2.Silent }, 1413{ CSharpCodeStyleOptions.PreferExpressionBodiedProperties, ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent }, 1414{ CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, ExpressionBodyPreference.Never, NotificationOption2.Silent }, 1473{ CSharpCodeStyleOptions.PreferExpressionBodiedIndexers, ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent }, 1474{ CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, ExpressionBodyPreference.Never, NotificationOption2.Silent }, 1513{ CSharpCodeStyleOptions.PreferExpressionBodiedIndexers, ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent }, 1514{ CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, ExpressionBodyPreference.Never, NotificationOption2.Silent }, 1542{ CSharpCodeStyleOptions.PreferExpressionBodiedProperties, ExpressionBodyPreference.Never, NotificationOption2.Silent }, 1543{ CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent },
src\Analyzers\CSharp\Tests\QualifyMemberAccess\QualifyMemberAccessTests.cs (1)
1420CodeStyleOptions2.QualifyPropertyAccess, NotificationOption2.Silent);
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueAssignmentTests.cs (1)
221{ CodeStyleOptions2.UnusedParameters, UnusedParametersPreference.NonPublicMethods, NotificationOption2.Silent },
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueExpressionStatementTests.cs (2)
33new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.DiscardVariable, NotificationOption2.Silent)); 37new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.UnusedLocalVariable, NotificationOption2.Silent));
src\Analyzers\CSharp\Tests\UseExpressionBody\UseExpressionBodyForMethodsAnalyzerTests.cs (5)
48Assert.Equal(NotificationOption2.Silent, option.Notification); 52Assert.Equal(NotificationOption2.Silent, option.Notification); 56Assert.Equal(NotificationOption2.Silent, option.Notification); 60Assert.Equal(NotificationOption2.Silent, option.Notification); 64Assert.Equal(NotificationOption2.Silent, option.Notification);
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseExplicitTypeTests.cs (1)
27private readonly CodeStyleOption2<bool> offWithSilent = new(false, NotificationOption2.Silent);
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseImplicitTypeTests.cs (1)
28private static readonly CodeStyleOption2<bool> onWithSilent = new(true, NotificationOption2.Silent);
src\Analyzers\CSharp\Tests\UseTupleSwap\UseTupleSwapTests.cs (1)
59{ CSharpCodeStyleOptions.PreferTupleSwap, false, CodeStyle.NotificationOption2.Silent }
src\Analyzers\CSharp\Tests\UseUnboundGenericTypeInNameOf\UseUnboundGenericTypeInNameOfTests.cs (1)
105{ CSharpCodeStyleOptions.PreferUnboundGenericTypeInNameOf, false, CodeStyle.NotificationOption2.Silent }
src\Analyzers\CSharp\Tests\UseVarTestExtensions.cs (2)
16private static readonly CodeStyleOption2<bool> onWithSilent = new(true, NotificationOption2.Silent); 17private static readonly CodeStyleOption2<bool> offWithSilent = new(false, NotificationOption2.Silent);
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpCodeGenerationOptions.cs (3)
17new(ExpressionBodyPreference.Never, NotificationOption2.Silent); 20new(ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent); 23new(NamespaceDeclarationPreference.BlockScoped, NotificationOption2.Silent);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (5)
96new(ExpressionBodyPreference.Never, NotificationOption2.Silent); 102new(ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent); 108new(ExpressionBodyPreference.WhenOnSingleLine, NotificationOption2.Silent); 181defaultValue: new CodeStyleOption2<string>(string.Join(",", s_preferredModifierOrderDefault.Select(SyntaxFacts.GetText)), NotificationOption2.Silent)); 233defaultValue: new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.DiscardVariable, NotificationOption2.Silent),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpSyntaxFormattingOptions.cs (2)
18new(NamespaceDeclarationPreference.BlockScoped, NotificationOption2.Silent); 21new(value: true, notification: NotificationOption2.Silent);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpSimplifierOptions.cs (1)
19new(PreferBracesPreference.Always, NotificationOption2.Silent);
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Data\CodeStyleSetting.cs (1)
38ReportDiagnostic.Hidden => NotificationOption2.Silent,
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
ExtractInterface\AbstractExtractInterfaceTests.cs (1)
98{ CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.Never, NotificationOption2.Silent }
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
62{ CSharpCodeStyleOptions.NamespaceDeclarations, new CodeStyleOption2<NamespaceDeclarationPreference>(NamespaceDeclarationPreference.FileScoped, NotificationOption2.Silent) }
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDetectionAnalyzer.cs (1)
97NotificationOption2.Silent,
Microsoft.CodeAnalysis.Workspaces (19)
CodeStyle\NotificationOption.cs (2)
45/// <inheritdoc cref="NotificationOption2.Silent"/> 46public static readonly NotificationOption Silent = new(NotificationOption2.Silent);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\AddImport\AddImportPlacementOptions.cs (1)
14new(AddImportPlacement.OutsideNamespace, NotificationOption2.Silent);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (2)
106notification = NotificationOption2.Silent; 114notification = NotificationOption2.Silent;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (4)
41public static readonly CodeStyleOption2<bool> TrueWithSilentEnforcement = new(value: true, notification: NotificationOption2.Silent); 42public static readonly CodeStyleOption2<bool> FalseWithSilentEnforcement = new(value: false, notification: NotificationOption2.Silent); 77public static readonly CodeStyleOption2<T> Default = new(default!, NotificationOption2.Silent); 192DiagnosticSeverity.Hidden => NotificationOption2.Silent,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (3)
209defaultValue: new CodeStyleOption2<AccessibilityModifiersRequired>(SyntaxFormattingOptions.CommonDefaults.AccessibilityModifiersRequired, NotificationOption2.Silent), 275new(ParenthesesPreference.AlwaysForClarity, NotificationOption2.Silent); 294defaultValue: new(ParenthesesPreference.NeverIfUnnecessary, NotificationOption2.Silent),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\NotificationOption2.cs (2)
52ReportDiagnostic.Hidden or ReportDiagnostic.Default => Silent, 63DiagnosticSeverity.Hidden => Silent,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\VisualBasic\VisualBasicCodeStyleOptions.cs (2)
31"Dim,Const,WithEvents,Widening,Narrowing,Custom,Async,Iterator", NotificationOption2.Silent)); 46defaultValue: new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.UnusedLocalVariable, NotificationOption2.Silent),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions.cs (1)
18DiagnosticSeverity.Hidden => NotificationOption2.Silent,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (1)
33ReportDiagnostic.Hidden => NotificationOption2.Silent,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\Simplifiers\AbstractMemberAccessExpressionSimplifier.cs (1)
40notificationOption = NotificationOption2.Silent;
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
Options\CodeStyleOptionTests.cs (5)
73var option = new CodeStyleOption2<bool>(false, NotificationOption2.Silent); 79option = new CodeStyleOption2<bool>(true, NotificationOption2.Silent); 92var option = new CodeStyleOption2<ExpressionBodyPreference>(ExpressionBodyPreference.Never, NotificationOption2.Silent); 98option = new CodeStyleOption2<ExpressionBodyPreference>(ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent); 106option = new CodeStyleOption2<ExpressionBodyPreference>(ExpressionBodyPreference.WhenOnSingleLine, NotificationOption2.Silent);