提交 a799aee9 编写于 作者: C Cyrus Najmabadi

Reorder

上级 80a02e9e
......@@ -556,14 +556,14 @@ public Location ReadLocation(out string failureReason)
else if (kind == LocationKind.MetadataFile)
{
var assemblyResolution = ReadSymbolKey(out var assemblyFailureReason);
var moduleName = ReadString();
if (assemblyFailureReason != null)
{
failureReason = $"{nameof(ReadLocation)} {nameof(assemblyResolution)} failed -> " + assemblyFailureReason;
return Location.None;
}
var moduleName = ReadString();
// We may be resolving in a compilation where we don't have a module
// with this name. In that case, just map this location to none.
if (assemblyResolution.GetAnySymbol() is IAssemblySymbol assembly)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册