提交 91e46d1f 编写于 作者: C CyrusNajmabadi

Use patterns in more places.

上级 16a3753a
...@@ -279,17 +279,17 @@ private void BuildMemberOf(ISymbol containingSymbol, _VSOBJDESCOPTIONS options) ...@@ -279,17 +279,17 @@ private void BuildMemberOf(ISymbol containingSymbol, _VSOBJDESCOPTIONS options)
AddIndent(); AddIndent();
AddText(left); AddText(left);
if (containingSymbol is IAssemblySymbol) if (containingSymbol is IAssemblySymbol assemblySymbol)
{ {
AddAssemblyLink((IAssemblySymbol)containingSymbol); AddAssemblyLink(assemblySymbol);
} }
else if (containingSymbol is ITypeSymbol) else if (containingSymbol is ITypeSymbol typeSymbol)
{ {
AddTypeLink((ITypeSymbol)containingSymbol, LinkFlags.SplitNamespaceAndType | LinkFlags.ExpandPredefinedTypes); AddTypeLink(typeSymbol, LinkFlags.SplitNamespaceAndType | LinkFlags.ExpandPredefinedTypes);
} }
else if (containingSymbol is INamespaceSymbol) else if (containingSymbol is INamespaceSymbol namespaceSymbol)
{ {
AddNamespaceLink((INamespaceSymbol)containingSymbol); AddNamespaceLink(namespaceSymbol);
} }
AddText(right); AddText(right);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册