提交 8eab0e04 编写于 作者: J Jason Malinowski

Pass a CancellationToken when we have one

上级 0c305ddb
......@@ -23,7 +23,7 @@ internal static class InternalExtensions
if (argument.Expression.Kind() == SyntaxKind.DeclarationExpression)
{
var decl = (DeclarationExpressionSyntax)argument.Expression;
typeInfo = semanticModel.GetTypeInfo(decl.Type);
typeInfo = semanticModel.GetTypeInfo(decl.Type, cancellationToken);
return typeInfo.Type?.IsErrorType() == false ? typeInfo.Type : semanticModel.Compilation.ObjectType;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册