protected override IEnumerable<FilteredRegistrationBase> DoCreateRegistrations(ITreeNode registrationRootElement, IStructuralMatchResult match)
{
var declaredType = match.GetMatchedType("type") as IDeclaredType;
if (declaredType != null)
{
ITypeElement typeElement = declaredType.GetTypeElement();
if (typeElement != null)
{
yield return new InNamespaceRegistration(registrationRootElement, typeElement.GetContainingNamespace(), true);
}
}
}