58 references to VarElsewhere
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (46)
CodeActions\IntroduceVariable\IntroduceVariableTests.cs (1)
36{ CSharpCodeStyleOptions.VarElsewhere, onWithInfo },
Completion\ArgumentProviders\OutVariableArgumentProviderTests.cs (3)
23{ CSharpCodeStyleOptions.VarElsewhere, false }, 30{ CSharpCodeStyleOptions.VarElsewhere, false }, 38{ CSharpCodeStyleOptions.VarElsewhere, true },
ConvertForEachToFor\ConvertForEachToForTests.cs (1)
33{ CSharpCodeStyleOptions.VarElsewhere, onWithSilent },
ConvertForToForEach\ConvertForToForEachTests.cs (1)
30{ CSharpCodeStyleOptions.VarElsewhere, onWithSilent },
ConvertSwitchStatementToExpressionTests.cs (7)
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 },
ConvertTupleToStruct\ConvertTupleToStructTests.cs (1)
34{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Suggestion },
GenerateFromMembers\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (2)
56{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Suggestion }, 64{ CSharpCodeStyleOptions.VarElsewhere, false, NotificationOption2.Suggestion },
GenerateVariable\GenerateVariableTests.cs (1)
47{ CSharpCodeStyleOptions.VarElsewhere, onWithInfo },
IntroduceVariable\IntroduceLocalForExpressionTests.cs (5)
27{ CSharpCodeStyleOptions.VarElsewhere, onWithInfo }, 35{ CSharpCodeStyleOptions.VarElsewhere, offWithInfo }, 43{ CSharpCodeStyleOptions.VarElsewhere, offWithInfo }, 51{ CSharpCodeStyleOptions.VarElsewhere, offWithInfo }, 390{ CSharpCodeStyleOptions.VarElsewhere, CodeStyleOption2.TrueWithSuggestionEnforcement },
SimplifyTypeNames\SimplifyTypeNamesTests.cs (1)
7134{ CSharpCodeStyleOptions.VarElsewhere, onWithInfo },
UseConditionalExpressionForAssignmentTests.cs (2)
64{ CSharpCodeStyleOptions.VarElsewhere, CodeStyleOption2.TrueWithSilentEnforcement }, 868""", options: new OptionsCollection(LanguageNames.CSharp) { { CSharpCodeStyleOptions.VarElsewhere, CodeStyleOption2.TrueWithSilentEnforcement } });
UseExplicitTypeTests.cs (5)
41{ CSharpCodeStyleOptions.VarElsewhere, offWithInfo }, 49{ CSharpCodeStyleOptions.VarElsewhere, offWithInfo }, 57{ CSharpCodeStyleOptions.VarElsewhere, onWithInfo }, 65{ CSharpCodeStyleOptions.VarElsewhere, offWithWarning }, 73{ CSharpCodeStyleOptions.VarElsewhere, offWithSilent },
UseImplicitTypeTests.cs (6)
42{ CSharpCodeStyleOptions.VarElsewhere, onWithInfo }, 50{ CSharpCodeStyleOptions.VarElsewhere, offWithInfo }, 58{ CSharpCodeStyleOptions.VarElsewhere, offWithInfo }, 66{ CSharpCodeStyleOptions.VarElsewhere, onWithInfo }, 74{ CSharpCodeStyleOptions.VarElsewhere, onWithWarning }, 82{ CSharpCodeStyleOptions.VarElsewhere, onWithSilent },
UseVarTestExtensions.cs (10)
33{ CSharpCodeStyleOptions.VarElsewhere, offWithError }, 41{ CSharpCodeStyleOptions.VarElsewhere, onWithError }, 49{ CSharpCodeStyleOptions.VarElsewhere, offWithWarning }, 57{ CSharpCodeStyleOptions.VarElsewhere, onWithWarning }, 65{ CSharpCodeStyleOptions.VarElsewhere, offWithInfo }, 73{ CSharpCodeStyleOptions.VarElsewhere, onWithInfo }, 81{ CSharpCodeStyleOptions.VarElsewhere, offWithSilent }, 89{ CSharpCodeStyleOptions.VarElsewhere, onWithSilent }, 97{ CSharpCodeStyleOptions.VarElsewhere, offWithNone }, 105{ CSharpCodeStyleOptions.VarElsewhere, onWithNone },
Microsoft.CodeAnalysis.CSharp.Features (2)
CSharpAnalyzerOptionsProvider.cs (1)
48public CodeStyleOption2<bool> VarElsewhere => GetOption(CSharpCodeStyleOptions.VarElsewhere, FallbackSimplifierOptions.VarElsewhere);
CSharpTypeStyleDiagnosticAnalyzerBase.cs (1)
28ImmutableHashSet.Create<IOption2>(CSharpCodeStyleOptions.VarForBuiltInTypes, CSharpCodeStyleOptions.VarWhenTypeIsApparent, CSharpCodeStyleOptions.VarElsewhere),
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CSharpCodeFixOptionsProvider.cs (1)
58public CodeStyleOption2<bool> VarElsewhere => GetOption(CSharpCodeStyleOptions.VarElsewhere, FallbackSimplifierOptions.VarElsewhere);
CSharpSimplifierOptions.cs (1)
41VarElsewhere = options.GetOption(CSharpCodeStyleOptions.VarElsewhere, fallbackOptions.VarElsewhere);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (4)
Simplification\TypeNameSimplifierTest.vb (4)
1466{CSharpCodeStyleOptions.VarElsewhere, CodeStyleOption2.TrueWithSilentEnforcement} 1503{CSharpCodeStyleOptions.VarElsewhere, CodeStyleOption2.TrueWithSilentEnforcement} 1542{CSharpCodeStyleOptions.VarElsewhere, CodeStyleOption2.TrueWithSilentEnforcement} 1611{CSharpCodeStyleOptions.VarElsewhere, CodeStyleOption2.TrueWithSilentEnforcement}
Microsoft.VisualStudio.LanguageServices.CSharp (4)
EditorConfigSettings\DataProvider\CodeStyle\CSharpCodeStyleSettingsProvider.cs (1)
67yield 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)
2231CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.VarElsewhere, CSharpVSResources.Elsewhere, s_varWherePossiblePreviewTrue, s_varWherePossiblePreviewFalse, this, optionStore, varGroupTitle, typeStylePreferences));