Пример #1
0
 /// <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>());
     }
 }
Пример #2
0
 /// <summary>
 /// Gets the formatting rules that would be applied if left unspecified.
 /// </summary>
 internal static IEnumerable <AbstractFormattingRule> GetDefaultFormattingRules(ISyntaxFormattingService syntaxFormattingService)
 => syntaxFormattingService.GetDefaultFormattingRules();