34 references to VarElsewhere
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
CSharpAnalyzerOptionsProvider.cs (1)
48public CodeStyleOption2<bool> VarElsewhere => GetOption(CSharpCodeStyleOptions.VarElsewhere, FallbackSimplifierOptions.VarElsewhere);
CSharpSimplifierOptions.cs (1)
41VarElsewhere = options.GetOption(CSharpCodeStyleOptions.VarElsewhere, fallbackOptions.VarElsewhere);
CSharpTypeStyleDiagnosticAnalyzerBase.cs (1)
28ImmutableHashSet.Create<IOption2>(CSharpCodeStyleOptions.VarForBuiltInTypes, CSharpCodeStyleOptions.VarWhenTypeIsApparent, CSharpCodeStyleOptions.VarElsewhere),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
CSharpCodeFixOptionsProvider.cs (1)
58public CodeStyleOption2<bool> VarElsewhere => GetOption(CSharpCodeStyleOptions.VarElsewhere, FallbackSimplifierOptions.VarElsewhere);
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (30)
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 },
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 },