8 references to UnusedLocalVariable
Microsoft.CodeAnalysis.CodeStyle (8)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (4)
156
AddEntries(UnusedValuePreference.
UnusedLocalVariable
);
236
preferenceOpt = UnusedValuePreference.
UnusedLocalVariable
;
305
case nameof(UnusedValuePreference.
UnusedLocalVariable
):
306
preference = UnusedValuePreference.
UnusedLocalVariable
;
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
620
_options.UnusedValueAssignmentPreference == UnusedValuePreference.
UnusedLocalVariable
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
161
KeyValuePairUtil.Create("unused_local_variable", UnusedValuePreference.
UnusedLocalVariable
),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\VisualBasic\VisualBasicCodeStyleOptions.cs (2)
48
defaultValue: new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.
UnusedLocalVariable
, NotificationOption2.Silent),
54
defaultValue: new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.
UnusedLocalVariable
, NotificationOption2.Suggestion),