Commit Graph

496 Commits

Author SHA1 Message Date
Nicolay Mitropolsky 43549baf58 Revert "Uast: forcing kotlin.uast.force.uinjectionhost=true always"
This reverts commit e4b7c391
2020-05-06 15:31:20 +03:00
Nicolay Mitropolsky 00b44c1e68 Uast: making KotlinStringTemplateUPolyadicExpression.operands always non-empty (EA-231393) 2020-05-06 15:31:19 +03:00
Nicolay Mitropolsky b7e715045a Uast: skip KtWhenConditionWithExpression in UAST (KT-38521)
when building parents, because they are anyway ignored in converter
2020-05-06 15:31:19 +03:00
Nicolay Mitropolsky 903f35ce0c Uast: don't fall on empty when entries (EA-231339) 2020-05-06 15:31:19 +03:00
Mikhail Zarechenskiy b2ca61e8a5 Fix compilation, remove import 2020-05-04 15:43:46 +03:00
Nicolay Mitropolsky d3f357ee47 Uast: KotlinUastReferencesTest falling in 193 fix 2020-04-16 14:14:29 +03:00
Mikhail Zarechenskiy cf90fe81ac Move Sam(TypeAlias)ConstructorDescriptor to core 2020-04-15 02:06:32 +03:00
Nicolay Mitropolsky 738e2f813c Uast: expression type for assigning arrays (KT-34187) 2020-04-14 18:27:34 +03:00
Nicolay Mitropolsky 9674643254 Uast: support for UYieldExpression (KT-35574) 2020-04-14 18:27:34 +03:00
Nicolay Mitropolsky e815227196 Uast: resolve compiled annotation parameters (KT-34564) 2020-04-09 16:38:12 +03:00
Nicolay Mitropolsky b1bd962464 Uast: kotlinInternalUastUtils.kt reordering to move internal functions to the top 2020-04-09 16:38:12 +03:00
Nicolay Mitropolsky f5df64674f Uast: making local lambda resolve and methods multiresolve work via resolveToDeclaration and resolveToPsiMethod
also fixes KT-36275
2020-04-09 16:38:12 +03:00
Nicolay Mitropolsky 89863bd2a3 Uast: unifying resolve to two methods resolveToDeclaration and resolveToPsiMethod 2020-04-09 16:38:12 +03:00
Nicolay Mitropolsky c3977d7336 Uast: replacing most usages of resolveCallToDeclaration with resolveToPsiMethod 2020-04-09 16:38:11 +03:00
Nicolay Mitropolsky ab36e20b1b Uast: resolving local calls (KT-36275) 2020-04-09 16:38:11 +03:00
Nicolay Mitropolsky 6803b37d14 Uast: Making AbstractKotlinResolveEverythingTest test also UCallExpression
current test data is just frezing the current state which is probable incorrect
2020-04-09 16:38:11 +03:00
Mikhail Zarechenskiy 86fd4da567 [UAST] Fix mapping types containing type aliases
#KT-27935 Fixed
2020-04-08 01:25:14 +03:00
Dmitriy Dolovov e69b2ed47d Drop redundant dependencies on :native:kotlin-native-utils 2020-04-01 11:47:01 +07:00
Nicolay Mitropolsky 3f00de5d7b Uast: fallback to call braces in getting the anchor for call-expressions in complex cases (KT-36273) 2020-03-31 11:56:31 +03:00
Nicolay Mitropolsky f98a1de7c3 Uast: making convertDeclaration always convert the originalElement (KT-35848) 2020-03-31 11:56:31 +03:00
Nicolay Mitropolsky 872b140500 Uast: support for annotated expressions (KT-35801) 2020-03-30 11:58:51 +03:00
Nicolay Mitropolsky c4bd1ce73c Uast: considering top reified functions as static (KT-37613) 2020-03-30 11:58:51 +03:00
Nicolay Mitropolsky 0ca67c1bac Uast: handling reified methods receivers (KT-37613) 2020-03-30 11:58:51 +03:00
Nicolay Mitropolsky 2eb6f1988d Uast: process catch parameters and finally blocks (KT-35804) 2020-03-26 12:55:45 +03:00
Nicolay Mitropolsky f1d5570ca1 Uast: include parameters of reified methods to uast tree (KT-37613) 2020-03-26 12:55:44 +03:00
Nicolay Mitropolsky d1739289c6 Uast: UastFakeLightMethod hashcode fix (KT-37200) 2020-03-11 15:54:01 +03:00
Nicolay Mitropolsky 753d4b3cbd Uast: UastFakeLightMethod equality fix (KT-37200) 2020-03-10 11:33:56 +03:00
Vyacheslav Gerasimov 0db69cadb6 Build: Make all compile dependencies on toolsJar compileOnly
tools.jar differs between different versions of JDK reducing cache reuse
so better to not leak it to other modules
2020-02-29 16:35:54 +03:00
Nikolay Krasko 8501ea78c8 201: Mute a lot of tests with enums 2020-02-28 11:36:40 +03:00
Nikolay Krasko 272ccf64ae Refactoring: extract resetApplicationToNull to separate file 2020-02-18 14:13:54 +03:00
Ilya Chernikov 6356807997 Reapply "Only create descriptors for candidates with lambda args"
#KT-36247 fixed
A lot of testdata changed because significanly less (error) descriptors
are created for unresolved types, so diagnostics became different.
2020-02-14 11:41:30 +01:00
Yan Zhulanow b1414fa477 EA-214662: Support property accessors in UastLightIdentifier 2020-02-14 17:35:18 +09:00
Nicolay Mitropolsky bf9d4f065b Uast: eliminating the kotlin.uast.multiresolve.enabled, it is always true for a long time 2020-02-13 15:54:48 +03:00
Nicolay Mitropolsky e4b7c39110 Uast: forcing kotlin.uast.force.uinjectionhost=true always 2020-02-13 15:54:48 +03:00
Pavel Kirpichenkov 572dee6835 Revert "Only create descriptors for candidates with lambda args"
This reverts commits:
349d07ad43
2249c223fe

Revert due to differences in test data with NI enabled
^KT-36247 Open
2020-02-12 20:52:30 +03:00
Nikolay Krasko 314474c33b 201: uast-tests.jar new dependency (depend on whole idea in tests) 2020-02-11 20:28:04 +03:00
Ilya Chernikov 2249c223fe Only create descriptors for candidates with lambda args
#KT-36247 fixed
2020-02-10 14:21:02 +01:00
Nicolay Mitropolsky 222ceb7698 Uast: fix for Lambda in place call identifiers (KT-35432) 2020-01-29 19:57:43 +03:00
Nicolay Mitropolsky ac3a8eb494 Uast: fixes for Enum identifiers (KT-35432) 2020-01-29 19:57:43 +03:00
Dmitriy Dolovov 9594b8db42 Rename Kotlin/Native modules for uniformity 2020-01-29 20:30:46 +07:00
Dmitriy Dolovov b49e6ac581 Rename :kotlin-native:kotlin-native-library-reader to :native:frontend.native 2020-01-29 20:30:29 +07:00
Nikolay Krasko f01b4706d1 Switch to 193 platform 2020-01-19 12:01:53 +03:00
Igor Yakovlev fb56e14654 Fix UAST method NPE for incomplete method PSI
Fixed #KT-35871
2020-01-15 13:14:41 +03:00
Nicolay Mitropolsky ed57a53ad6 191: Uast: fix compilation for 191 2020-01-15 11:40:47 +03:00
Nicolay Mitropolsky 54285d328f Uast: KotlinIDERenderLogTest for running UAST tests with ULC
In case of result difference the `-ide`-suffixed testdata is used.
Actually the difference in results is more likely to be a bug
but currently we are fixating at least some behaviour to protect from
 unexpected regressions in Ultra Light Classes.

`object Local` were removed because there is no local objects in actual
 Kotlin syntax
2020-01-14 19:48:40 +03:00
Nicolay Mitropolsky 23c2a5c830 Uast: fake light method for uast is created only when containing class exists (KT-35310, EA-219604) 2020-01-10 12:46:37 +03:00
Nicolay Mitropolsky ed4e73c8e9 Uast: the returnType support for light methods for reified functions (KT-35610) 2020-01-09 11:55:22 +03:00
Nicolay Mitropolsky c04ba009e6 Uast: properly handling annotations on destructured variables (KT-35673, EA-220128) 2020-01-09 11:55:22 +03:00
Michael Kuzmin 254dc8f71c Build: Drop IntelliJ 2018.3 and Android Studio 3.4 support
Delete *.183 and *.as34 bunch-files
2019-12-19 18:31:07 +03:00
Pavel Kirpichenkov 3de6289c6c [NI] Run completion on subatoms of error calls
Call transformer previously ran completion of argument atoms
only for non-error candidates. This led to missing diagnostics,
i.e. from collection literal resolver.

Now arguments of calls resolved to error descriptor are completed,
with exception to not found provideDelegate calls.
provideDelegate's subatoms are not completed after failure, because
it is a part of delegate competion, which does not end with
unresolved provideDelegate.
Completing after provideDelegate failure removes constraint system
from resolved arguments, which breaks resolve for get/setValue.

^KT-33592 Fixed
2019-12-03 18:19:32 +03:00