https://kotlinlang.org logo
r

rahul_lohra

07/11/2020, 7:27 PM
Hello I am not sure on how to convert a
kotlin-String
to
PsiElement
. Can anyone help me in this In java we have -
Copy code
PsiElementFactory factory = JavaPsiFacade.getInstance(project).getElementFactory();
PsiMethodCallExpression equalsCall =
    (PsiMethodCallExpression) factory.createExpressionFromText("a.equals(b)", null);
What should I use for
kotlin-String