mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PyUtil.strValue() moved to PyPsiUtils
This commit is contained in:
@@ -368,6 +368,11 @@ public class PyPsiUtils {
|
||||
return expr;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static String strValue(@Nullable PyExpression expression) {
|
||||
return expression instanceof PyStringLiteralExpression ? ((PyStringLiteralExpression)expression).getStringValue() : null;
|
||||
}
|
||||
|
||||
private static abstract class TopLevelVisitor extends PyRecursiveElementVisitor {
|
||||
public void visitPyElement(final PyElement node) {
|
||||
super.visitPyElement(node);
|
||||
|
||||
Reference in New Issue
Block a user