Dmitry Jemerov
0fa4e1cbaf
Set scope of plugin dependencies to provided
2017-09-01 13:11:39 +02:00
Vyacheslav Gerasimov
be900a76d8
Android Lint: check for array initializer in SuppressLint
2017-09-01 13:32:08 +03:00
Vyacheslav Gerasimov
f4da6c2cc6
UAST: findAttributeValue returns default value when no declared value found
2017-09-01 13:32:00 +03:00
Vyacheslav Gerasimov
56a075eab6
UAST: Fix annotation arguments processing
...
multiple unnamed arguments represented as value named expression with array initializer
call kind for array in annotation argument should be "array initializer" instead of "method call"
#KT-16600 Fixed Target Versions 1.1.5
2017-09-01 13:31:50 +03:00
Vyacheslav Gerasimov
aedb4c0ade
Android Lint: Fix constant evaluation in annotation parameter
...
#KT-17785 Fixed Target Versions 1.1.5
2017-08-23 13:18:56 +03:00
Vyacheslav Gerasimov
2e1edaf3d4
Uast: Fix getExpressionType for elvis expression
...
#KT-18997 Fixed Target Versions 1.1.5
2017-08-23 13:18:49 +03:00
Vyacheslav Gerasimov
e06cb1ec39
Android Lint: Use Uast to check for SuppressLint annotation
...
#KT-14800 Fixed Target versions 1.1.5
2017-08-23 13:18:42 +03:00
Vyacheslav Gerasimov
cb3a8d87d0
Android Extensions: Correctly handle namespaces in layout xml
...
#KT-19451 Fixed Target versions 1.1.5
2017-08-23 13:18:34 +03:00
Vyacheslav Gerasimov
f941186f75
UAST: Properly handle annotations on local variables
2017-08-21 15:02:01 +03:00
Vyacheslav Gerasimov
c549c63100
Light Classes: Correctly handle annotations for property parameters
...
When getting annotations for KtLightParameter which is property parameter we should return annotations for parameter instead of property
#KT-19671 Fixed
2017-08-21 15:01:51 +03:00
Pavel V. Talanov
6424b6760f
Remove StorageComponentContainerContributor::onContainerComposed
...
Rename addDeclarations -> registerModuleComponents
Use it to provide SamWithReceiverResolver extensions instead
Post construction on container composition can be achieved
but manually inserting injections where it seems appropriate
is bug prone
This fixes a bug where SamWithReceiverPlugin extension was not registered
for some containers in IDE which led to incorrect highlighting in IDE
Add IDE test for applying SamWithReceiver plugin
#KT-18062 Fixed
2017-08-18 19:11:25 +03:00
Mikhail Glukhikh
3623f581b8
Eliminate a set of warnings, mostly nullability ones
2017-08-18 15:10:27 +03:00
Alexander Udalov
8db736e2b4
Support FULL_JDK directive in diagnostic tests
2017-08-17 12:35:56 +03:00
xiexed
12eb4ef37a
KotlinUastLanguagePlugin#convertElementWithParent NPE fix when parent is null (#1247 )
2017-08-16 17:47:40 +03:00
xiexed
6a4ea8b669
toUElement() made work with KtAnnotationEntry (#1240 )
...
* `KotlinUastLanguagePlugin#convertElement` made work with `KtAnnotationEntry`
* `KotlinUastLanguagePlugin#convertElementWithParent` searches for parent `KotlinUNamedExpression`
2017-08-16 13:01:37 +03:00
Dmitry Jemerov
e3963fccf4
Move Gradle-related classes to idea-gradle module
2017-08-15 16:51:42 +02:00
Yan Zhulanow
57d209f599
Kapt: Do not use awkward ('$' -> '/') logic for KAPT3 class builder mode
...
So (for the most often reproduction case) #KT-19433 Fixed
Before this commit, internal names for nested classes were written as test/Foo/Bar (comparing to test/Foo$Bar in the normal mode), as getting qualified names from such internal names was trivial. But, because of IC, we needed to write class files to the disk, so our decompiler could find such "broken" classes and read it in a wrong way.
2017-08-15 17:48:51 +03:00
Vyacheslav Gerasimov
4cf2bf6ca5
UAST: Implement getFunctionalInterfaceType for KotlinULambdaExpression
2017-08-14 15:41:40 +03:00
Vyacheslav Gerasimov
298d29a962
Android Extensions: Allow to disable IDE support (KT-12741)
2017-08-10 22:05:45 +03:00
Yan Zhulanow
a142c2f8fa
Fix compilation IntelliJLintClient, IntelliJLintProject, IDEAndroidLayoutXmlFileManager
2017-08-10 22:05:45 +03:00
Vyacheslav Gerasimov
2ac7b6a534
UAST: Fix DeclarationDescriptor.toSource return first found source element
...
instead of null, when multiple descriptors found
#KT-18837 Fixed
2017-08-09 15:34:41 +03:00
Vyacheslav Gerasimov
915f47133b
UAST: Fix KotlinUMethod annotation handling, properly handle use site targets
...
#KT-16834 Fixed
#KT-18893 Fixed
2017-08-09 15:34:34 +03:00
Vyacheslav Gerasimov
f24488915a
UAST: Log error when failed to create light class for UObjectLiteralExpression
2017-08-09 15:34:27 +03:00
Yan Zhulanow
13868f89e8
Minor: Change test format to JUnit 3
2017-08-02 03:35:16 +03:00
Yan Zhulanow
6002281874
Android Extensions: Downgrade to old Android variant processing logic when 'experimental' flag is disabled (KT-19270)
2017-08-02 03:35:14 +03:00
Yan Zhulanow
3bb7febeb8
AllOpen: Make private members open again because of KT-19047
2017-08-02 03:35:13 +03:00
Yan Zhulanow
5ff014f89d
Parcelable, minor: Change error message
2017-08-02 03:35:12 +03:00
Yan Zhulanow
448fa8495a
Parcelable, Lint: Do not report "CREATOR field missing" warnings on our '@Parselize' Parcelables
2017-08-02 03:35:11 +03:00
Yan Zhulanow
c1600c9841
Report errors from compiler plugins as compiler PLUGIN_ERRORs (KT-19311)
2017-08-02 03:35:10 +03:00
Yan Zhulanow
9a5a003d0a
NoArg: Fix IllegalAccessError on instantiating sealed class child via Java reflection (KT-18245)
2017-08-02 03:21:16 +03:00
Yan Zhulanow
53e193d130
AllOpen: Support @SpringBootTest annotation (KT-18262)
2017-08-02 03:21:15 +03:00
Yan Zhulanow
4dddb00aca
Kapt: Fix "Anonymous class types are not rendered properly in stubs" (KT-18682)
2017-08-02 03:21:14 +03:00
Yan Zhulanow
bf2bc1fdc7
Android Extensions: Support smart-casted receivers (KT-18545)
2017-08-02 03:21:13 +03:00
Yan Zhulanow
2d8f7419eb
Parcelable: Temporarily disable box tests because of OOM
2017-08-01 18:37:27 +03:00
Mikhail Glukhikh
c5a81691fb
Partial code cleanup: can be private and some others applied
2017-08-01 17:08:56 +03:00
Alexander Udalov
46a01ec131
J2K PathUtil: convert and prettify
2017-07-28 14:11:35 +03:00
Yan Zhulanow
ea1068a822
Parcelable, minor: Rename MagicParcel to Parcelize
2017-07-26 20:19:32 +03:00
Yan Zhulanow
f29cf07fa4
Android Extensions, minor: Fix test
2017-07-26 20:19:32 +03:00
Yan Zhulanow
92558ad183
Minor: Clarify module name in warning message about empty output classpath/output directories
2017-07-26 20:19:31 +03:00
Yan Zhulanow
5a1a4bd8bd
Android Extensions: Add global cache flag in compiler plugin
2017-07-26 20:19:26 +03:00
Yan Zhulanow
84eff43b49
Parcelable: Support Android Extensions experimental flag
2017-07-26 20:19:25 +03:00
Yan Zhulanow
8cdcfc5e67
Android Extensions: Migrate enabled status check to Gradle importer #KT-17641
2017-07-26 20:19:24 +03:00
Yan Zhulanow
38449caaed
Parcelable: Fixes after review
2017-07-26 20:19:23 +03:00
Yan Zhulanow
d0e4b236a7
Parcelable: Support SortedSet, NavigableSet, SortedMap, NavigableMap
2017-07-26 20:19:22 +03:00
Yan Zhulanow
cf607a0f14
Parcelable: Report error on unsupported parameter types, add @RawValue annotation support
2017-07-26 20:19:21 +03:00
Yan Zhulanow
4200629347
Parcelable: Support CharSequence, IBinder/IInterface, objects, enums. Serialize Parcelable efficiently if possible
2017-07-26 20:19:20 +03:00
Yan Zhulanow
19eb30b3ae
Parcelable: Add test for clinit merging
2017-07-26 20:19:19 +03:00
Yan Zhulanow
3062e72282
Parcelable: Support Parcelizer interface in order to be able to customize serialization
2017-07-26 20:19:18 +03:00
Yan Zhulanow
aa5f9ee3ec
Parcelable: Correctly handle writeToParcel() overriding, report errors on custom writeToParcel() and CREATOR
2017-07-26 20:19:18 +03:00
Yan Zhulanow
96c9bcd820
Parcelable: Allow custom describeContents() implementation
2017-07-26 20:19:17 +03:00