127 references to Silent
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (80)
AddBracesTests.cs (17)
49new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 75new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 97new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 119new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 141new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 163new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 186new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 216new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 253new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 276new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 299new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 321new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 1457new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 1481new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 1507new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 1960await TestInRegularAndScriptAsync(initialMarkup, expectedMarkup, options: Option(CSharpCodeStyleOptions.PreferBraces, bracesPreference, NotificationOption2.Silent)); 1964await TestMissingInRegularAndScriptAsync(initialMarkup, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, bracesPreference, NotificationOption2.Silent)));
CodeActions\EncapsulateField\EncapsulateFieldTests.cs (2)
220{ CSharpCodeStyleOptions.PreferExpressionBodiedProperties, ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent }, 221{ CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, ExpressionBodyPreference.Never, NotificationOption2.Silent }
Completion\CompletionProviders\PartialMethodCompletionProviderTests.cs (2)
785new CodeStyleOption2<ExpressionBodyPreference>(ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent)); 816new CodeStyleOption2<ExpressionBodyPreference>(ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent));
ConvertForEachToFor\ConvertForEachToForTests.cs (1)
28private 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)
79Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Silent } }, 103Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Silent } }, 129Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Silent } }, 145Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Silent } },
ConvertProgram\ConvertToProgramMainRefactoringTests.cs (1)
158{ CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Silent },
ConvertProgram\ConvertToTopLevelStatementsRefactoringTests.cs (1)
221{ CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Silent },
ConvertSwitchStatementToExpressionTests.cs (12)
1338{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1409{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1480{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1559{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1630{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1701{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1772{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1822{ CSharpCodeStyleOptions.VarForBuiltInTypes, true, NotificationOption2.Silent }, 1871{ CSharpCodeStyleOptions.VarForBuiltInTypes, true, NotificationOption2.Silent }, 1921{ CSharpCodeStyleOptions.VarForBuiltInTypes, true, NotificationOption2.Silent }, 1971{ CSharpCodeStyleOptions.VarForBuiltInTypes, false, NotificationOption2.Silent }, 2021{ CSharpCodeStyleOptions.VarForBuiltInTypes, true, NotificationOption2.Silent },
Diagnostics\Configuration\ConfigureSeverity\VarForBuiltInTypesSeverityConfigurationTests.cs (1)
37Assert.Equal(NotificationOption2.Silent, CSharpCodeStyleOptions.VarForBuiltInTypes.DefaultValue.Notification);
Diagnostics\GenerateType\GenerateTypeTests.cs (1)
4917options: Option(CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.FileScoped, NotificationOption2.Silent)));
EventHookup\EventHookupCommandHandlerTests.cs (1)
1004using var testState = EventHookupTestState.CreateTestState(markup, QualifyMethodAccessWithNotification(NotificationOption2.Silent));
ExtractClass\ExtractClassTests.cs (3)
655{ CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.FileScoped, NotificationOption2.Silent } 712{ CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.FileScoped, NotificationOption2.Silent } 769{ CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.BlockScoped, NotificationOption2.Silent }
ExtractInterface\ExtractInterfaceTests.cs (4)
504{ CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.FileScoped, NotificationOption2.Silent } 544{ CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.FileScoped, NotificationOption2.Silent } 585{ CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.BlockScoped, NotificationOption2.Silent } 1053{ CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.Always, NotificationOption2.Silent }
Formatting\CodeCleanupTests.cs (1)
802=> AssertCodeCleanupResult(expected, code, new(AddImportPlacement.OutsideNamespace, NotificationOption2.Silent), systemUsingsFirst, separateUsingGroups);
ImplementAbstractClass\ImplementAbstractClassTests.cs (10)
1374{ CSharpCodeStyleOptions.PreferExpressionBodiedProperties, ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent }, 1375{ CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, ExpressionBodyPreference.Never, NotificationOption2.Silent }, 1416{ CSharpCodeStyleOptions.PreferExpressionBodiedProperties, ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent }, 1417{ CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, ExpressionBodyPreference.Never, NotificationOption2.Silent }, 1480{ CSharpCodeStyleOptions.PreferExpressionBodiedIndexers, ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent }, 1481{ CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, ExpressionBodyPreference.Never, NotificationOption2.Silent }, 1522{ CSharpCodeStyleOptions.PreferExpressionBodiedIndexers, ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent }, 1523{ CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, ExpressionBodyPreference.Never, NotificationOption2.Silent }, 1553{ CSharpCodeStyleOptions.PreferExpressionBodiedProperties, ExpressionBodyPreference.Never, NotificationOption2.Silent }, 1554{ CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent },
InitializeParameter\AddParameterCheckTests.cs (2)
971{ CSharpCodeStyleOptions.PreferThrowExpression, false, NotificationOption2.Silent } 2057{ CSharpCodeStyleOptions.PreferBraces, new CodeStyleOption2<PreferBracesPreference>((PreferBracesPreference)preferBraces, NotificationOption2.Silent) },
PullMemberUp\CSharpPullMemberUpTests.cs (1)
3880options: Option(CSharpCodeStyleOptions.PreferredUsingDirectivePlacement, AddImportPlacement.InsideNamespace, CodeStyle.NotificationOption2.Silent));
QualifyMemberAccessTests.cs (1)
1528CodeStyleOptions2.QualifyPropertyAccess, NotificationOption2.Silent);
RemoveUnusedValueAssignmentTests.cs (1)
246{ CodeStyleOptions2.UnusedParameters, UnusedParametersPreference.NonPublicMethods, NotificationOption2.Silent },
RemoveUnusedValueExpressionStatementTests.cs (2)
33new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.DiscardVariable, NotificationOption2.Silent)); 37new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.UnusedLocalVariable, NotificationOption2.Silent));
SimplifyTypeNames\SimplifyTypeNamesTests.cs (1)
7139private readonly CodeStyleOption2<bool> offWithSilent = new CodeStyleOption2<bool>(false, NotificationOption2.Silent);
UseExplicitTypeTests.cs (1)
31private readonly CodeStyleOption2<bool> offWithSilent = new(false, NotificationOption2.Silent);
UseExpressionBodyForMethodsAnalyzerTests.cs (5)
52Assert.Equal(NotificationOption2.Silent, option.Notification); 56Assert.Equal(NotificationOption2.Silent, option.Notification); 60Assert.Equal(NotificationOption2.Silent, option.Notification); 64Assert.Equal(NotificationOption2.Silent, option.Notification); 68Assert.Equal(NotificationOption2.Silent, option.Notification);
UseImplicitTypeTests.cs (1)
32private static readonly CodeStyleOption2<bool> onWithSilent = new(true, NotificationOption2.Silent);
UseTupleSwapTests.cs (1)
68{ CSharpCodeStyleOptions.PreferTupleSwap, false, CodeStyle.NotificationOption2.Silent }
UseVarTestExtensions.cs (2)
21private static readonly CodeStyleOption2<bool> onWithSilent = new CodeStyleOption2<bool>(true, NotificationOption2.Silent); 22private static readonly CodeStyleOption2<bool> offWithSilent = new CodeStyleOption2<bool>(false, NotificationOption2.Silent);
Microsoft.CodeAnalysis.CSharp.Workspaces (13)
CSharpCodeGenerationOptions.cs (3)
26new(ExpressionBodyPreference.Never, NotificationOption2.Silent); 29new(ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent); 32new(NamespaceDeclarationPreference.BlockScoped, NotificationOption2.Silent);
CSharpCodeStyleOptions.cs (3)
92new(ExpressionBodyPreference.Never, NotificationOption2.Silent); 98new(ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent); 104new(ExpressionBodyPreference.WhenOnSingleLine, NotificationOption2.Silent);
CSharpIdeCodeStyleOptions.cs (4)
32new(UnusedValuePreference.DiscardVariable, NotificationOption2.Silent); 38new(string.Join(",", s_preferredModifierOrderDefault.Select(SyntaxFacts.GetText)), NotificationOption2.Silent); 41new(AddImportPlacement.OutsideNamespace, NotificationOption2.Silent); 44new(ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent);
CSharpSimplifierOptions.cs (1)
19new(PreferBracesPreference.Always, NotificationOption2.Silent);
CSharpSyntaxFormattingOptions.cs (2)
18new(NamespaceDeclarationPreference.BlockScoped, NotificationOption2.Silent); 21new(value: true, notification: NotificationOption2.Silent);
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Data\CodeStyleSetting.cs (1)
39DiagnosticSeverity.Hidden => NotificationOption2.Silent,
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
ExtractInterface\AbstractExtractInterfaceTests.cs (1)
101{ CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.Never, NotificationOption2.Silent }
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
131NamespaceDeclarations = new CodeStyleOption2<NamespaceDeclarationPreference>(NamespaceDeclarationPreference.FileScoped, NotificationOption2.Silent)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (3)
Simplification\BlockSimplificationTests.vb (1)
17{CSharpCodeStyleOptions.PreferBraces, New CodeStyleOption2(Of PreferBracesPreference)(PreferBracesPreference.None, NotificationOption2.Silent)}
Simplification\TypeNameSimplifierTest.vb (2)
3131Await TestAsync(input, expected, QualifyPropertyAccessOptionWithNotification(LanguageNames.CSharp, NotificationOption2.Silent)) 5670Await TestAsync(input, expected, QualifyPropertyAccessOptionWithNotification(LanguageNames.VisualBasic, NotificationOption2.Silent))
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (4)
QualifyMemberAccessTests.vb (1)
547CodeStyleOptions2.QualifyPropertyAccess, NotificationOption2.Silent)
RemoveUnusedValueExpressionStatementTests.vb (2)
24New CodeStyleOption2(Of UnusedValuePreference)(UnusedValuePreference.DiscardVariable, NotificationOption2.Silent)) 31New CodeStyleOption2(Of UnusedValuePreference)(UnusedValuePreference.UnusedLocalVariable, NotificationOption2.Silent))
SimplifyTypeNames\SimplifyTypeNamesTests.vb (1)
54Private ReadOnly offWithSilent As New CodeStyleOption2(Of Boolean)(False, NotificationOption2.Silent)
Microsoft.CodeAnalysis.Workspaces (15)
AddImportPlacementOptions.cs (1)
23new(AddImportPlacement.OutsideNamespace, NotificationOption2.Silent);
CodeStyle\NotificationOption.cs (2)
48/// <inheritdoc cref="NotificationOption2.Silent"/> 49public static readonly NotificationOption Silent = new(NotificationOption2.Silent);
CodeStyleHelpers.cs (2)
104notification = NotificationOption2.Silent; 112notification = NotificationOption2.Silent;
CodeStyleOption2`1.cs (4)
44public static readonly CodeStyleOption2<bool> TrueWithSilentEnforcement = new(value: true, notification: NotificationOption2.Silent); 45public static readonly CodeStyleOption2<bool> FalseWithSilentEnforcement = new(value: false, notification: NotificationOption2.Silent); 80public static readonly CodeStyleOption2<T> Default = new(default!, NotificationOption2.Silent); 208DiagnosticSeverity.Hidden => NotificationOption2.Silent,
IdeCodeStyleOptions.cs (3)
17new(SyntaxFormattingOptions.CommonDefaults.AccessibilityModifiersRequired, NotificationOption2.Silent); 20new(ParenthesesPreference.AlwaysForClarity, NotificationOption2.Silent); 23new(ParenthesesPreference.NeverIfUnnecessary, NotificationOption2.Silent);
ReportDiagnosticExtensions.cs (1)
98return NotificationOption2.Silent;
VisualBasicIdeCodeStyleOptions.cs (2)
16new(UnusedValuePreference.UnusedLocalVariable, NotificationOption2.Silent); 24"Dim,Const,WithEvents,Widening,Narrowing,Custom,Async,Iterator", NotificationOption2.Silent);
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
Options\CodeStyleOptionTests.cs (5)
81var option = new CodeStyleOption2<bool>(false, NotificationOption2.Silent); 87option = new CodeStyleOption2<bool>(true, NotificationOption2.Silent); 100var option = new CodeStyleOption2<ExpressionBodyPreference>(ExpressionBodyPreference.Never, NotificationOption2.Silent); 106option = new CodeStyleOption2<ExpressionBodyPreference>(ExpressionBodyPreference.WhenPossible, NotificationOption2.Silent); 114option = new CodeStyleOption2<ExpressionBodyPreference>(ExpressionBodyPreference.WhenOnSingleLine, NotificationOption2.Silent);
Microsoft.VisualStudio.LanguageServices.Implementation (3)
Options\Style\AbstractCodeStyleOptionViewModel.cs (1)
70new NotificationOptionViewModel(NotificationOption2.Silent, KnownMonikers.None),
Options\Style\NamingPreferences\NamingStyleOptionPageControl.xaml.cs (1)
44new NotificationOptionViewModel(NotificationOption2.Silent, KnownMonikers.None),
Options\Style\NamingPreferences\NamingStyleOptionPageViewModel.cs (1)
27new NotificationOptionViewModel(NotificationOption2.Silent, KnownMonikers.None),
Roslyn.VisualStudio.Next.UnitTests (1)
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (1)
107PreferNullPropagation = new CodeStyleOption2<bool>(false, NotificationOption2.Silent)