mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
cleanup
This commit is contained in:
@@ -108,6 +108,7 @@ class PatternReference extends PsiReferenceBase.Poly<RncRef> implements Function
|
||||
return PsiTreeUtil.getParentOfType(myElement, RncGrammar.class, true, PsiFile.class);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public String getCanonicalText() {
|
||||
final ASTNode node = findNameNode();
|
||||
return node != null ? EscapeUtil.unescapeText(node) : "";
|
||||
|
||||
@@ -102,6 +102,7 @@ public class RncNameImpl extends RncElementImpl implements RncName, PsiReference
|
||||
return resolver.getResult();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public String getCanonicalText() {
|
||||
return getRangeInElement().substring(getText());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user