Example #1
0
 /// <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));
 }
Example #2
0
 public static T GetOption <T>(this AnalyzerConfigOptions analyzerConfigOptions, Options.PerLanguageOption <T> option)
 => GetOptionWithAssertOnFailure <T>(analyzerConfigOptions, option);
Example #3
0
 /// <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);
Example #4
0
 /// <summary>
 /// Gets the value of the option.
 /// </summary>
 public T GetOption <T>(PerLanguageOption <T> option, string language)
 {
     return((T)GetOption(new OptionKey(option, language)));
 }
Example #5
0
 public static T GetOption <T>(PerLanguageOption <T> option, string?language, Func <OptionKey, object?> getOption)
 => GetOption <T>(new OptionKey(option, language), getOption);
Example #6
0
 public T GetOption <T>(PerLanguageOption <T> option)
 => _backingOptionSet.GetOption(option, _language);
Example #7
0
 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);
Example #9
0
 public OptionSet WithChangedOption <T>(PerLanguageOption <T> option, string?language, T value)
 => WithChangedOption(new OptionKey(option, language), value);
Example #10
0
 public T GetOption <T>(PerLanguageOption <T> option)
 {
     return(_backingOptionSet.GetOption(option, _language));
 }
Example #11
0
 public T GetOption <T>(PerLanguageOption <T> option, string languageName) => _globalOptionService.GetOption(option, languageName);
Example #12
0
 /// <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);
Example #13
0
 /// <summary>
 /// Gets the value of the option.
 /// </summary>
 public abstract T GetOption <T>(PerLanguageOption <T> option, string language);