Sergey Mashkov
8ae5ecf4ff
KT-12810 IDL: support special modifiers(e.g. getter and setter)
2016-08-29 17:56:17 +03:00
Yoshinori Isogai
e1eba8f5c8
KT-5193 Make multiline strings foldable ( #938 )
...
* KT-5193 Make multiline strings foldable
#KT-5193 Fixed
* Avoid multiple replace call
2016-08-29 16:52:29 +02:00
Yan Zhulanow
1a1eb7dcfa
KT-12303 Pass only relevant annotations to annotation processors
...
(cherry picked from commit 01742aa)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
7810678389
Kapt: Fix type arguments in JeDeclaredType. In case of type variable, JeTypeVariableType should be returned
...
(cherry picked from commit ed34ec0)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
ebcc762ae9
Kapt: JeTypeElement getInterfaces() and getSuperClass() should provide reference type mirrors
...
(cherry picked from commit 5f50ab6)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
cd44540965
Kapt: Support String[] in annotation proxy
...
(cherry picked from commit 5e9eab9)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
0042a59fb6
Kapt: Use also the compile classpath, not only apt classpath
...
(cherry picked from commit d810119)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
1b05c5fb0c
Kapt, Gradle: The first dependency is kotlin-annotation-processing (we reuse the old configurations from kapt)
...
(cherry picked from commit f95a3d1)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
a8b577cd09
Kapt: Support nested annotations property.
...
Also do not rely on Java class comparison, check against qualified names.
(cherry picked from commit 7610945)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
49bd303988
Kapt: Fix broken assertion
...
(cherry picked from commit 36b0b52)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
46367d720c
Kapt: Gradle integration tests for the new kapt
...
(cherry picked from commit 467d0fd)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
9960e7f7cd
Kapt: Get rid of the 'compiler-tests' dependency in 'plugins-tests'
...
(cherry picked from commit bb370f1)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
a9de8ec89b
Kapt: compile annotation-processing artifact with target "1.6"
...
(cherry picked from commit 1391e59)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
b13db88e6f
Kapt: Make javaCompile parameter in KotlinGradleSubplugin non-null
...
(cherry picked from commit 9686344)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
46f9e02c06
Kapt: Fix type arguments order for JeDeclaredType, should not use substitutor
...
(cherry picked from commit a9c77e1)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
d07e6c752b
Kapt: Support default packages in Filer
...
(cherry picked from commit 3ced8a6)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
8c4fb0a709
Kapt: Support inherited annotations
...
(cherry picked from commit 02a3e6b)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
9d340e1b83
Kapt: Filter out kapt2 sources in KotlinCompile task
...
(cherry picked from commit b248b20)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
04db25a190
Kapt Gradle plugin: use the old configuration names
...
(cherry picked from commit 6e72dc8)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
407af3a0e5
Kapt: Gradle plugin for the new kapt
...
(cherry picked from commit f4fc8f1)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
399059729d
Kapt: verbose output mode
...
(cherry picked from commit e6067d5)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
f5d58d9944
Kapt: Provide toString() implementations for no-types
...
(cherry picked from commit df9c825)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
badf8dbc53
Kapt: Fixes in KotlinElements:
...
1. 'overrides()' when 'type' extends containing(overrider) and implements containing(overridden). According to documentation, In this case the function should return true.
2. Handle both kotlin.Deprecated and java.lang.Deprecated for Kotlin in 'isDeprecated'.
3. Fix 'isFunctionalInterface'.
(cherry picked from commit a14d7ce)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
462c7d91d2
Kapt: Calculate constant values in the similar way.
...
Always use originalElement in JeAnnotationValue factory.
(cherry picked from commit 0ff9584)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
4710fab49f
Kapt: Use the base types in KotlinProcessingEnvironment
...
(cherry picked from commit ed8e2e4)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
927280f7ce
Kapt: add some JeElement tests
...
(cherry picked from commit 948a4b6)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
0fc92c784b
Kapt: add JeElementRenderer
...
(cherry picked from commit 3eecf78)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
cd09f2bcb8
Kapt: Minor, refactor JeAnnotationMirror:getElementValues()
...
(cherry picked from commit 649b938)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
23b343bb03
Kapt: annotation-processing is not dependent on 'cli' module anymore
...
(cherry picked from commit 4591f13)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
f61367df28
Kapt: Fixes on review
...
(cherry picked from commit be31262)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
5b8e6abdeb
Kapt: Support Java source root processing.
...
Support resource file writing.
(cherry picked from commit 7a06a91)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
9d2144f221
Kapt: Support "*" in supported annotation qualified names (all annotations)
...
(cherry picked from commit 27ec053)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
a73cf65840
Kapt: Check DEFAULT modifier only in Java 8
...
(cherry picked from commit 71c8dfb)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
53921c3f74
Kapt: Drop custom annotation stub factory, implement it with AnnotationParser in sun.reflect as done in Javac
...
(cherry picked from commit 82dcbf3)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
6eb3d7e002
Kapt: Refactor kapt type wrappers. Now every ordinary (not NoType) type has a backed PsiType so it's easy to call utility functions from IntelliJ.
...
(cherry picked from commit 0a684aa)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
84d62f37eb
Kapt: Analyze sources again if the received analysis result is 'RetryWithAdditionalJavaRoots'. ->
...
Add additional Java roots to Java source roots and clear diagnostic messages before the next analysis round.
(cherry picked from commit 17ad807)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
884e653490
Kapt: Add ability to get constant value from KtLightAnnotation
...
(cherry picked from commit 7180961)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
0181dd000d
Kapt: Implement Annotation Processing plugin in Kotlin (KT-13499)
...
(cherry picked from commit 32c461a)
2016-08-29 16:31:16 +03:00
Yan Zhulanow
cc12a6c228
Kapt: Add APT wrappers for PSI elements
...
(cherry picked from commit 1214513)
2016-08-29 16:31:16 +03:00
Alexey Sedunov
89c39b9762
Misc: Use TODO() consistently in implementation stubs
...
#KT-13589 Fixed
2016-08-29 16:20:55 +03:00
Alexey Sedunov
639186ddae
Convert Receiver to Parameter: Use template instead of the dialog
...
#KT-9490 Fixed
2016-08-29 16:20:52 +03:00
Alexey Sedunov
63092f6985
Create from Usage: Implement "Create type parameter" quickfix
...
#KT-11525 Fixed
2016-08-29 16:20:32 +03:00
Alexey Sedunov
6a2edabbd4
Create from Usage: Implement "Create type alias" quickfix
...
#KT-12904 Fixed
2016-08-29 14:13:56 +03:00
Valentin Kipyatkov
17edbac72b
Fixed test data
2016-08-29 13:38:18 +03:00
Simon Ogorodnik
67c916a7d1
MultiFile tests now support java + kotlin testing. // FILE directive now accepts path in source root instead of just name
2016-08-29 13:38:18 +03:00
Valentin Kipyatkov
5f24b68368
Minor changes on code review
2016-08-29 13:38:17 +03:00
Valentin Kipyatkov
9cddd0d1a4
Renamed classes
2016-08-29 13:38:17 +03:00
Valentin Kipyatkov
cbae3d77df
Don't use term "Static import" + refer quickfix by class name in negative tests
2016-08-29 13:38:17 +03:00
Valentin Kipyatkov
0072bf079d
Changes on review of pull request
2016-08-29 13:38:17 +03:00
Simon Ogorodnik
939b4768f5
Added tests, and fixed some bugs using it
2016-08-29 13:38:16 +03:00