72 references to Silent
Microsoft.CodeAnalysis.CodeStyle (13)
AddImportPlacementOptions.cs (1)
23
new(AddImportPlacement.OutsideNamespace, NotificationOption2.
Silent
);
CodeStyleHelpers.cs (2)
104
notification = NotificationOption2.
Silent
;
112
notification = NotificationOption2.
Silent
;
CodeStyleOption2`1.cs (4)
44
public static readonly CodeStyleOption2<bool> TrueWithSilentEnforcement = new(value: true, notification: NotificationOption2.
Silent
);
45
public static readonly CodeStyleOption2<bool> FalseWithSilentEnforcement = new(value: false, notification: NotificationOption2.
Silent
);
80
public static readonly CodeStyleOption2<T> Default = new(default!, NotificationOption2.
Silent
);
208
DiagnosticSeverity.Hidden => NotificationOption2.
Silent
,
IdeCodeStyleOptions.cs (3)
17
new(SyntaxFormattingOptions.CommonDefaults.AccessibilityModifiersRequired, NotificationOption2.
Silent
);
20
new(ParenthesesPreference.AlwaysForClarity, NotificationOption2.
Silent
);
23
new(ParenthesesPreference.NeverIfUnnecessary, NotificationOption2.
Silent
);
ReportDiagnosticExtensions.cs (1)
98
return NotificationOption2.
Silent
;
VisualBasicIdeCodeStyleOptions.cs (2)
16
new(UnusedValuePreference.UnusedLocalVariable, NotificationOption2.
Silent
);
24
"Dim,Const,WithEvents,Widening,Narrowing,Custom,Async,Iterator", NotificationOption2.
Silent
);
Microsoft.CodeAnalysis.CSharp.CodeStyle (13)
CSharpCodeGenerationOptions.cs (3)
26
new(ExpressionBodyPreference.Never, NotificationOption2.
Silent
);
29
new(ExpressionBodyPreference.WhenPossible, NotificationOption2.
Silent
);
32
new(NamespaceDeclarationPreference.BlockScoped, NotificationOption2.
Silent
);
CSharpCodeStyleOptions.cs (3)
92
new(ExpressionBodyPreference.Never, NotificationOption2.
Silent
);
98
new(ExpressionBodyPreference.WhenPossible, NotificationOption2.
Silent
);
104
new(ExpressionBodyPreference.WhenOnSingleLine, NotificationOption2.
Silent
);
CSharpIdeCodeStyleOptions.cs (4)
32
new(UnusedValuePreference.DiscardVariable, NotificationOption2.
Silent
);
38
new(string.Join(",", s_preferredModifierOrderDefault.Select(SyntaxFacts.GetText)), NotificationOption2.
Silent
);
41
new(AddImportPlacement.OutsideNamespace, NotificationOption2.
Silent
);
44
new(ExpressionBodyPreference.WhenPossible, NotificationOption2.
Silent
);
CSharpSimplifierOptions.cs (1)
19
new(PreferBracesPreference.Always, NotificationOption2.
Silent
);
CSharpSyntaxFormattingOptions.cs (2)
18
new(NamespaceDeclarationPreference.BlockScoped, NotificationOption2.
Silent
);
21
new(value: true, notification: NotificationOption2.
Silent
);
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (43)
AddBracesTests.cs (17)
49
new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.
Silent
)));
75
new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.
Silent
)));
97
new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.
Silent
)));
119
new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.
Silent
)));
141
new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.
Silent
)));
163
new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.
Silent
)));
186
new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.
Silent
)));
216
new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.
Silent
)));
253
new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.
Silent
)));
276
new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.
Silent
)));
299
new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.
Silent
)));
321
new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.
Silent
)));
1457
new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.
Silent
)));
1481
new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.
Silent
)));
1507
new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.
Silent
)));
1960
await TestInRegularAndScriptAsync(initialMarkup, expectedMarkup, options: Option(CSharpCodeStyleOptions.PreferBraces, bracesPreference, NotificationOption2.
Silent
));
1964
await 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)
1528
CodeStyleOptions2.QualifyPropertyAccess, NotificationOption2.
Silent
);
RemoveUnusedValueAssignmentTests.cs (1)
246
{ CodeStyleOptions2.UnusedParameters, UnusedParametersPreference.NonPublicMethods, NotificationOption2.
Silent
},
RemoveUnusedValueExpressionStatementTests.cs (2)
33
new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.DiscardVariable, NotificationOption2.
Silent
));
37
new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.UnusedLocalVariable, NotificationOption2.
Silent
));
UseExplicitTypeTests.cs (1)
31
private readonly CodeStyleOption2<bool> offWithSilent = new(false, NotificationOption2.
Silent
);
UseExpressionBodyForMethodsAnalyzerTests.cs (5)
52
Assert.Equal(NotificationOption2.
Silent
, option.Notification);
56
Assert.Equal(NotificationOption2.
Silent
, option.Notification);
60
Assert.Equal(NotificationOption2.
Silent
, option.Notification);
64
Assert.Equal(NotificationOption2.
Silent
, option.Notification);
68
Assert.Equal(NotificationOption2.
Silent
, option.Notification);
UseImplicitTypeTests.cs (1)
32
private static readonly CodeStyleOption2<bool> onWithSilent = new(true, NotificationOption2.
Silent
);
UseTupleSwapTests.cs (1)
68
{ CSharpCodeStyleOptions.PreferTupleSwap, false, CodeStyle.NotificationOption2.
Silent
}
UseVarTestExtensions.cs (2)
21
private static readonly CodeStyleOption2<bool> onWithSilent = new CodeStyleOption2<bool>(true, NotificationOption2.
Silent
);
22
private static readonly CodeStyleOption2<bool> offWithSilent = new CodeStyleOption2<bool>(false, NotificationOption2.
Silent
);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (3)
QualifyMemberAccessTests.vb (1)
547
CodeStyleOptions2.QualifyPropertyAccess, NotificationOption2.
Silent
)
RemoveUnusedValueExpressionStatementTests.vb (2)
24
New CodeStyleOption2(Of UnusedValuePreference)(UnusedValuePreference.DiscardVariable, NotificationOption2.
Silent
))
31
New CodeStyleOption2(Of UnusedValuePreference)(UnusedValuePreference.UnusedLocalVariable, NotificationOption2.
Silent
))