未验证 提交 ea87d72b 编写于 作者: A Andrew Hall 提交者: GitHub

Write a better comment :)

上级 470d5af6
......@@ -554,7 +554,9 @@ private static async Task<ImmutableArray<ReferencedSymbol>> FindReferencesAsync(
Debug.Assert(containersToAddImports.Length > 0);
// Need to import all containing namespaces of old namespace and add them to the document (if it's not global namespace)
// as well as the new namespace in case it's needed
// Include the new namespace in case there are multiple namespace declarations in
// the declaring document. They may need a using statement added to correctly keep
// references to the type inside it's new namespace
var namesToImport = GetAllNamespaceImportsForDeclaringDocument(oldNamespace, newNamespace);
var optionSet = await document.GetOptionsAsync(cancellationToken).ConfigureAwait(false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册