提交 94b3a01f 编写于 作者: C CyrusNajmabadi

remove async/await.

上级 ed21b1a6
......@@ -55,17 +55,15 @@ public override int GetHashCode()
protected virtual Solution GetUpdatedSolution(Document newDocument)
=> newDocument.Project.Solution;
private async Task<Document> UpdateDocumentAsync(
private Task<Document> UpdateDocumentAsync(
Document document, SyntaxNode contextNode, bool placeSystemNamespaceFirst, CancellationToken cancellationToken)
{
ReplaceNameNode(ref contextNode, ref document, cancellationToken);
// Defer to the language to add the actual import/using.
var newDocument = await provider.AddImportAsync(contextNode,
return provider.AddImportAsync(contextNode,
this.SymbolResult.Symbol, document,
placeSystemNamespaceFirst, cancellationToken).ConfigureAwait(false);
return newDocument;
placeSystemNamespaceFirst, cancellationToken);
}
public override async Task<CodeAction> CreateCodeActionAsync(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册