提交 6340cd80 编写于 作者: T Tomáš Matoušek

Merge pull request #2810 from tmat/PdbExternAliases

Adds an assert to clarify assumptions of GetAssemblyReferenceAlias
......@@ -624,6 +624,9 @@ private string SerializeVisualBasicImportTypeReference(ITypeReference typeRefere
private string GetAssemblyReferenceAlias(IAssemblyReference assembly, HashSet<string> declaredExternAliases)
{
// no extern alias defined in scope at all -> error in compiler
Debug.Assert(declaredExternAliases != null);
var allAliases = _metadataWriter.Context.Module.GetAssemblyReferenceAliases(_metadataWriter.Context);
foreach (AssemblyReferenceAlias alias in allAliases)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册