15 references to GetOption
Microsoft.CodeAnalysis.Workspaces (3)
Options\DocumentOptionSet.cs (1)
91=> GetOption(option, Language);
Recommendations\Recommender.cs (2)
65HideAdvancedMembers = options.GetOption(RecommendationOptions.HideAdvancedMembers, language), 66FilterOutOfScopeLocals = options.GetOption(RecommendationOptions.FilterOutOfScopeLocals, language),
Microsoft.CodeAnalysis.Workspaces.UnitTests (12)
Options\DocumentOptionSetTests.cs (9)
33Assert.Equal(new CodeStyleOption<bool>(internalCodeStyleOption), set.GetOption(CodeStyleOptions.QualifyEventAccess, LanguageNames.CSharp)); 36Assert.Equal(new CodeStyleOption<bool>(internalCodeStyleOption), set.GetOption(CodeStyleOptions.QualifyEventAccess, LanguageNames.CSharp)); 39Assert.Equal(new CodeStyleOption<bool>(true, NotificationOption.Error), set.GetOption(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.CSharp)); 42Assert.Equal(new CodeStyleOption<bool>(true, NotificationOption.Error), set.GetOption(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.CSharp)); 45Assert.Equal(RecommendationOptions.FilterOutOfScopeLocals.DefaultValue, set.GetOption(RecommendationOptions.FilterOutOfScopeLocals, LanguageNames.CSharp)); 58Assert.Equal(CodeStyleOptions.QualifyEventAccess.DefaultValue, set.GetOption(CodeStyleOptions.QualifyEventAccess, LanguageNames.CSharp)); 61Assert.Equal(CodeStyleOptions.QualifyEventAccess.DefaultValue, set.GetOption(CodeStyleOptions.QualifyEventAccess, LanguageNames.CSharp)); 64Assert.Equal(new CodeStyleOption<bool>(true, NotificationOption.Error), set.GetOption(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.CSharp)); 67Assert.Equal(new CodeStyleOption<bool>(true, NotificationOption.Error), set.GetOption(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.CSharp));
SolutionTests\SolutionTests.cs (2)
5411Assert.Equal(changedValue, optionSet.GetOption(option, LanguageNames.CSharp)); 5412Assert.Equal(defaultValue, optionSet.GetOption(option, LanguageNames.VisualBasic));
WorkspaceServiceTests\GlobalOptionServiceTests.cs (1)
151Assert.False(optionSet.GetOption(optionvalid, "CS"));