34 references to VarElsewhere
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
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],
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpSimplifierOptions.cs (1)
43VarElsewhere = options.GetOption(CSharpCodeStyleOptions.VarElsewhere);
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (31)
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 },