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