29 references to VarWhenTypeIsApparent
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\CodeStyle\CSharpAnalyzerOptionsProvider.cs (1)
24public CodeStyleOption2<bool> VarWhenTypeIsApparent => GetOption(CSharpCodeStyleOptions.VarWhenTypeIsApparent);
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpTypeStyleDiagnosticAnalyzerBase.cs (1)
21[CSharpCodeStyleOptions.VarForBuiltInTypes, CSharpCodeStyleOptions.VarWhenTypeIsApparent, CSharpCodeStyleOptions.VarElsewhere],
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpSimplifierOptions.cs (1)
42VarWhenTypeIsApparent = options.GetOption(CSharpCodeStyleOptions.VarWhenTypeIsApparent);
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (26)
src\Analyzers\CSharp\Tests\InlineDeclaration\CSharpInlineDeclarationTests.cs (1)
37{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, s_offWithInfo },
src\Analyzers\CSharp\Tests\UseConditionalExpression\UseConditionalExpressionForAssignmentTests.cs (2)
58{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSilentEnforcement }, 782""", options: new OptionsCollection(LanguageNames.CSharp) { { CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSilentEnforcement } });
src\Analyzers\CSharp\Tests\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationTests.cs (2)
221{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.FalseWithSuggestionEnforcement }, 241{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSuggestionEnforcement },
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseExplicitTypeTests.cs (5)
38{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithInfo }, 46{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 54{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 62{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithError }, 70{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithSilent },
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseImplicitTypeTests.cs (6)
39{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 47{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 55{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 64{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 71{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithError }, 79{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithSilent },
src\Analyzers\CSharp\Tests\UseVarTestExtensions.cs (10)
31{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithError }, 39{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithError }, 47{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithWarning }, 55{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithWarning }, 63{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithInfo }, 71{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 79{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithSilent }, 87{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithSilent }, 95{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithNone }, 103{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithNone },