Java Code Examples for com.intellij.psi.PsiElementVisitor#visitElement()

The following examples show how to use com.intellij.psi.PsiElementVisitor#visitElement() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BashRedirectListImpl.java    From BashSupport with Apache License 2.0 5 votes vote down vote up
@Override
public void accept(@NotNull PsiElementVisitor visitor) {
    if (visitor instanceof BashVisitor) {
        ((BashVisitor) visitor).visitRedirectExpressionList(this);
    } else {
        visitor.visitElement(this);
    }
}
 
Example 2
Source File: CppKeyword.java    From CppTools with Apache License 2.0 5 votes vote down vote up
public void accept(@NotNull PsiElementVisitor psiElementVisitor) {
  if (psiElementVisitor instanceof CppElementVisitor) {
    ((CppElementVisitor)psiElementVisitor).visitCppKeyword(this);
  } else {
    psiElementVisitor.visitElement(this);
  }
}
 
Example 3
Source File: BashExpansionImpl.java    From BashSupport with Apache License 2.0 5 votes vote down vote up
@Override
public void accept(@NotNull PsiElementVisitor visitor) {
    if (visitor instanceof BashVisitor) {
        BashVisitor v = (BashVisitor) visitor;
        v.visitExpansion(this);
    } else {
        visitor.visitElement(this);
    }
}
 
Example 4
Source File: BashComposedVarImpl.java    From BashSupport with Apache License 2.0 5 votes vote down vote up
@Override
public void accept(@NotNull PsiElementVisitor visitor) {
    if (visitor instanceof BashVisitor) {
        ((BashVisitor) visitor).visitComposedVariable(this);
    } else {
        visitor.visitElement(this);
    }
}
 
Example 5
Source File: BashVarImpl.java    From BashSupport with Apache License 2.0 5 votes vote down vote up
@Override
public void accept(@NotNull PsiElementVisitor visitor) {
    if (visitor instanceof BashVisitor) {
        ((BashVisitor) visitor).visitVarUse(this);
    } else {
        visitor.visitElement(this);
    }
}
 
Example 6
Source File: AbstractExpression.java    From BashSupport with Apache License 2.0 5 votes vote down vote up
@Override
public void accept(@NotNull PsiElementVisitor visitor) {
    if (visitor instanceof BashVisitor) {
        ((BashVisitor) visitor).visitArithmeticExpression(this);
    } else {
        visitor.visitElement(this);
    }
}
 
Example 7
Source File: BashSubshellCommandImpl.java    From BashSupport with Apache License 2.0 5 votes vote down vote up
@Override
public void accept(@NotNull PsiElementVisitor visitor) {
    if (visitor instanceof BashVisitor) {
        ((BashVisitor) visitor).visitSubshell(this);
    } else {
        visitor.visitElement(this);
    }
}
 
Example 8
Source File: BashFiledescriptorImpl.java    From BashSupport with Apache License 2.0 5 votes vote down vote up
@Override
public void accept(@NotNull PsiElementVisitor visitor) {
    if (visitor instanceof BashVisitor) {
        ((BashVisitor) visitor).visitFiledescriptor(this);
    } else {
        visitor.visitElement(this);
    }
}
 
Example 9
Source File: BashRedirectExprImpl.java    From BashSupport with Apache License 2.0 5 votes vote down vote up
@Override
public void accept(@NotNull PsiElementVisitor visitor) {
    if (visitor instanceof BashVisitor) {
        ((BashVisitor) visitor).visitRedirectExpression(this);
    } else {
        visitor.visitElement(this);
    }
}
 
Example 10
Source File: BashExtendedConditionalCommandImpl.java    From BashSupport with Apache License 2.0 5 votes vote down vote up
@Override
public void accept(@NotNull PsiElementVisitor visitor) {
    if (visitor instanceof BashVisitor) {
        ((BashVisitor) visitor).visitExtendedConditional(this);
    } else {
        visitor.visitElement(this);
    }
}
 
Example 11
Source File: BashConditionalCommandImpl.java    From BashSupport with Apache License 2.0 5 votes vote down vote up
@Override
public void accept(@NotNull PsiElementVisitor visitor) {
    if (visitor instanceof BashVisitor) {
        ((BashVisitor) visitor).visitConditional(this);
    } else {
        visitor.visitElement(this);
    }
}
 
Example 12
Source File: BashBackquoteImpl.java    From BashSupport with Apache License 2.0 5 votes vote down vote up
@Override
public void accept(@NotNull PsiElementVisitor visitor) {
    if (visitor instanceof BashVisitor) {
        ((BashVisitor) visitor).visitBackquoteCommand(this);
    } else {
        visitor.visitElement(this);
    }
}
 
Example 13
Source File: BashShebangImpl.java    From BashSupport with Apache License 2.0 5 votes vote down vote up
@Override
public void accept(@NotNull PsiElementVisitor visitor) {
    if (visitor instanceof BashVisitor) {
        ((BashVisitor) visitor).visitShebang(this);
    } else {
        visitor.visitElement(this);
    }
}
 
Example 14
Source File: BashHereDocEndMarkerImpl.java    From BashSupport with Apache License 2.0 5 votes vote down vote up
@Override
public void accept(@NotNull PsiElementVisitor visitor) {
    if (visitor instanceof BashVisitor) {
        ((BashVisitor) visitor).visitHereDocEndMarker(this);
    } else {
        visitor.visitElement(this);
    }
}
 
Example 15
Source File: BashHereDocStartMarkerImpl.java    From BashSupport with Apache License 2.0 5 votes vote down vote up
@Override
public void accept(@NotNull PsiElementVisitor visitor) {
    if (visitor instanceof BashVisitor) {
        ((BashVisitor) visitor).visitHereDocStartMarker(this);
    } else {
        visitor.visitElement(this);
    }
}
 
Example 16
Source File: BashHereDocImpl.java    From BashSupport with Apache License 2.0 5 votes vote down vote up
@Override
public void accept(@NotNull PsiElementVisitor visitor) {
    if (visitor instanceof BashVisitor) {
        ((BashVisitor) visitor).visitHereDoc(this);
    } else {
        visitor.visitElement(this);
    }
}
 
Example 17
Source File: LSPPSiElement.java    From intellij-quarkus with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public void accept(@NotNull PsiElementVisitor visitor) {
    visitor.visitElement(this);

}
 
Example 18
Source File: LSPPsiElement.java    From lsp4intellij with Apache License 2.0 2 votes vote down vote up
/**
 * Passes the element to the specified visitor.
 *
 * @param visitor the visitor to pass the element to.
 */
public void accept(PsiElementVisitor visitor) {
    visitor.visitElement(this);
}