55 references to VarWhenTypeIsApparent
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (43)
CodeActions\ExtractMethod\ExtractLocalFunctionTests.cs (1)
1693""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSuggestionEnforcement)));
CodeActions\ExtractMethod\ExtractMethodTests.cs (1)
1926""", new TestParameters(options: Option(CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSuggestionEnforcement)));
CodeActions\IntroduceVariable\IntroduceVariableTests.cs (1)
37{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo },
Completion\ArgumentProviders\OutVariableArgumentProviderTests.cs (3)
22{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, false }, 29{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, false }, 37{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, true },
ConvertForEachToFor\ConvertForEachToForTests.cs (1)
34{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithSilent },
ConvertForToForEach\ConvertForToForEachTests.cs (1)
31{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithSilent },
ConvertTupleToStruct\ConvertTupleToStructTests.cs (1)
35{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, true, NotificationOption2.Suggestion },
CSharpUseImplicitObjectCreationTests.cs (2)
243{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.FalseWithSuggestionEnforcement }, 265{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSuggestionEnforcement },
GenerateFromMembers\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (2)
57{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, true, NotificationOption2.Suggestion }, 65{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, false, NotificationOption2.Suggestion },
GenerateVariable\GenerateVariableTests.cs (1)
48{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo },
IntroduceVariable\IntroduceLocalForExpressionTests.cs (5)
28{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 36{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithInfo }, 44{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 52{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 391{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSuggestionEnforcement },
SimplifyTypeNames\SimplifyTypeNamesTests.cs (1)
7135{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo },
UseConditionalExpressionForAssignmentTests.cs (2)
63{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSilentEnforcement }, 836""", options: new OptionsCollection(LanguageNames.CSharp) { { CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSilentEnforcement } });
UseExplicitTypeTests.cs (5)
42{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithInfo }, 50{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 58{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 66{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithError }, 74{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithSilent },
UseImplicitTypeTests.cs (6)
43{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 51{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 59{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 68{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 75{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithError }, 83{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithSilent },
UseVarTestExtensions.cs (10)
34{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithError }, 42{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithError }, 50{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithWarning }, 58{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithWarning }, 66{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithInfo }, 74{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithInfo }, 82{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithSilent }, 90{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithSilent }, 98{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithNone }, 106{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithNone },
Microsoft.CodeAnalysis.CSharp.Features (2)
CSharpAnalyzerOptionsProvider.cs (1)
47public CodeStyleOption2<bool> VarWhenTypeIsApparent => GetOption(CSharpCodeStyleOptions.VarWhenTypeIsApparent, FallbackSimplifierOptions.VarWhenTypeIsApparent);
CSharpTypeStyleDiagnosticAnalyzerBase.cs (1)
28ImmutableHashSet.Create<IOption2>(CSharpCodeStyleOptions.VarForBuiltInTypes, CSharpCodeStyleOptions.VarWhenTypeIsApparent, CSharpCodeStyleOptions.VarElsewhere),
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CSharpSimplifierOptions.cs (1)
40VarWhenTypeIsApparent = options.GetOption(CSharpCodeStyleOptions.VarWhenTypeIsApparent, fallbackOptions.VarWhenTypeIsApparent);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (4)
Simplification\TypeNameSimplifierTest.vb (4)
1465{CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSilentEnforcement}, 1502{CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSilentEnforcement}, 1541{CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSilentEnforcement}, 1610{CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSilentEnforcement},
Microsoft.VisualStudio.LanguageServices.CSharp (4)
EditorConfigSettings\DataProvider\CodeStyle\CSharpCodeStyleSettingsProvider.cs (1)
66yield 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)
2230CodeStyleItems.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)
184workspace.GlobalOptions.SetGlobalOption(CSharpCodeStyleOptions.VarWhenTypeIsApparent, new CodeStyleOption<bool>(false, NotificationOption.Suggestion));