protected override INamespace GetNamespaceElement(IStructuralMatchResult match, out bool includeSubnamespaces)
{
includeSubnamespaces = true;
var declaredType = match.GetMatchedType("type") as IDeclaredType;
if (declaredType != null)
{
ITypeElement typeElement = declaredType.GetTypeElement();
if (typeElement != null)
{
return typeElement.GetContainingNamespace();
}
}
return null;
}