提交 5c3226f8 编写于 作者: C Cyrus Najmabadi

Add comment.

上级 bd8cc601
......@@ -59,6 +59,8 @@ protected override void InitializeWorker(AnalysisContext context)
var cancellationToken = context.CancellationToken;
var invocation = (IInvocationOperation)context.Operation;
// Validate we're on a piece of syntax we expect. While not necessary for analysis, we
// want to make sure we're on something the fixer will know how to actually fix.
var invocationSyntax = invocation.Syntax as InvocationExpressionSyntax;
if (invocationSyntax is null ||
invocationSyntax.ArgumentList is null)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册