mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup [python]: Inline method (PyCallExpressionHelper.kt)
GitOrigin-RevId: 2cfb2265b53c9b3fd0fa50606b67740dd83b35e5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bffad2a72d
commit
046cafe8b4
@@ -127,9 +127,6 @@ fun PyCallExpression.getCalleeType(resolveContext: PyResolveContext): PyType? {
|
||||
return PyUnionType.union(callableTypes)
|
||||
}
|
||||
|
||||
fun multiResolveCallee(x: PyCallExpression, resolveContext: PyResolveContext): List<PyCallableType> =
|
||||
x.multipleResolveCallee(resolveContext)
|
||||
|
||||
/**
|
||||
* It is not the same as [getCalleeType] since
|
||||
* this method returns callable types that would be actually called, the mentioned method returns type of underlying callee.
|
||||
@@ -141,13 +138,11 @@ fun multiResolveCallee(x: PyCallExpression, resolveContext: PyResolveContext): L
|
||||
* b = a() # callee type is A, resolved callee is A.__call__
|
||||
* ```
|
||||
*/
|
||||
fun PyCallExpression.multipleResolveCallee(resolveContext: PyResolveContext): List<PyCallableType> {
|
||||
return PyUtil.getParameterizedCachedValue(
|
||||
this,
|
||||
resolveContext) {
|
||||
getExplicitResolveResults(it) +
|
||||
getImplicitResolveResults(it) +
|
||||
getRemoteResolveResults(it)
|
||||
fun multiResolveCallee(expression: PyCallExpression, resolveContext: PyResolveContext): List<PyCallableType> {
|
||||
return PyUtil.getParameterizedCachedValue(expression, resolveContext) {
|
||||
expression.getExplicitResolveResults(it) +
|
||||
expression.getImplicitResolveResults(it) +
|
||||
expression.getRemoteResolveResults(it)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user