PsiLiteralExpression is now PsiLiteralValue?

Answered

Hi, 

In chapter 10.6 "Define a Reference Contributor" of the Plugin documentation (https://www.jetbrains.org/intellij/sdk/docs/tutorials/custom_language_support/reference_contributor.html#define-a-reference-contributor), there's a code snippet that seems incomplete.

Can anyone tell me If it is OK to replace PsiLiteralExpression with PsiLiteralValue, since the former doesn't exist as of 2020?

Thanks.

0
2 comments

Onnadi,

I assume that you've figured out the location of the constant value that you've asked earlier.

Regarding the PsiLiteralExpression - this one exists in SDK 2020.1, and there is no need to replace it with anything else.

Please check, if you have set proper java dependencies in your Gradle and plugin.xml files. You can compare it with the simple_language_plugin project files.

0
Avatar
Permanently deleted user

Thanks for the link to the sample code, Jakub.

 

I can run it just fine and it does contain PSILiteralExpression. I can continue from there.

0

Please sign in to leave a comment.