mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-56609: Refactoring in quick documentation
Simplify DocStringParameterReference GitOrigin-RevId: 1cfd861cec23d9f7a41d630212a19e41ddae40b7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ffcdd05430
commit
98f4edc289
+1
-6
@@ -64,12 +64,7 @@ public class DocStringParameterReference extends PsiReferenceBase<PyStringLitera
|
||||
|
||||
@Nullable
|
||||
private PyTargetExpression resolveGlobalVariable(@NotNull PyFile owner) {
|
||||
for (PyTargetExpression assignment : owner.getTopLevelAttributes()) {
|
||||
if (getCanonicalText().equals(assignment.getName())) {
|
||||
return assignment;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
return owner.findTopLevelAttribute(getCanonicalText());
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user