/// <summary> /// Creates a new <see cref="OptionSet" /> that contains the changed value. /// </summary> public OptionSet WithChangedOption <T>(PerLanguageOption <T> option, string language, T value) { return(WithChangedOption(new OptionKey(option, language), value)); }
public static T GetOption <T>(this AnalyzerConfigOptions analyzerConfigOptions, Options.PerLanguageOption <T> option) => GetOptionWithAssertOnFailure <T>(analyzerConfigOptions, option);
/// <summary> /// Creates a new <see cref="DocumentOptionSet" /> that contains the changed value. /// </summary> public DocumentOptionSet WithChangedOption <T>(PerLanguageOption <T> option, T value) => (DocumentOptionSet)WithChangedOption(option, _language, value);
/// <summary> /// Gets the value of the option. /// </summary> public T GetOption <T>(PerLanguageOption <T> option, string language) { return((T)GetOption(new OptionKey(option, language))); }
public static T GetOption <T>(PerLanguageOption <T> option, string?language, Func <OptionKey, object?> getOption) => GetOption <T>(new OptionKey(option, language), getOption);
public T GetOption <T>(PerLanguageOption <T> option) => _backingOptionSet.GetOption(option, _language);
public T GetOption <T>(PerLanguageOption <T> option, string?language) => OptionsHelpers.GetOption(option, language, GetOptionCore);
[return : MaybeNull] public T GetOption <T>(PerLanguageOption <T> option, string?languageName) => _globalOptionService.GetOption(option, languageName);
public OptionSet WithChangedOption <T>(PerLanguageOption <T> option, string?language, T value) => WithChangedOption(new OptionKey(option, language), value);
public T GetOption <T>(PerLanguageOption <T> option) { return(_backingOptionSet.GetOption(option, _language)); }
public T GetOption <T>(PerLanguageOption <T> option, string languageName) => _globalOptionService.GetOption(option, languageName);
/// <summary> /// Creates a new <see cref="OptionSet" /> that contains the changed value. /// </summary> public abstract OptionSet WithChangedOption <T>(PerLanguageOption <T> option, string language, T value);
/// <summary> /// Gets the value of the option. /// </summary> public abstract T GetOption <T>(PerLanguageOption <T> option, string language);