提交 af3f9250 编写于 作者: A Andrey Breslav

SafeName method added

上级 73dab58b
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册