andrey.matveev
0210695327
PY-26881 Use stubs for function in find usages if it exists
...
(cherry picked from commit 060c164c3f01a857561d5d0341a186464419e845)
IJ-MR-17639
GitOrigin-RevId: 88141ea74ff22fb022056c8d6d7f70222a3f9b74
2022-01-21 03:17:30 +00:00
Semyon Proshev
fbbb78bc4e
Change receiver for initialization calls and don't resolve callee to constructors
...
Callee is now a receiver for these cases, previously it was `null`.
Callee is not replaced with constructors to have an ability to map it onto self/cls parameters and process `(cls: Type[T], ...) -> T` annotations.
Stay with the previous behaviour for navigation and looking for target element.
GitOrigin-RevId: c0f9894cf50fd5d7fd325f095976d096fb948e89
2020-11-11 19:30:34 +00:00
Ilya.Kazakevich
9409409a90
PY-17933: Rename refactoring: cannot find reference to attribute defined in another file
...
Code only checked functions. Attributes were ignored.
GitOrigin-RevId: a1792463fa31c55aed469e2e0c60218aceab16cf
2019-11-27 15:10:05 +00:00
fitermay
2cee9b66a0
PY-27004: Use multiResolve to check if Python refs match
2017-12-29 09:46:13 +03:00
Semyon Proshev
ee509d0158
Always resolve references to property to getter
2017-10-31 17:34:12 +03:00
Semyon Proshev
8fd0d00f32
PY-8604 Fixed: Rename refactoring for variable in generator comprehension leads to unresolved references
...
PY-18808 Fixed: Incorrect variable highlighting
Update PyReferenceImpl.resolvesToSameLocal to correctly handle comprehensions
2016-05-18 19:30:27 +03:00
Dmitry Jemerov
1bf433610e
consistent behavior of PyFunction.getContainingClass() in stub-based and non-stub-based cases (PY-1448)
2013-11-05 19:37:45 +01:00
Dmitry Jemerov
f4d2b40874
find usages considers a reference to be a usage if it resolves to an element that shadows our name or is shadowed by ours (PY-6241)
2013-02-05 20:09:49 +01:00
Andrey Vlasovskikh
79e0105bf9
Fixed find usages of namespace packages and imported elements (PY-7348)
2012-08-29 17:06:17 +04:00
Dmitry Jemerov
68e4abc8b4
correct Find Usages for wrapped method calls (PY-5458)
2012-01-12 13:33:03 +01:00
Dmitry Trofimov
8b50464420
Fixed find usages for reassigned class and instance attributes (PY-4338).
2011-08-22 20:01:22 +04:00
Dmitry Jemerov
a55102231e
advance required gen version for builtins
2011-05-26 21:08:05 +04:00
Dmitry Jemerov
45abd45806
correct isReferenceTo() for variables used in nested functions (part of PY-3118)
2011-03-21 19:43:18 +01:00
Dmitry Jemerov
a72557562b
correct isReferenceTo() for references to files (PY-1514)
2010-08-17 21:35:51 +04:00
Dmitry Jemerov
cc3647f65b
don't apply loose isReferenceTo() logic of qualified references with unknown qualifier type to __init__ calls (otherwise we get very weird results when searching usages of class) (PY-1450)
2010-07-27 21:34:52 +04:00
Dmitry Jemerov
60b0a5b806
isReferenceTo() handles lambda expressions more correctly
2010-07-05 17:17:53 +04:00
Dmitry Jemerov
77e4a1561b
don't resolve target expressions outside of their defining function (PY-1179)
2010-06-30 22:02:19 +04:00
Dmitry Jemerov
a76a852258
rewrite global name checks in terms of Scope.isGlobal()
2010-06-30 22:02:18 +04:00
Dmitry Jemerov
5ff2322075
improve interaction of Find Usages and global statements (PY-1167); changed PSI so that names declared in global statement are now PyTargetExpression rather than PyReferenceExpression instances
2010-06-30 22:02:15 +04:00
Dmitry Jemerov
f069e74065
a qualified reference is not a reference to an unqualified element with the same name (PY-939)
2010-05-04 21:57:41 +04:00
Dmitry Jemerov
333f9c8191
find usages works for implicit resolve results
2010-04-15 18:24:28 +04:00
Dmitry Jemerov
efd9e36800
variations on the theme of Find Usages for local variables (PY-527)
2010-04-15 14:30:50 +04:00
Dmitry Jemerov
5e6ef30c5a
searching for class usages also searches for constructor usages (PY-774), stub for usage type provider
2010-03-30 22:35:33 +04:00
Dmitry Jemerov
d71303d4b2
Find Usages works on __init__ method (PY-292)
2010-03-30 22:35:32 +04:00