implement JetNamespace.getFQName() for nested namespaces

This commit is contained in:
Dmitry Jemerov
2011-06-16 19:19:04 +02:00
parent e6fc0a316f
commit 4b5fd5556a
@@ -49,6 +49,10 @@ public class JetNamespace extends JetNamedDeclaration {
}
public String getFQName() {
return getName(); // TODO: Must include container namespace names, module root namespace
JetNamespace parent = PsiTreeUtil.getParentOfType(this, JetNamespace.class);
if (parent != null) {
return parent.getFQName() + "." + getName();
}
return getName(); // TODO: Must include module root namespace
}
}