Dmitry Savvinov
f90b29c2e3
Support contracts in PartialBodyResolveFilter
...
Previously, PartialBodyResolveFilter didn't know about contracts and was
filtering out calls of such functions, leading to unstable completion in
cases like that:
fun test(x: Any?) {
require(x is String)
x.<caret>
}
However, PartialBodyResolveFilter works by pure PSI, while to determine
if function has a contract we have to resolve it.
To solve it, we do something very similar to what has been done with
Nothin-returning functions: introduce
KotlinProbablyContractedFunctionShortNameIndex, which collects all
function which *may* have a contract during indexing.
^KT-25275 Fixed
2018-07-27 16:59:24 +03:00
..
2016-11-02 19:25:25 +03:00
2016-11-02 19:25:25 +03:00
2016-11-02 19:25:25 +03:00
2016-02-13 10:20:20 +03:00
2016-02-13 10:20:20 +03:00
2016-01-22 05:54:38 +03:00
2016-02-13 10:20:20 +03:00
2016-02-13 10:20:20 +03:00
2016-01-22 05:54:38 +03:00
2015-01-30 13:33:36 +03:00
2015-01-30 13:33:36 +03:00
2016-02-13 10:20:20 +03:00
2014-11-24 20:11:24 +03:00
2015-07-16 13:49:20 +03:00
2015-07-16 13:49:20 +03:00
2018-07-27 16:59:24 +03:00
2018-07-27 16:59:24 +03:00
2018-07-27 16:59:24 +03:00
2018-07-27 16:59:24 +03:00
2018-07-27 16:59:24 +03:00
2018-07-27 16:59:24 +03:00
2018-07-27 16:59:24 +03:00
2018-07-27 16:59:24 +03:00
2016-02-13 10:20:20 +03:00
2014-11-24 20:11:24 +03:00
2016-02-13 10:20:20 +03:00
2015-04-01 23:21:22 +03:00
2016-02-13 10:20:20 +03:00
2015-04-01 23:21:22 +03:00
2014-11-24 20:11:27 +03:00
2014-11-24 20:11:29 +03:00
2014-11-24 20:11:27 +03:00
2014-11-24 20:11:29 +03:00
2014-11-24 20:11:27 +03:00
2016-02-13 10:20:20 +03:00
2015-09-19 05:04:28 +03:00
2016-02-13 10:20:20 +03:00
2014-11-24 20:11:23 +03:00
2015-03-12 17:11:52 +03:00
2015-03-12 17:11:52 +03:00
2016-02-13 10:20:20 +03:00
2016-02-13 10:20:20 +03:00
2015-04-01 23:21:21 +03:00
2016-02-13 10:20:20 +03:00
2016-02-13 10:20:20 +03:00
2015-04-01 23:21:21 +03:00
2016-02-13 10:20:20 +03:00
2015-04-01 23:21:22 +03:00
2016-02-13 10:20:20 +03:00
2015-09-19 05:04:28 +03:00
2016-02-13 10:20:20 +03:00
2015-09-19 05:04:28 +03:00
2016-02-13 10:20:20 +03:00
2014-11-24 20:11:25 +03:00
2016-02-13 10:20:20 +03:00
2015-09-19 05:04:28 +03:00
2016-02-13 10:20:20 +03:00
2015-04-02 10:16:59 +03:00
2016-02-13 10:20:20 +03:00
2015-09-19 05:04:28 +03:00
2015-09-19 05:04:28 +03:00
2015-09-19 05:04:28 +03:00
2016-02-13 10:20:20 +03:00
2015-09-19 05:04:28 +03:00
2016-02-13 10:20:20 +03:00
2015-09-19 05:04:28 +03:00
2016-02-13 10:20:20 +03:00
2016-02-13 10:20:20 +03:00
2014-11-24 20:11:27 +03:00
2016-02-13 10:20:20 +03:00
2015-04-01 23:21:21 +03:00
2014-11-24 20:11:27 +03:00
2014-11-24 20:11:29 +03:00
2014-11-24 20:11:24 +03:00
2014-11-24 20:11:29 +03:00
2014-11-24 20:11:24 +03:00
2014-11-24 20:11:27 +03:00
2014-11-24 20:11:29 +03:00
2014-11-24 20:11:24 +03:00
2016-02-13 10:20:20 +03:00
2015-04-01 23:21:22 +03:00
2014-11-24 20:11:29 +03:00
2014-11-24 20:11:24 +03:00
2014-11-24 20:11:29 +03:00
2014-11-24 20:11:24 +03:00
2016-02-13 10:20:20 +03:00
2015-04-01 23:21:21 +03:00
2016-02-13 10:20:20 +03:00
2016-02-13 10:20:20 +03:00
2014-11-24 20:11:29 +03:00
2014-11-24 20:11:24 +03:00
2014-11-24 20:11:29 +03:00
2014-11-24 20:11:24 +03:00
2016-02-01 22:20:30 +03:00
2015-09-19 05:04:28 +03:00
2014-11-24 20:11:27 +03:00
2016-11-02 19:25:25 +03:00
2016-11-02 19:25:25 +03:00
2015-01-30 13:33:36 +03:00
2015-01-30 13:33:36 +03:00
2015-04-29 14:03:11 +03:00
2015-04-29 14:03:11 +03:00
2015-04-29 14:03:11 +03:00
2015-04-29 14:03:11 +03:00
2015-09-25 08:29:25 +03:00
2015-09-25 08:29:25 +03:00
2016-02-13 10:20:20 +03:00
2014-11-24 20:11:26 +03:00
2016-02-13 10:20:20 +03:00
2014-11-24 20:11:29 +03:00
2016-02-13 10:20:20 +03:00
2015-09-19 05:04:28 +03:00
2016-11-02 19:25:25 +03:00
2016-02-13 10:20:20 +03:00
2014-11-24 20:11:25 +03:00
2016-02-13 10:20:20 +03:00
2016-02-13 10:20:20 +03:00
2014-11-24 20:11:25 +03:00
2016-02-13 10:20:20 +03:00
2016-02-13 10:20:20 +03:00
2015-09-19 05:04:28 +03:00
2016-02-13 10:20:20 +03:00
2014-11-24 20:11:27 +03:00
2014-11-24 20:11:29 +03:00
2014-11-24 20:11:27 +03:00
2014-11-24 20:11:29 +03:00
2014-11-24 20:11:27 +03:00
2014-11-24 20:11:29 +03:00
2014-11-24 20:11:27 +03:00
2014-11-24 20:11:29 +03:00
2014-11-24 20:11:28 +03:00
2014-11-24 20:11:27 +03:00
2016-02-13 10:20:20 +03:00
2015-09-19 05:04:28 +03:00
2016-02-13 10:20:20 +03:00
2016-02-13 10:20:20 +03:00
2014-11-24 20:11:27 +03:00
2015-03-03 19:22:27 +03:00
2015-03-03 19:22:27 +03:00
2015-03-03 19:22:27 +03:00
2015-03-03 19:22:27 +03:00
2016-02-13 10:20:20 +03:00
2014-11-24 20:11:27 +03:00
2016-02-13 10:20:20 +03:00
2014-11-24 20:11:27 +03:00
2015-09-19 05:04:28 +03:00
2015-09-19 05:04:28 +03:00
2016-02-13 10:20:20 +03:00
2014-11-24 20:11:24 +03:00
2016-02-13 10:20:20 +03:00
2014-11-24 20:11:24 +03:00
2016-02-13 10:20:20 +03:00
2014-11-24 20:11:25 +03:00