72 references to Silent
Microsoft.CodeAnalysis.CodeStyle (13)
AddImportPlacementOptions.cs (1)
23new(AddImportPlacement.OutsideNamespace, 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.CSharp.CodeStyle (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.CSharp.CodeStyle.UnitTests (43)
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)));
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 },
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));
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.VisualBasic.CodeStyle.UnitTests (3)
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))