未验证 提交 5a069648 编写于 作者: D David Poeschl 提交者: GitHub

Use _cancellationToken

Co-Authored-By: NCyrusNajmabadi <cyrus.najmabadi@gmail.com>
上级 1115b7f8
......@@ -50,7 +50,7 @@ public override bool TryGetExplicitTypeOfLambdaParameter(SyntaxNode lambdaSyntax
var parameter = parameters[ordinalInLambda];
if (parameter.Type != null)
{
explicitLambdaParameterType = _context.SemanticModel.GetTypeInfo(parameter.Type, CancellationToken.None).Type;
explicitLambdaParameterType = _context.SemanticModel.GetTypeInfo(parameter.Type, _cancellationToken).Type;
return explicitLambdaParameterType != null;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册