Leonid Startsev
dea69e4469
Integrate serialization plugin into big Kotlin plugin
...
Split import handlers into multiple files
Add empty Maven handler for Android Studio
Add testRuntime dependency on kx-serialization-plugin for all modules which require compiler
plugins in test classpath
2018-09-07 21:17:07 +03:00
Alexander Udalov
b7808ba24d
Pass JvmTarget to KotlinTypeMapper
...
Also use KotlinTypeMapper.RELEASE_COROUTINES_DEFAULT instead of false in
FileRankingCalculator
2018-08-21 12:23:07 +02:00
Nicolay Mitropolsky
cd047b9605
Uast: KotlinUAnnotation.uastAnchor uses nameReferenceElement as javaPsi
...
because `nameReferenceElement` is not-null in LightAnnotations, but `referenceNameElement` violates `javaPsi` contract
2018-08-14 13:08:38 +03:00
Mikhael Bogdanov
6b5b9fbde4
Temporary use special container mapping logic for IR backend
2018-08-09 14:22:47 +03:00
Alexander Udalov
5da8ce844a
Minor, move ContentRoot and KotlinSourceRoot to module 'cli'
...
Also move CONTENT_ROOTS from JVMConfigurationKeys to
CLIConfigurationKeys since it's used on all platforms, not just JVM
2018-08-07 13:38:30 +02:00
Vyacheslav Gerasimov
a2bf417d75
Remove 172 bunchset
2018-08-02 19:32:18 +03:00
Nicolay Mitropolsky
a616f6cca9
Uast: implicit receiver for local function calls (KT-25524)
2018-07-17 21:41:03 +03:00
Nicolay Mitropolsky
5212728a82
Uast: implicit receiver for function variables calls (KT-25524)
2018-07-17 21:41:03 +03:00
Yan Zhulanow
06af2a88f0
Uast: Move all IDE-related code to uast-idea, get rid of the 'idea' dependency
...
Uast is used in the CLI version of Android Lint so 'uast-kotlin' should run correctly even without IDE.
2018-07-12 20:36:39 +03:00
Mikhail Zarechenskiy
584c888e5b
Fix exception from UAST: don't use constant of error type
...
#EA-121947 Fixed
2018-07-12 16:12:49 +03:00
Nicolay Mitropolsky
be8740e0ee
172: KotlinUastApiTest.kt compilation fix
2018-07-10 10:28:30 +03:00
Nicolay Mitropolsky
dd0e3cd135
Uast: ULambdaExpression returns proper functionalInterfaceType for SamAdapterExtensionFunctionDescriptor (KT-25297)
2018-07-09 19:41:07 +03:00
Nicolay Mitropolsky
2c7687195c
Uast: properly handling explicit SAM (KT-25297)
2018-07-09 19:41:07 +03:00
Nicolay Mitropolsky
38e2d474b7
Uast: create KotlinULambdaExpression for in-place lambdas (KT-25297)
...
and provide appropriate functionalInterface
2018-07-09 19:41:07 +03:00
Nicolay Mitropolsky
5d9807ac36
Uast: converting Unit to void on type mapping (KT-25249)
2018-07-04 16:16:22 +03:00
Nicolay Mitropolsky
698096f13e
Uast: fix for creating an UClass for invalid object-literals (EA-122644, KT-20056)
2018-06-28 10:29:47 +03:00
Vyacheslav Gerasimov
abd3ac4e96
UAST: Reformat KotlinUObjectLiteralExpression.kt
2018-06-27 16:04:41 +03:00
Vyacheslav Gerasimov
a829251690
UAST: Fix possible TypeCastException when creating KotlinUNamedExpression
2018-06-27 16:04:40 +03:00
Vyacheslav Gerasimov
62c0d37d45
UAST: Do not log PCE in DeclarationDescriptor.toSource
2018-06-27 16:03:16 +03:00
Nicolay Mitropolsky
bef3d4ace2
Uast: proper identifiers for KotlinUBinaryExpression (KT-25092)
2018-06-26 16:39:47 +03:00
Ilya Chernikov
7bff5e3ce7
Add missing tests dependencies on the renewed kotlin-scripting-idea plugin
2018-06-25 08:06:20 +02:00
Vyacheslav Gerasimov
e724cfa60f
Revert "Build: Copy uast to idea plugin as separate artifacts"
...
This reverts commit e6f6451
2018-06-22 21:41:25 +03:00
Nicolay Mitropolsky
01e9dd5085
don't use project scope to resolve java.lang.String (#KT-25024)
2018-06-22 20:28:55 +03:00
Nicolay Mitropolsky
c150878086
172: Uast: testdata fixes
2018-06-06 14:05:31 +03:00
Nicolay Mitropolsky
5c8e4958db
Uast: exposing enum constants literal values (#KT-23456)
2018-06-06 14:05:30 +03:00
Nicolay Mitropolsky
12707a6443
Uast: handling resolve to deserialized methods (KT-24679)
2018-06-06 14:05:30 +03:00
Nicolay Mitropolsky
2ede37496c
173: Uast: removing kotlinInternalUastUtils.kt.173
...
no sense to keep difference
2018-06-06 14:05:30 +03:00
Nicolay Mitropolsky
045cc253ab
Uast: KotlinUEnumConstant.returnType now is evaluated from containing сlass
...
to make it not load additional clsDelegates
2018-06-05 18:00:15 +03:00
Nicolay Mitropolsky
8e2c9358bc
Uast: updates for consistency tests and fixes for missed things
...
we should use `sourcePsi` instead of `psi` for parents matching, because light `psi` will not be tested, and it is not enough to store only PSI as map key to match parent consistency, because some different UElements could have same sourcePsi.
2018-05-29 13:30:52 +03:00
Nicolay Mitropolsky
eea66bea73
Making LightAnnotation work without clsDelegate (KT-20924, KT-22883)
2018-05-28 17:06:35 +03:00
Nicolay Mitropolsky
05be8f7536
UastKotlinPsiVariable: hashCode nullability fix (EA-119715)
2018-05-11 12:57:23 +03:00
Vyacheslav Gerasimov
ab25145458
as32: Restore uast to 181 platform state
2018-05-10 23:28:41 +03:00
Nicolay Mitropolsky
cf43be9fa3
UAST: replacing deprecated JvmDeclarationUElement with JvmDeclarationUElementPlaceholder (#KT-23887)
...
To make it possible to delete `JvmDeclarationUElement` in IDEA-182
2018-05-08 15:21:13 +03:00
Mikhail Zarechenskiy
37a8844050
Update bunch files for kotlinInternalUastUtils
...
After 5815e790ba and d6405c8147
2018-05-08 12:03:17 +03:00
Vyacheslav Gerasimov
e6f64519e4
Build: Copy uast to idea plugin as separate artifacts
2018-05-08 00:24:22 +03:00
Mikhail Zarechenskiy
5815e790ba
Minor, use utility to get default type for number type constructor
2018-05-03 11:04:55 +03:00
Mikhail Zarechenskiy
d6405c8147
Fix exception on mapping internal types to UAST types with NI
...
#EA-119071 Fixed
2018-05-03 11:04:54 +03:00
Nikolay Krasko
c83ff5e75f
Remove files introduced in 181 from 173 branch
2018-04-27 19:45:23 +03:00
Vyacheslav Gerasimov
8c88ac69df
Cleanup .181 bunch files
2018-04-27 18:25:21 +03:00
Vyacheslav Gerasimov
bc403ce744
Switch to 181 platform
2018-04-27 18:25:17 +03:00
Nicolay Mitropolsky
efdc5701d9
Uast: removing SimpleKotlinRenderLogTest.kt.181
2018-04-24 12:35:26 +03:00
Mikhail Glukhikh
3351b00870
SimpleKotlinRenderLogTest: delete identical branch file (AS32)
2018-04-24 10:31:59 +03:00
Mikhail Glukhikh
f9858bf597
SimpleKotlinRenderLogTest: add (forgotten) changes into branches
2018-04-24 10:30:10 +03:00
Mikhail Glukhikh
00a9dea7cb
KotlinAbstractUElement+KotlinUElementWithComments(172): add imports
2018-04-21 11:04:13 +03:00
Mikhail Glukhikh
5dd7ff4d7f
Up KotlinAbstractUElement / UElementWithComments / UVariable in branches
2018-04-20 21:29:55 +03:00
Mikhail Glukhikh
3e1d05f146
Update KotlinUMethod for 172/181/as32 branches
2018-04-20 21:23:05 +03:00
Mikhail Glukhikh
a25e971d19
UAST: property delegates consistency #KT-22527 Fixed
2018-04-20 20:39:56 +03:00
Mikhail Glukhikh
f179b2ba13
Test for KT-22527
2018-04-20 20:39:54 +03:00
Mikhail Glukhikh
29c16f9561
Improve KotlinUElementWithComments & use it in most KotlinUElements
...
Related to KT-22135
2018-04-20 20:39:45 +03:00
Nikolay Krasko
9bce8759bb
Remove accidentally added *.173.as32 files
2018-04-16 15:55:53 +03:00