57 references to VarElsewhere
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (5)
CodeActions\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (2)
57{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Suggestion }, 65{ CSharpCodeStyleOptions.VarElsewhere, false, NotificationOption2.Suggestion },
Completion\ArgumentProviders\OutVariableArgumentProviderTests.cs (3)
23{ CSharpCodeStyleOptions.VarElsewhere, false }, 30{ CSharpCodeStyleOptions.VarElsewhere, false }, 38{ CSharpCodeStyleOptions.VarElsewhere, true },
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\CodeStyle\CSharpAnalyzerOptionsProvider.cs (1)
25public CodeStyleOption2<bool> VarElsewhere => GetOption(CSharpCodeStyleOptions.VarElsewhere);
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpTypeStyleDiagnosticAnalyzerBase.cs (1)
21[CSharpCodeStyleOptions.VarForBuiltInTypes, CSharpCodeStyleOptions.VarWhenTypeIsApparent, CSharpCodeStyleOptions.VarElsewhere],
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (45)
ConvertForEachToFor\ConvertForEachToForTests.cs (1)
32{ CSharpCodeStyleOptions.VarElsewhere, onWithSilent },
ConvertForToForEach\ConvertForToForEachTests.cs (1)
30{ CSharpCodeStyleOptions.VarElsewhere, onWithSilent },
ConvertTupleToStruct\ConvertTupleToStructTests.cs (1)
35{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Suggestion },
ExtractMethod\ExtractMethodCodeRefactoringTests.cs (3)
59{ CSharpCodeStyleOptions.VarElsewhere, onWithInfo }, 67{ CSharpCodeStyleOptions.VarElsewhere, offWithInfo }, 75{ CSharpCodeStyleOptions.VarElsewhere, offWithInfo },
GenerateVariable\GenerateVariableTests.cs (1)
43{ CSharpCodeStyleOptions.VarElsewhere, onWithInfo },
IntroduceVariable\IntroduceLocalForExpressionTests.cs (5)
27{ CSharpCodeStyleOptions.VarElsewhere, onWithInfo }, 35{ CSharpCodeStyleOptions.VarElsewhere, offWithInfo }, 43{ CSharpCodeStyleOptions.VarElsewhere, offWithInfo }, 51{ CSharpCodeStyleOptions.VarElsewhere, offWithInfo }, 367{ CSharpCodeStyleOptions.VarElsewhere, CodeStyleOption2.TrueWithSuggestionEnforcement },
IntroduceVariable\IntroduceVariableTests.cs (1)
37{ CSharpCodeStyleOptions.VarElsewhere, onWithInfo },
SimplifyTypeNames\SimplifyTypeNamesTests.cs (1)
6914{ CSharpCodeStyleOptions.VarElsewhere, onWithInfo },
src\Analyzers\CSharp\Tests\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionTests.cs (7)
1288{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1352{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1416{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1488{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1552{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1616{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent }, 1680{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Silent },
src\Analyzers\CSharp\Tests\InlineDeclaration\CSharpInlineDeclarationTests.cs (1)
36{ CSharpCodeStyleOptions.VarElsewhere, s_offWithInfo },
src\Analyzers\CSharp\Tests\UseConditionalExpression\UseConditionalExpressionForAssignmentTests.cs (2)
59{ CSharpCodeStyleOptions.VarElsewhere, CodeStyleOption2.TrueWithSilentEnforcement }, 812""", options: new OptionsCollection(LanguageNames.CSharp) { { CSharpCodeStyleOptions.VarElsewhere, CodeStyleOption2.TrueWithSilentEnforcement } });
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseExplicitTypeTests.cs (5)
37{ CSharpCodeStyleOptions.VarElsewhere, offWithInfo }, 45{ CSharpCodeStyleOptions.VarElsewhere, offWithInfo }, 53{ CSharpCodeStyleOptions.VarElsewhere, onWithInfo }, 61{ CSharpCodeStyleOptions.VarElsewhere, offWithWarning }, 69{ CSharpCodeStyleOptions.VarElsewhere, offWithSilent },
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseImplicitTypeTests.cs (6)
38{ CSharpCodeStyleOptions.VarElsewhere, onWithInfo }, 46{ CSharpCodeStyleOptions.VarElsewhere, offWithInfo }, 54{ CSharpCodeStyleOptions.VarElsewhere, offWithInfo }, 62{ CSharpCodeStyleOptions.VarElsewhere, onWithInfo }, 70{ CSharpCodeStyleOptions.VarElsewhere, onWithWarning }, 78{ CSharpCodeStyleOptions.VarElsewhere, onWithSilent },
src\Analyzers\CSharp\Tests\UseVarTestExtensions.cs (10)
30{ CSharpCodeStyleOptions.VarElsewhere, offWithError }, 38{ CSharpCodeStyleOptions.VarElsewhere, onWithError }, 46{ CSharpCodeStyleOptions.VarElsewhere, offWithWarning }, 54{ CSharpCodeStyleOptions.VarElsewhere, onWithWarning }, 62{ CSharpCodeStyleOptions.VarElsewhere, offWithInfo }, 70{ CSharpCodeStyleOptions.VarElsewhere, onWithInfo }, 78{ CSharpCodeStyleOptions.VarElsewhere, offWithSilent }, 86{ CSharpCodeStyleOptions.VarElsewhere, onWithSilent }, 94{ CSharpCodeStyleOptions.VarElsewhere, offWithNone }, 102{ CSharpCodeStyleOptions.VarElsewhere, onWithNone },
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpSimplifierOptions.cs (1)
43VarElsewhere = options.GetOption(CSharpCodeStyleOptions.VarElsewhere);
Microsoft.VisualStudio.LanguageServices.CSharp (4)
EditorConfigSettings\DataProvider\CodeStyle\CSharpCodeStyleSettingsProvider.cs (1)
68yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.VarElsewhere, CSharpVSResources.Elsewhere, options, updater, trueValueDescription, falseValueDescription);
Options\AutomationObject\AutomationObject.Style.cs (2)
110get { return GetXmlOption(CSharpCodeStyleOptions.VarElsewhere); } 111set { SetXmlOption(CSharpCodeStyleOptions.VarElsewhere, value); }
Options\Formatting\StyleViewModel.cs (1)
2263CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.VarElsewhere, CSharpVSResources.Elsewhere, s_varWherePossiblePreviewTrue, s_varWherePossiblePreviewFalse, this, optionStore, varGroupTitle, typeStylePreferences));