This commit is contained in:
Alexey Kudravtsev
2011-09-02 13:48:36 +04:00
parent 58489af2ee
commit 700a55d0f2
2 changed files with 2 additions and 0 deletions
@@ -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());
}