Yan Zhulanow
6e65a4810e
Make a project-wide embeddedComponents configuration for embedding external binaries to project artifacts
2018-03-02 03:15:32 +03:00
Yan Zhulanow
07ede20dc5
Pill: Import KotlinPlugin artifact
2018-03-02 03:15:28 +03:00
Yan Zhulanow
df88acaefd
Get rid of test-to-production dependencies as it's not supported in plain IDEA projects
2018-03-02 03:15:24 +03:00
Yan Zhulanow
e7a2743dcf
Pill: Add "Generate All Tests" run configuration
2018-03-02 03:15:23 +03:00
Yan Zhulanow
a0c105adbe
Fixes to make the project compile when using Pill
2018-03-02 03:15:19 +03:00
Yan Zhulanow
34d1611ed4
Add Pill support to compiler and IDE modules
2018-03-02 03:15:17 +03:00
Nicolay Mitropolsky
2f6fb4091b
making LambdaArgument methods nullable
...
overridden `LambdaArgument.getArgumentExpression` removed because it is already nullable in parent
#EA-117013
2018-02-28 12:13:12 +03:00
Mikhail Glukhikh
b436ee6e19
Replace some of RESOLVED_CALL & REFERENCE_TARGET usages to resolveToCall
2018-02-27 18:24:55 +03:00
Nicolay Mitropolsky
35ce30aedc
Uast: better reports for failed method conversions in KotlinUClass
2018-02-27 11:23:04 +03:00
Nicolay Mitropolsky
795516269d
Uast: don't run resolve if not inside KtFile
2018-02-27 11:22:40 +03:00
Nikolay Krasko
08a46c1396
Refactoring: move idea source modules classes to caches/project package
2018-02-26 18:42:58 +03:00
Ilya Gorbunov
5c0cc5f799
Move deprecated kotlin-runtime and reduced runtime for tests into stdlib
...
Rename mock-runtime-for-test project to kotlin-stdlib:jvm-minimal-for-test
2018-02-26 17:11:11 +03:00
Yan Zhulanow
dfc007ebd3
Use thread-safe WeakHashMap implementation in annotation-based IDE plugins (#KT-22514)
2018-02-20 23:19:35 +03:00
Mikhail Glukhikh
84993ec3a0
Resolution API: introduce and use KtElement.resolveToCall()
2018-02-20 20:25:42 +03:00
Mikhail Glukhikh
5848bc9a44
Introduce KtClassOrObject.resolveToDescriptorIfAny()
2018-02-20 20:25:42 +03:00
Mikhail Glukhikh
eabc7c9ba8
Replace some KtDeclaration.analyze() with resolveToDescriptorIfAny()
...
Also, enhance comment on KtElement.analyze()
2018-02-20 20:25:40 +03:00
Mikhail Glukhikh
135c06dc96
Android goto tests: analyzeFully --> analyze
2018-02-20 20:25:39 +03:00
Alexey Sedunov
aa4a5b75c7
UAST: Fall back to JVM platform if element doesn't have a module
2018-02-19 18:11:56 +03:00
Alexey Sedunov
99fca79bdc
UAST: Do not create UElements in non-JVM modules
2018-02-19 13:01:38 +03:00
Alexey Sedunov
994d6ab4f9
Temporarily revert "UAST: Do not create UElements in non-JVM modules"
2018-02-16 14:05:16 +03:00
Alexey Sedunov
d5df8c60fc
UAST: Do not create UElements in non-JVM modules
2018-02-15 20:37:44 +03:00
Yan Zhulanow
edcf0aef53
Kapt: Allow Kotlin @Repeatable annotations (KT-22451)
...
We don't generate a wrapper for repeatable annotations, and Javac complains to it.
2018-02-09 19:11:03 +03:00
Vyacheslav Gerasimov
a3a46fe259
Fix test runtime and set idea.home.path for sam with receiver plugin
2018-02-09 15:04:30 +03:00
Mikhail Zarechenskiy
c5c8d84719
Support boxing/unboxing for method return types
2018-02-09 04:56:36 +03:00
Mikhail Zarechenskiy
1cdad65b9b
Refactoring: propagate KotlinType through hierarchy of StackValue
...
Mainly, this is needed to introduce boxing over inline classes
2018-02-09 02:08:10 +03:00
Yan Zhulanow
2a3bab0a0f
Kapt: Register additional source directories without modifying the raw Gradle model
...
Unfortunately, this works only for the newer Android Studio versions, so we need to keep the old code until IDEA will migrate at least to AS 3.1.
2018-02-08 19:36:38 +03:00
Yan Zhulanow
6c4a2db34b
Kapt: Enums inside enum values should be forbidden (KT-22582)
2018-02-08 19:36:38 +03:00
Yan Zhulanow
510d5ece0f
Android Extensions: Support '.', '-' and ':' in View identifiers (KT-22700)
2018-02-08 19:36:37 +03:00
Yan Zhulanow
bdd7ab3a09
Kapt: Mute Java 9 tests temporarily on Windows
2018-02-08 19:36:37 +03:00
Yan Zhulanow
03a20384ef
Uast: Fix an exception while converting type alias KotlinType to PsiType (KT-21874)
2018-02-08 19:36:37 +03:00
Yan Zhulanow
1cc4744345
Kapt: Map URLs to absolute file paths properly, also add some logging
2018-02-08 19:36:37 +03:00
Nicolay Mitropolsky
91a4bbed2e
Uast: KotlinUNestedAnnotation with light annotation (IDEA-185890)
2018-02-07 10:17:40 +03:00
Nicolay Mitropolsky
48ea52def1
Uast: KotlinUNestedAnnotation for processing nested annotations (IDEA-185890)
2018-02-07 10:17:40 +03:00
Yan Zhulanow
1f81c0cdfe
Kapt: Fix compilation errors when the referenced class has '$' in the beginning of its name (KT-22493)
2018-02-06 22:16:01 +03:00
Yan Zhulanow
5fc9c5671c
Kapt: Escape nested comments in doc comments (KT-22469)
2018-02-06 22:16:01 +03:00
Yan Zhulanow
abda4bfb57
Kapt: Remove comments inside enum values (KT-22350)
2018-02-06 22:16:01 +03:00
Yan Zhulanow
4e8969e1c2
Kapt: Fix array of anonymous type handling (KT-22468)
2018-02-06 22:16:00 +03:00
Yan Zhulanow
144ec9285f
Minor: Get rid of duplicating option descriptions in Kapt plugin
2018-02-06 22:16:00 +03:00
Yan Zhulanow
7c7c929b0e
Kapt: Disable location mapping by default, allow to enable it manually
2018-02-06 22:16:00 +03:00
Yan Zhulanow
5668a7af92
Kapt: Replace original Javac diagnostic messages with those with Kotlin location mapped
...
There is no Messages dialog in newer versions of IDEA/Android Studio in which the error messages were mapped before. The new Build window shows only the original locations, so now we need to replace Java file diagnostics with ones mapped to Kotlin source files.
The side effect is that diagnostics on the same locations are automatically merged.
2018-02-06 22:16:00 +03:00
Yan Zhulanow
b0e97de8a8
Kapt: Move line metadata to .kaptMetadata external files (KT-22386)
...
Placing location table inside .java file triggers annotation processor to run on each line table modification (even when the stub declarations themselves are the same). So we move it to the separate file.
2018-02-06 22:16:00 +03:00
Yan Zhulanow
bf9eed931b
Parcelable: Fix 'Simple' test (new boolean serializer)
2018-02-06 22:15:59 +03:00
Yan Zhulanow
145ddf3b1f
Parcelable: Add CREATOR field (and other generated declarations) in light classes (KT-19300, KT-19853)
2018-02-06 22:15:59 +03:00
Nicolay Mitropolsky
8ac95b54a2
Uast: support for Kotlin array literals
2018-02-06 17:53:17 +03:00
Alexander Udalov
ac5444ef7c
Add declaresOrInheritsDefaultValue, move hasDefaultValue to 'resolution'
...
'hasDefaultValue' needs to be adapted to support locating default values
in 'expect' functions, and this is not possible in module 'descriptors',
where it was originally declared. Therefore, move it to module
'resolution' and copy its current logic to a separate function
'declaresOrInheritsDefaultValue' which is used in 5 places.
'hasDefaultValue' itself is updated in subsequent commits.
Besides changing imports, also use a simpler declaresDefaultValue in
some places, which does not include default values inherited from
supertypes: this is OK for constructors, and in LazyJavaClassMemberScope
for functions from built-ins which do not have default argument values
at all
2018-02-05 13:38:04 +01:00
Vyacheslav Gerasimov
36167c7b8f
Add annotations to lint plugin dependencies
...
Fixes `warning: unknown enum constant` during lint plugin build
2018-02-02 16:58:43 +03:00
Alexey Tsvetkov
7cba035f80
Ensure tasks using android sdk or android jar have proper dependencies
...
A test task, that uses android dependency but does not depend on
a corresponding configuration, would fail when it was run after
'clean' task.
I've extracted 'useAndroidSdk', 'useAndroidJar' extensions
making it harder for a developer to forget to set up task dependencies.
2018-02-02 15:40:10 +03:00
Vyacheslav Gerasimov
ec511f7a78
Use dependsOn for dependencies on dist & ideaPlugin tasks
...
instead `shouldRunAfter`
2018-02-01 18:11:25 +03:00
Mikhail Glukhikh
98b0f91d84
Fix parcelize delete creator field test (companion is retained now)
2018-01-31 11:48:03 +03:00
Vyacheslav Gerasimov
68b5dc756c
Remove intellij-core from testRuntime if full idea is already there
...
Looks like it makes tests flacky
2018-01-30 17:06:18 +03:00