22 references to None
Microsoft.CodeAnalysis.CodeStyle (4)
CodeStyleHelpers.cs (3)
53
=> TryGetCodeStyleValueAndOptionalNotification(arg, defaultNotification: NotificationOption2.
None
, out value, out _);
99
notification = NotificationOption2.
None
;
154
new(default, NotificationOption2.
None
);
ReportDiagnosticExtensions.cs (1)
101
return NotificationOption2.
None
;
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
ParenthesesOptionsProvider.cs (1)
24
new CodeStyleOption2<ParenthesesPreference>(ParenthesesPreference.AlwaysForClarity, NotificationOption2.
None
);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
MisplacedUsingDirectivesCodeFixProvider.cs (1)
375
var preferPreservation = styleOption.Notification == NotificationOption2.
None
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (14)
MisplacedUsingDirectivesTests.cs (2)
33
new(AddImportPlacement.OutsideNamespace, NotificationOption2.
None
);
36
new(AddImportPlacement.InsideNamespace, NotificationOption2.
None
);
RemoveUnnecessaryLambdaExpressionTests.cs (1)
113
Options = { { CSharpCodeStyleOptions.PreferMethodGroupConversion, new CodeStyleOption2<bool>(false, NotificationOption2.
None
) } }
RemoveUnusedParametersTests.cs (1)
117
new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.DiscardVariable, NotificationOption2.
None
));
RemoveUnusedValueAssignmentTests.cs (4)
36
new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.DiscardVariable, NotificationOption2.
None
));
70
{ CSharpCodeStyleOptions.UnusedValueAssignment, UnusedValuePreference.DiscardVariable, NotificationOption2.
None
},
96
{ CSharpCodeStyleOptions.UnusedValueAssignment, UnusedValuePreference.DiscardVariable, NotificationOption2.
None
},
212
{ CodeStyleOptions2.UnusedParameters, UnusedParametersPreference.NonPublicMethods, NotificationOption2.
None
},
RemoveUnusedValueExpressionStatementTests.cs (1)
29
new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.DiscardVariable, NotificationOption2.
None
));
UseExpressionBodyForAccessorsAnalyzerTests.cs (3)
581
{ CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, ExpressionBodyPreference.WhenOnSingleLine, NotificationOption2.
None
},
582
{ CSharpCodeStyleOptions.PreferExpressionBodiedProperties, ExpressionBodyPreference.WhenOnSingleLine, NotificationOption2.
None
},
583
{ CSharpCodeStyleOptions.PreferExpressionBodiedIndexers, ExpressionBodyPreference.WhenOnSingleLine, NotificationOption2.
None
},
UseVarTestExtensions.cs (2)
19
private static readonly CodeStyleOption2<bool> onWithNone = new CodeStyleOption2<bool>(true, NotificationOption2.
None
);
20
private static readonly CodeStyleOption2<bool> offWithNone = new CodeStyleOption2<bool>(false, NotificationOption2.
None
);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (2)
RemoveUnusedValueAssignmentTests.vb (1)
17
New CodeStyleOption2(Of UnusedValuePreference)(UnusedValuePreference.UnusedLocalVariable, NotificationOption2.
None
))
RemoveUnusedValueExpressionStatementTests.vb (1)
17
New CodeStyleOption2(Of UnusedValuePreference)(UnusedValuePreference.UnusedLocalVariable, NotificationOption2.
None
))