Vyacheslav Gerasimov
663d999ac4
Fixed testOnDestroyFragment
2016-11-23 23:30:28 +03:00
Vyacheslav Gerasimov
da87efed6b
Added ACC_SYNTHETIC flag to generated by kotlin Android extensions onDestroyView method
...
#KT-14610 Fixed
2016-11-23 18:28:43 +03:00
Vyacheslav Gerasimov
60bc35b787
Implemented suppress lint intention action for android lint (KT-12020)
...
#KT-12020 Fixed
2016-11-21 17:16:27 +03:00
Alexey Tsvetkov
ea93ec3eec
Ensure jps caches are always cleared in tests
2016-11-18 23:17:30 +03:00
Dmitry Jemerov
a57748f4f4
@JvmOverloads-generated overloads of final methods are also final; test to verify that overloads of deprecated methods are deprecated
2016-11-18 11:05:03 +01:00
Vyacheslav Gerasimov
c6d668e243
Fixed "should not analyze element" problem with destructuring declarations in uast
2016-11-16 18:05:31 +03:00
Vyacheslav Gerasimov
55f14ba8c0
Fixed method parameter default value processing in uast
2016-11-16 18:05:22 +03:00
Vyacheslav Gerasimov
d90ec3e777
Fixed KotlinLintTestGenerated.testJavaPerformance + refactoring
...
Moved android lint tests from uast-kotlin to idea-android
2016-11-16 18:05:09 +03:00
Zalim Bashorov
1dedb38481
Regenerate tests
2016-11-09 21:41:12 +03:00
Vyacheslav Gerasimov
2a0557f742
Added missing KtLambdaArgument to UElement conversion in KotlinUastLanguagePlugin
...
#KT-14470 Fixed
2016-11-03 17:21:39 +03:00
Vyacheslav Gerasimov
29b9521596
Android lint check for api requirements for classes in catch clause (KT-13243)
...
Added test for #KT-14047, #KT-13243 Fixed, #KT-14047 Fixed
2016-11-03 17:21:17 +03:00
Yan Zhulanow
4188ef6e53
Fix conformance test
2016-11-01 19:36:32 +03:00
Yan Zhulanow
7338980d00
Lint: Add several checkCancelled() checks to UElementVisitor
2016-11-01 19:36:32 +03:00
Yan Zhulanow
65cea7e92c
Lint: Use IntellijApiDetector in IDE
2016-11-01 19:36:32 +03:00
Yan Zhulanow
6ff29f473b
Uast: Migrate to UAnnotation
2016-11-01 19:36:32 +03:00
Yan Zhulanow
fee54d9b86
Lint: Remove SdkWrapper and AnroidModelFacade (was needed in Android Studio 1.5)
2016-11-01 19:36:31 +03:00
Yan Zhulanow
7404b91cb3
Lint: Fix diagnostic tests
2016-11-01 19:36:31 +03:00
Yan Zhulanow
565ca0f7a3
Lint: Fix compilation errors after replacing diagnostics
2016-11-01 19:36:31 +03:00
Vyacheslav Gerasimov
2be9a083ad
Lint: Android Lint diagnostics fixes
2016-11-01 19:36:31 +03:00
Yan Zhulanow
c2ddd943f9
Lint: Update diagnostics because of the new Uast. Also, these diagnostics are from AS 2.2.
2016-11-01 19:36:31 +03:00
Yan Zhulanow
4c4d6a4ad4
Temporary remove outdated Uast tests
2016-11-01 19:36:30 +03:00
Yan Zhulanow
d5d491e6b2
Lint: Update Uast implementation (the new version is without declaration level)
2016-11-01 19:36:30 +03:00
Vyacheslav Gerasimov
3ce1703ced
Extract string resource intention action for android (KT-11715)
...
#KT-11715 Fixed
2016-10-28 15:30:22 +03:00
Yan Zhulanow
34efaea6ea
Increment PsiModificationTracker counter in a write action
...
(cherry picked from commit 73307a2)
2016-10-07 16:28:34 +03:00
Yan Zhulanow
2f933cfcf2
Kapt: Handle exceptions during annotation processing gracefully
...
(cherry picked from commit ee26c19)
2016-10-07 16:28:33 +03:00
Yan Zhulanow
82160bc86d
Parse enum arrays correctly
...
(cherry picked from commit 5f2b5cf)
2016-10-07 16:28:32 +03:00
Yan Zhulanow
f15f90a719
Kapt: Support apt options (KT-13984)
...
(cherry picked from commit b566a37)
2016-10-07 16:28:31 +03:00
Yan Zhulanow
46f3eae32c
Kapt: Dispose every JeElement and JeTypeMirror because some annotation processors may store them in static fields. (KT-13917)
...
Hello, Data Binding, why you cache them? :(
(cherry picked from commit d86a30b)
2016-10-07 16:28:29 +03:00
Yan Zhulanow
f83e7509b2
Kapt: typeElement.asType() should preserve type parameters and propagate it to its supertypes (KT-13865)
...
(cherry picked from commit 92c9cea)
2016-10-07 16:28:28 +03:00
Yan Zhulanow
a22721fbd8
Kapt: Add test on Map<Key, Intf> and MutableMap<Key, Intf>
...
(cherry picked from commit 59cdbcb)
2016-10-07 16:28:28 +03:00
Yan Zhulanow
30ed279426
Kapt: Measure Annotation Processing time
...
(cherry picked from commit 2554d40)
2016-10-07 16:28:27 +03:00
Yan Zhulanow
238340a143
Kapt: Simplify wrapper tests
...
(cherry picked from commit 1677984)
2016-10-07 16:28:25 +03:00
Yan Zhulanow
e04f834a0e
Kapt: Support type parameters in asMemberOf() (KT-13804)
...
(cherry picked from commit 0d97d73)
2016-10-07 16:28:24 +03:00
Yan Zhulanow
415acfbd05
Kapt: asMemberOf() should also check the containing type itself, not only its supertypes (KT-13823)
...
(cherry picked from commit 9f9ffdf)
2016-10-07 16:28:23 +03:00
Yan Zhulanow
cb9dc21649
Dispose IntelliJ platform components after annotation processing complete.
...
Annotation processors may cache ProcessingEnvironment.
(cherry picked from commit bd7a9c6)
2016-10-07 16:28:22 +03:00
Yan Zhulanow
49926fda36
Use LightParameter from Kotlin light classes to add an inner class constructor parameter instead of calling addParameter(name, type). The latter tries to load an icon :( (KT-13798)
...
(cherry picked from commit cc86d79)
(cherry picked from commit de55de2)
2016-10-07 16:28:21 +03:00
Yan Zhulanow
f7f8cff00d
Kapt: Return substituted supertypes in directSupertypes() for immediate class types (KT-13746)
...
(cherry picked from commit 3aae990)
(cherry picked from commit 198115b)
2016-10-07 16:28:20 +03:00
Yan Zhulanow
8d2a4c3f91
asMemberOf() should always substitute type parameters for methods using the relevant substitutor
...
(cherry picked from commit dfadd17)
(cherry picked from commit 49b07a7)
2016-10-07 16:28:19 +03:00
Alexander Udalov
53b584f48c
Simplify usages of IncrementalPackageFragment and related code
...
Since its scope is now empty, no descriptor now has a container that is an
instance of IncrementalPackageFragment -> a lot of code is not needed anymore
2016-10-05 11:24:30 +03:00
Michael Bogdanov
1eac6d47ed
GenerationState in TypeMapper replaced with boolean flag
2016-10-03 14:13:17 +03:00
Michael Bogdanov
0390cd6ee1
Added GenerationState to KotlinTypeMapper
2016-10-03 14:05:59 +03:00
Nikolay Krasko
ea1aac07ec
Problem: workaround thread leaking problem
2016-09-20 15:27:08 +03:00
Nikolay Krasko
72c6c66b48
API Change: Implement new method isSuppressAll()
2016-09-20 15:10:48 +03:00
Dmitry Petrov
796d11c860
ClassDescriptor is now a super-interface for ClassConstructorDescriptor and TypeAliasConstructorDescriptor.
2016-09-20 10:55:36 +03:00
Nikolay Krasko
d96863da93
Fix severe freezes because of long lint checks on large files (KT-13071)
...
- Run lint analyze under indicator with write action priority. Otherwise ProgressManager.checkCanceled() checks doesn't work
- Move ProgressManager.checkCanceled() up or they are not called in large files without lint warnings
#KT-13071 Fixed
2016-09-19 18:53:52 +03:00
Alexey Tsvetkov
6ebb50751c
Remove source annotations when copy class with kapt2
...
Writing source annotations enables incremental compilation for kapt2.
However they are not needed in bytecode, so we remove them when
copying classes.
# Conflicts:
# compiler/cli/src/org/jetbrains/kotlin/cli/jvm/K2JVMCompiler.kt
# compiler/frontend.java/src/org/jetbrains/kotlin/config/JVMConfigurationKeys.java
2016-09-14 13:52:56 +03:00
Yan Zhulanow
fbf44aa9be
Kapt: Fix erasure() for immediate class types (KT-13748)
...
(cherry picked from commit 5fe01f6)
2016-09-10 17:36:51 +03:00
Yan Zhulanow
ef375e66cd
Kapt: calculate default values of Kotlin annotations correctly for annotations from binaries (KT-13733)
...
(cherry picked from commit fed9cb2)
2016-09-10 17:36:50 +03:00
Yan Zhulanow
025f861e76
Minor: Fix path separators check on Windows
...
(cherry picked from commit 974bbe7)
2016-09-10 17:36:15 +03:00
Yan Zhulanow
c6c1673902
Kapt: load all annotations, even if annotation processors does not require it explicitly. Some annotation processors may want to process some more annotations (see DbFlow, Database annotation).
...
Blacklist some common-used Java and Kotlin annotations instead (like Deprecated, Nullable or Metadata).
(cherry picked from commit 6856a7c)
2016-09-10 17:36:15 +03:00