PsiExpression not found

Answered

I'm very new to plugin development and found some tutorials using the PsiExpression class and some others. However, when creating a plugin project using the wizard in 2023.1, there is no accessible PsiExpression class in com.intellij.psi. Am I missing something, or can this class not longer be accessed in modern IDEA versions?

PS: Same with other classes like PsiExpressionList, PsiMethodCall or PsiPolyadicExpression.

0
2 comments

Hi Batuhan,

This class is a part of the Java plugin, so you must add a dependency on it. See: https://plugins.jetbrains.com/docs/intellij/plugin-compatibility.html#java

0

Please sign in to leave a comment.