Nikolay Krasko
09af830476
Do no analyze for annotation search if no annotation entries present
2016-04-26 20:43:26 +03:00
Denis Zharkov
3bda613317
Minor. Rename BuiltInClassesAreSerializableOnJvm -> JvmBuiltInsAdditionalClassPartsProvider
2016-04-25 17:41:08 +03:00
Denis Zharkov
5bc5722051
Load additional JDK functions into built-ins member scope
...
#KT-5990 Fixed
#KT-7127 Fixed
#KT-10370 Fixed
2016-04-25 17:41:08 +03:00
Denis Zharkov
5bf39689e9
Replace irrelevant usages of JvmBuiltIns.Instance with DefaultBuiltIns.Instance
2016-04-25 17:41:08 +03:00
Denis Zharkov
ef18d64931
Parametrize module creation by platform with built-ins
2016-04-25 17:41:08 +03:00
Denis Zharkov
7f860fa051
Manually set up built-ins for decompiler
2016-04-25 17:41:08 +03:00
Denis Zharkov
c4a899d9a4
Get rid of some targetPlatform.builtIns usages
...
Retrieve builtIns from module itself when adding dependencies on them
2016-04-25 17:41:08 +03:00
Denis Zharkov
e97fa929ea
Minor. Replace '== JvmPlatform' with 'is JvmPlatform'
2016-04-25 17:41:08 +03:00
Denis Zharkov
e2db5d9a01
Get rid of TargetPlatform.builtIns usages in IDE
...
Retrieve them through resolution facade instead of platform
2016-04-25 17:41:08 +03:00
Stanislav Erokhin
45ac1d2cb5
Refactoring. Remove FlexibleTypeFactoryDeserializer.
2016-04-25 15:28:49 +03:00
Stanislav Erokhin
0a4ad3f267
Refactoring. Rename FlexibleTypeCapabilities -> FlexibleTypeFactory. Also use factory.create instead of DelegatingFlexibleType.create.
2016-04-25 15:28:46 +03:00
Alexey Sedunov
d456aa6ba8
Rename: Fix Find Usages/Rename for parameter references in XML files
...
#KT-11967 Fixed
2016-04-25 10:38:39 +03:00
Alexey Sedunov
cc5c3c2353
Rename: Fixed rename of Java getters/setters through synthetic property references in Kotlin
...
#KT-8817 Fixed
2016-04-25 10:38:33 +03:00
Alexey Sedunov
021c88e5ff
Find Usages: Fixed searching of Java usages for @JvmStatic properties and @JvmStatic @JvmOverloads functions
...
#KT-11736 Fixed
2016-04-21 16:40:19 +03:00
Alexey Sedunov
aa4bfadfb1
Intentions: Implement "Introduce local variable" intention
...
#KT-11768 Fixed
2016-04-19 20:27:37 +03:00
Valentin Kipyatkov
bd5af61879
Moved ShortenReferences from idea-analysis to idea-core, added dependency from idea-analysis to idea-core
2016-04-18 17:15:52 +03:00
Valentin Kipyatkov
da4dee3716
Moved generateUtil.kt into idea-core
2016-04-18 17:15:52 +03:00
Valentin Kipyatkov
b32859cf68
KT-11633 Kotlin code editor applies wrong indentation after completing a statement in data class
...
#KT-11633 Fixed
2016-04-18 17:15:52 +03:00
Natalia Ukhorskaya
316057873b
Fix EA-72969 - assert: ExtractFunctionForDebuggerUtilKt$getFunctionForExtractedFragment$.invoke : ERROR_TYPES
...
Context element for codeFragment can be a KtFile (not only KtExpression) ex. in case when file was changed after debugger starts and there is no expression at line with breakpoint
2016-04-15 15:58:07 +03:00
Natalia Ukhorskaya
e55a1ad49c
Get correct target platform for codeFragments
2016-04-15 15:58:07 +03:00
Alexander Udalov
1f3850da6e
Store outer class in ProtoContainer instead of only its kind
2016-04-14 21:08:36 +03:00
Alexander Udalov
8ee278d02f
Fix SourceElement for classes loaded in decompiler
2016-04-14 21:08:36 +03:00
Alexander Udalov
88106bb13b
Get rid of BinarySource interface, use SourceElement instead
2016-04-14 21:08:36 +03:00
Alexander Udalov
ad068ed4ac
Do not call findKotlinClass when loading class annotations
...
The main change is in AbstractBinaryClassAnnotationAndConstantLoader, where we
no longer perform unnecessary IO operations for classes which are already
loaded to memory
2016-04-14 21:08:36 +03:00
Alexander Udalov
7620d66019
Minor, rename PackagePartSource -> BinarySource
2016-04-14 21:08:36 +03:00
Alexander Udalov
ac92be12c6
Minor, take ProtoContainer in AnnotationAndConstantLoader#loadClassAnnotations
2016-04-14 21:08:36 +03:00
Alexander Udalov
2ab68d53fa
J2K KotlinJvmBinaryClass & AnnotationAndConstantLoader: convert
2016-04-14 21:08:36 +03:00
Alexey Sedunov
119cf0f0cd
Spring Support: Support Find Usages/Rename (on both declarations and
...
references) of Kotlin declarations referenced in the XML config
#KT-11719 Fixed
#KT-11652 Fixed
2016-04-09 21:13:30 +03:00
Alexey Sedunov
233f2b468d
Spring Support: "Generate Dependency..." actions
...
#KT-11407 Fixed
2016-04-08 21:11:28 +03:00
Alexey Sedunov
962b312fb7
[RESTORED] Light Classes: Constant expression evaluator for light annotation arguments
2016-04-08 21:11:16 +03:00
Alexey Sedunov
f2e2220560
[RESTORED] Spring Support: Implement Spring-specific references
2016-04-08 21:11:15 +03:00
Yan Zhulanow
4df9e9261e
Lint: Rewrite Lint diagnostics using Uast.
2016-04-08 15:39:58 +03:00
Pavel V. Talanov
f7db1f934c
IDELightClassGenerationSupport#getContextForClassOrObject: do not rely on resolution facade being unchanged
...
ResolutionFacade should only recompute its underlying structures in case of psi change (which is ok) or some exception, but relying on it being unchanged has led to numerous exceptions in backend when building light classes (EA-70985, EA-80756)
Changing this code may not be the solution but it can possibly move failures to other parts of the system, where they can be easier diagnosed
2016-04-06 16:09:17 +03:00
Dmitry Petrov
8377eb4613
KT-11777: no parts for '<root>'
2016-04-06 10:01:01 +03:00
Zalim Bashorov
f2237f675d
Don't use invalid entries (including disposed libraries) when crete module infos to avoid exceptions in the future (see #EA-81326)
2016-04-05 12:44:46 +03:00
Zalim Bashorov
88da3fe44d
Check that library isn't already disposed before use to avoid exceptions like in #EA-79154
2016-04-05 12:44:46 +03:00
Zalim Bashorov
7dad1831e9
Generate stubs only for files from jar
...
#EA-78399 fixed
2016-04-05 12:44:46 +03:00
Nikolay Krasko
04cea0993c
Make idea-analysis depend on Java 8
2016-04-05 00:39:46 +03:00
Dmitry Petrov
92ddbb271a
KT-11410: generate light classes from multifile class parts in binaries
...
if explicitly requested by fqName
2016-04-01 10:13:22 +03:00
Pavel V. Talanov
e19cc04c63
KT-11678 Support navigation from Java source to Kotlin binaries
...
Introduce LightMemberOriginForCompiledElement which holds logic for finding corresponding decompiled declaration
ByJvmSignatureIndexer stores the required information while building decompiled text
Some are unsolved in this commit:
- constructors
- @Jvm* and other unregular generated members
- annotation methods
#KT-11678 Fixed
2016-03-30 21:35:23 +03:00
Pavel V. Talanov
f40a04c5a2
Refactor light elements
...
KtLightElement#delegate -> clsDelegate, KtLightElement#origin -> kotlinOrigin and make them properties
KtLightClassForDecompiledDeclaration stores KtClsFile
KtLightField stores LightMemberOrigin
2016-03-30 21:35:22 +03:00
Pavel V. Talanov
4824d4b880
Refactor: abstract over decompiled text indexing
...
Move navigation-related code from KtDecompiledFile
2016-03-30 21:35:19 +03:00
Nikolay Krasko
4819c07c95
Extract function for adding annotation to KtModifierListOwner
2016-03-30 16:42:37 +03:00
Valentin Kipyatkov
97311b56fe
Minor changes on code review
2016-03-30 15:58:09 +03:00
Valentin Kipyatkov
99c232df84
Checking that no quickfix reference KotlinType
2016-03-30 15:58:09 +03:00
Valentin Kipyatkov
1f39511950
No i18n
2016-03-30 15:58:08 +03:00
Valentin Kipyatkov
54a69bf21d
ChangeVariableTypeFix to not hold KotlinType
2016-03-30 15:58:05 +03:00
Valentin Kipyatkov
210626a6e1
Merged code into one visitor
2016-03-30 15:58:04 +03:00
Valentin Kipyatkov
f4e3e33bd3
Renamed class
2016-03-30 15:58:04 +03:00
Valentin Kipyatkov
93e170325e
KT-11612 Highlight named arguments in the editor somehow
...
#KT-11612 Fixed
2016-03-30 15:58:04 +03:00