55 references to VarWhenTypeIsApparent
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (5)
CodeActions\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (2)
58{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, true, NotificationOption2.Suggestion }, 66{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, false, NotificationOption2.Suggestion },
Completion\ArgumentProviders\OutVariableArgumentProviderTests.cs (3)
22{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, false }, 29{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, false }, 37{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, true },
Microsoft.CodeAnalysis.CSharp.Features (2)
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],
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (42)
ConvertForEachToFor\ConvertForEachToForTests.cs (1)
33{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithSilent },
ConvertForToForEach\ConvertForToForEachTests.cs (1)
31{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithSilent },
ConvertTupleToStruct\ConvertTupleToStructTests.cs (1)
36{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, true, NotificationOption2.Suggestion },
ExtractMethod\ExtractLocalFunctionTests.cs (1)
1604""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSuggestionEnforcement)));
ExtractMethod\ExtractMethodCodeRefactoringTests.cs (4)
60{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 68{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithInfo }, 76{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithInfo }, 1894""", new TestParameters(options: Option(CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSuggestionEnforcement)));
GenerateVariable\GenerateVariableTests.cs (1)
44{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo },
IntroduceVariable\IntroduceLocalForExpressionTests.cs (5)
28{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 36{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithInfo }, 44{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 52{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 368{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSuggestionEnforcement },
IntroduceVariable\IntroduceVariableTests.cs (1)
38{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo },
SimplifyTypeNames\SimplifyTypeNamesTests.cs (1)
6915{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo },
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 },
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpSimplifierOptions.cs (1)
42VarWhenTypeIsApparent = options.GetOption(CSharpCodeStyleOptions.VarWhenTypeIsApparent);
Microsoft.VisualStudio.LanguageServices.CSharp (4)
EditorConfigSettings\DataProvider\CodeStyle\CSharpCodeStyleSettingsProvider.cs (1)
67yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.VarWhenTypeIsApparent, CSharpVSResources.When_variable_type_is_apparent, options, updater, trueValueDescription, falseValueDescription);
Options\AutomationObject\AutomationObject.Style.cs (2)
116get { return GetXmlOption(CSharpCodeStyleOptions.VarWhenTypeIsApparent); } 117set { SetXmlOption(CSharpCodeStyleOptions.VarWhenTypeIsApparent, value); }
Options\Formatting\StyleViewModel.cs (1)
2262CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.VarWhenTypeIsApparent, CSharpVSResources.When_variable_type_is_apparent, s_varWhereApparentPreviewTrue, s_varWhereApparentPreviewFalse, this, optionStore, varGroupTitle, typeStylePreferences));
Roslyn.VisualStudio.Next.UnitTests (1)
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (1)
161workspace.GlobalOptions.SetGlobalOption(CSharpCodeStyleOptions.VarWhenTypeIsApparent, new CodeStyleOption<bool>(false, NotificationOption.Suggestion));