提交 8c2ec2be 编写于 作者: C Cyrus Najmabadi

Add docs

上级 93b8659c
......@@ -26,6 +26,9 @@ public static void Create(INamedTypeSymbol symbol, SymbolKeyWriter visitor)
visitor.WriteStringArray(GetContainingNamespaceNames(parentNamespace));
break;
default:
// writing out `null` here is technically unnecessary. However, it makes it easier to
// understand the encoded form when the number of values for an encoded symbol is always the
// same. So we have all three cases write out two values to facilitate that.
visitor.WriteInteger(2);
visitor.WriteSymbolKey(null);
break;
......@@ -101,7 +104,7 @@ private static SymbolKeyResolution ResolveContainer(SymbolKeyReader reader)
return new SymbolKeyResolution(currentNamespace);
case 2:
return default;
return reader.ReadSymbolKey();
default:
throw ExceptionUtilities.UnexpectedValue(type);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册