Yan Zhulanow
02ee3aef3f
Kapt: Fix "Unknown option: infoAsWarnings" (#KT-25396)
2018-07-17 20:54:28 +03:00
Yan Zhulanow
423bd573a3
Kapt: Do not add imports for overloaded callables (#KT-25071)
2018-07-12 20:36:41 +03:00
Yan Zhulanow
00edc007f8
Minor: Fix the "Could not find installation home path" terminal warning
2018-07-12 20:36:41 +03:00
Yan Zhulanow
6392adcfc9
Kapt: Ensure we collect .java files from the unique directories (#KT-24963)
2018-07-12 20:36:40 +03:00
Raluca Sauciuc
e0137ed1d5
Android Extensions: make synthetic import resolution more resilient
...
In commit ec0abb0 (Fix EA-79206: Process only valid layout.xml...) we
started to drop layouts with invalid PsiFiles during resolution of
(synthetic) package fragments.
In Android Studio we run into invalid files quite often, and it seems
to be caused by a race with some invokeLater'ed code from android-ndk;
this has the side effect of now showing all the corresponding symbols
as unresolved, and the imports themselves are suggested for removal.
As a temporary fix I propose we try again to get a valid PsiFile.
Bug: https://issuetracker.google.com/78547457
(cherry picked from commit 3e8789225bd653caaedeca7f761a6442d48214b0)
2018-07-12 20:36:39 +03:00
Yan Zhulanow
392460e426
Kapt: Allow to disable info->warning mapping in logger (#KT-24985)
2018-07-12 20:36:39 +03:00
Yan Zhulanow
8b3aa3dc7f
as32: Kapt: 'kapt.kotlin.generated' is not marked as source root in Android Studio (#KT-24449)
2018-07-12 20:36:39 +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
Yan Zhulanow
90bffbf4c8
Minor: Fix test data for Parcelize annotation checker
2018-07-12 20:36:38 +03:00
Yan Zhulanow
88c9d7e383
Parcelize: Recognize '@IgnoredOnParcel' with @get: use-site annotation target
2018-07-12 20:36:38 +03:00
Yan Zhulanow
26ca7a140d
Parcelize: Generate non-final 'writeToParcel()' and 'describeContents()' (#KT-24720)
2018-07-12 20:36:38 +03:00
Yan Zhulanow
adf3057fea
Parcelize: Fix Parcelize box tests
2018-07-12 20:36:38 +03:00
Yan Zhulanow
3c1c776cdb
Parcelize: Check @IgnoredOnParcel annotation usage (#KT-24459)
2018-07-12 20:36:38 +03:00
Yan Zhulanow
ee37bcf14b
Parcelize: Serialize primitive arrays correctly when the custom parceler is provided.
...
This fixes failing 'customSerializerBoxing' test.
2018-07-12 20:36:37 +03:00
Yan Zhulanow
defe97e4ef
Parcelize: Always map primitive array element types as boxed types for Array<T> (#KT-23808)
2018-07-12 20:36:37 +03:00
Yan Zhulanow
d5f0495031
Parcelize: Support objects and enums (#KT-22576)
2018-07-12 20:36:37 +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
eaa58c3ec2
KtLightParameter should have a KtLightModifierList anyway
...
otherwise we wouldn't get proper annotations for `equals` in data-classes
2018-07-11 09:37:28 +03:00
Nicolay Mitropolsky
be8740e0ee
172: KotlinUastApiTest.kt compilation fix
2018-07-10 10:28:30 +03:00
Ilya Chernikov
9549736d35
Fixes after review
2018-07-10 08:43:52 +02:00
Ilya Chernikov
0f46f62232
Add script class annotations generation from the base class
2018-07-10 08:43:51 +02:00
Ilya Chernikov
edf13c022e
Refactor script definitions loading and discovery:
...
Improve logic, code reuse and readability
Add support for more corner cases
Improve reporting
Add definitions loading test
2018-07-10 08:43:51 +02:00
Ilya Chernikov
fbbfe600ec
Fix list of script definitions recognized by the asm-based loading:
...
fix of the previous fix to #KT-24926
2018-07-10 08:43:50 +02:00
Ilya Chernikov
4812fcf1ad
Fix script definition discovery logic:
...
for cases when directory-based dependencies are passed and directories
with resources are different from directories with classes
Significant refactoring to make code prettier
2018-07-10 08:43:50 +02: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
Alexey Tsvetkov
bfc608de29
Close kapt context
2018-07-04 14:55:42 +03:00
Alexey Tsvetkov
5bf5632886
Do not load annotation processors when generating stubs
...
#KT-25131 fixed
2018-07-04 14:55:42 +03:00
Ilya Gorbunov
bed26dc700
Fix local delegated property smartcast usage
2018-06-29 20:11:03 +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
Ilya Chernikov
1fbece9e7d
Clean scripting plugin options and classpath on importing from gradle
...
should prevent problems that may appear if JPS will try to load
gradle scripting subplugin
(cherrypicked with update from 1.2.50)
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
Egor Neliuba
4fd076e4f4
Fix typo in DefaultErrorMessagesAndroid
...
"Delegating 'Parcelable' is now allowed" -> "Delegating 'Parcelable' is not allowed"
2018-06-20 01:04:30 +03:00
Ilya Chernikov
29adf09b7e
Add test with other annotation, tests fix of #KT-2496
2018-06-15 12:01:49 +02:00
Rodrigo B. de Oliveira
e24a9d08f2
Only collect annotations with a name starting with KotlinScript
2018-06-15 11:53:49 +02:00
Yan Zhulanow
2bc45e0484
Kapt: Extract annotation processing running logic from the compiler plugin
2018-06-08 19:37:19 +03:00
Yan Zhulanow
eb4492394e
Kapt: Fix compatibility with Java 9
...
1. Move option set up to one place, before using any of Java context components;
2. Set Javac file manager options (new to Java 9)
2018-06-08 19:37:19 +03:00
Yan Zhulanow
614003ad70
Android Extensions: Allow to disable specific features of Android Extensions (#KT-23244)
2018-06-08 19:26:59 +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