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

Use compound assignment

上级 bfbec048
......@@ -103,9 +103,9 @@ internal static IFormattingResult GetFormattingResult(SyntaxNode node, ISyntaxFo
return null;
}
options = options ?? CompilerAnalyzerConfigOptions.Empty;
rules = rules ?? GetDefaultFormattingRules(syntaxFormattingService);
spans = spans ?? SpecializedCollections.SingletonEnumerable(node.FullSpan);
options ??= CompilerAnalyzerConfigOptions.Empty;
rules ??= GetDefaultFormattingRules(syntaxFormattingService);
spans ??= SpecializedCollections.SingletonEnumerable(node.FullSpan);
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.
先完成此消息的编辑!
想要评论请 注册