use of com.perl5.lang.perl.psi.impl.PerlNamespaceElementImpl in project Perl5-IDEA by Camelcade.
the class PerlElementFactory method createPackageName.
// fixme probably we don't need package name and sub. just identifier
public static PerlNamespaceElementImpl createPackageName(Project project, String name) {
PerlFileImpl file = createFile(project, "package " + name + ";");
PerlNamespaceDefinitionMixin def = PsiTreeUtil.findChildOfType(file, PerlNamespaceDefinitionMixin.class);
assert def != null;
return (PerlNamespaceElementImpl) def.getNamespaceElement();
}
Aggregations