提交 63235374 编写于 作者: T Tomas Matousek

Allow ResolutionScope to be nil


Commit migrated from https://github.com/dotnet/corefx/commit/bc3775f1dccc80a11605b794296aa54037420713
上级 3665bd9b
...@@ -375,7 +375,7 @@ private static void SetTableCapacity<T>(List<T> table, int rowCount) ...@@ -375,7 +375,7 @@ private static void SetTableCapacity<T>(List<T> table, int rowCount)
/// </summary> /// </summary>
/// <param name="resolutionScope"> /// <param name="resolutionScope">
/// The entity declaring the target type: /// The entity declaring the target type:
/// <see cref="ModuleDefinitionHandle"/>, <see cref="ModuleReferenceHandle"/>, <see cref="AssemblyReferenceHandle"/> or <see cref="TypeReferenceHandle"/>. /// <see cref="ModuleDefinitionHandle"/>, <see cref="ModuleReferenceHandle"/>, <see cref="AssemblyReferenceHandle"/>, <see cref="TypeReferenceHandle"/>, or nil.
/// </param> /// </param>
/// <param name="namespace">Namespace.</param> /// <param name="namespace">Namespace.</param>
/// <param name="name">Type name.</param> /// <param name="name">Type name.</param>
...@@ -390,7 +390,7 @@ private static void SetTableCapacity<T>(List<T> table, int rowCount) ...@@ -390,7 +390,7 @@ private static void SetTableCapacity<T>(List<T> table, int rowCount)
_typeRefTable.Add(new TypeRefRow _typeRefTable.Add(new TypeRefRow
{ {
ResolutionScope = CodedIndex.ResolutionScope(resolutionScope), ResolutionScope = resolutionScope.IsNil ? 0 : CodedIndex.ResolutionScope(resolutionScope),
Name = name, Name = name,
Namespace = @namespace Namespace = @namespace
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册