Java 类com.intellij.psi.tree.RoleFinder 实例源码

项目:consulo-xml    文件:XmlTagRuleProviderBase.java   
@Nullable
public static PsiElement getXmlElement(RoleFinder roleFinder, XmlElement tag)
{
    ASTNode tagNode = tag.getNode();
    if(tagNode == null)
    {
        return null;
    }

    ASTNode nameElement = roleFinder.findChild(tagNode);
    if(nameElement == null)
    {
        return null;
    }

    return nameElement.getPsi();
}
项目:intellij-ce-playground    文件:XmlTagRuleProviderBase.java   
@Nullable
public static PsiElement getXmlElement(RoleFinder roleFinder, XmlElement tag) {
  ASTNode tagNode = tag.getNode();
  if (tagNode == null) return null;

  ASTNode nameElement = roleFinder.findChild(tagNode);
  if (nameElement == null) return null;

  return nameElement.getPsi();
}
项目:tools-idea    文件:XmlTagRuleProviderBase.java   
@Nullable
public static PsiElement getXmlElement(RoleFinder roleFinder, XmlElement tag) {
  ASTNode tagNode = tag.getNode();
  if (tagNode == null) return null;

  ASTNode nameElement = roleFinder.findChild(tagNode);
  if (nameElement == null) return null;

  return nameElement.getPsi();
}