mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
PY-74176 Tweak activation of magic literals so they don't interfere with renaming symbols
(cherry picked from commit 69327fbc6680be176286f8fc3dc2aa89140d6c7d) IJ-MR-146071 GitOrigin-RevId: 37da3ea34c760c7d61384d96616d746a0b731636
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2103981df4
commit
0668846014
@@ -33,10 +33,6 @@ public final class PyMagicLiteralTools {
|
||||
Arrays.stream(PyMagicLiteralExtensionPoint.EP_NAME.getExtensions()).anyMatch(o-> o.isEnabled(element));
|
||||
}
|
||||
|
||||
public static boolean isMagicLiteral(@NotNull final PsiElement element) {
|
||||
return (element instanceof StringLiteralExpression stringLiteralExpression) && getPoint(stringLiteralExpression) != null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets extension point by literal.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user