/// <summary> /// Gets the formatting rules that would be applied if left unspecified. /// </summary> internal static IEnumerable <AbstractFormattingRule> GetDefaultFormattingRules(ISyntaxFormattingService syntaxFormattingService) { if (syntaxFormattingService != null) { return(syntaxFormattingService.GetDefaultFormattingRules()); } else { return(SpecializedCollections.EmptyEnumerable <AbstractFormattingRule>()); } }
/// <summary> /// Gets the formatting rules that would be applied if left unspecified. /// </summary> internal static IEnumerable <AbstractFormattingRule> GetDefaultFormattingRules(ISyntaxFormattingService syntaxFormattingService) => syntaxFormattingService.GetDefaultFormattingRules();