提交 c6056846 编写于 作者: C Cyrus Najmabadi

Use compound assignment

上级 bfbec048
...@@ -103,9 +103,9 @@ internal static IFormattingResult GetFormattingResult(SyntaxNode node, ISyntaxFo ...@@ -103,9 +103,9 @@ internal static IFormattingResult GetFormattingResult(SyntaxNode node, ISyntaxFo
return null; return null;
} }
options = options ?? CompilerAnalyzerConfigOptions.Empty; options ??= CompilerAnalyzerConfigOptions.Empty;
rules = rules ?? GetDefaultFormattingRules(syntaxFormattingService); rules ??= GetDefaultFormattingRules(syntaxFormattingService);
spans = spans ?? SpecializedCollections.SingletonEnumerable(node.FullSpan); spans ??= SpecializedCollections.SingletonEnumerable(node.FullSpan);
return syntaxFormattingService.Format(node, spans, options, rules, cancellationToken); return syntaxFormattingService.Format(node, spans, options, rules, cancellationToken);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册