SafeName method added

This commit is contained in:
Andrey Breslav
2012-05-25 22:58:38 +04:00
parent 73dab58bc7
commit af3f9250ef
@@ -52,6 +52,11 @@ public abstract class JetNamedDeclaration extends JetDeclaration implements PsiN
return name != null ? Name.identifier(name) : null;
}
@NotNull
public Name getNameAsSafeName() {
return JetPsiUtil.safeName(getName());
}
@Override
public PsiElement getNameIdentifier() {
return findChildByType(JetTokens.IDENTIFIER);