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

Rename

上级 e1c69e51
......@@ -86,19 +86,19 @@ protected override async Task<Document> GetChangedDocumentAsync(CancellationToke
await AddOperatorsAsync(methods, cancellationToken).ConfigureAwait(false);
}
var newType = CodeGenerator.AddMemberDeclarations(
var newTypeDeclaration = CodeGenerator.AddMemberDeclarations(
_typeDeclaration, methods, _document.Project.Solution.Workspace);
if (constructedTypeToImplement is object)
{
var generator = _document.GetRequiredLanguageService<SyntaxGenerator>();
newType = generator.AddInterfaceType(newType,
newTypeDeclaration = generator.AddInterfaceType(newTypeDeclaration,
generator.TypeExpression(constructedTypeToImplement));
}
var newDocument = await UpdateDocumentAndAddImportsAsync(
_typeDeclaration, newType, cancellationToken).ConfigureAwait(false);
_typeDeclaration, newTypeDeclaration, cancellationToken).ConfigureAwait(false);
var service = _document.GetRequiredLanguageService<IGenerateEqualsAndGetHashCodeService>();
var formattedDocument = await service.FormatDocumentAsync(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册