Mikhail Glukhikh
03aaddd379
More correct handling of possible type set during assignment #KT-8229 Fixed
2015-11-03 12:49:21 +03:00
Valentin Kipyatkov
bbea70a005
Minor changes on code review
2015-11-03 11:46:19 +03:00
Valentin Kipyatkov
c11bf32594
More correct shadowed declarations filtering in completion
2015-11-03 11:46:19 +03:00
Valentin Kipyatkov
67cf9f9510
More correct & quick check of descriptor being from library
2015-11-03 11:46:19 +03:00
Valentin Kipyatkov
b05d490eeb
Performance optimization in completion: search context variables of functional types later
2015-11-03 11:46:18 +03:00
Mikhail Glukhikh
0a5a5a2e36
More precise diagnostics is added for smart cast impossible #KT-8810 Fixed
2015-11-03 11:15:58 +03:00
Michael Bogdanov
15eaa15b65
Fix for KT-7421: Unable to inherit from inner class
...
Fix for KT-6708: Compiler Error when extending open inner class: "java.lang.RuntimeException: Error generating primary constructor of class InnerB with kind IMPLEMENTATION"
#KT-7421 Fixed
#KT-6708 Fixed
2015-11-03 10:14:57 +03:00
Michael Bogdanov
65b85711e3
Fix for KT-3335: Creating imported super class' inner class fails in codegen
...
#KT-3335 Fixed
2015-11-03 10:14:56 +03:00
Dmitry Jemerov
3bd7f87d2b
rename "Jet" from names of IDE classes; consistently use Kt prefix for PSI elements and classes directly related to specific PSI elements
2015-11-02 18:49:35 +01:00
Pavel V. Talanov
fff404780c
Add capabilities to moduleDescriptor as a way to put user data into module
...
Add OriginCapability to ide modules
2015-11-02 20:38:10 +03:00
Dmitry Jemerov
736b496f6a
drop deprecated @platformName and @platformStatic annotations
2015-11-02 17:00:44 +01:00
Pavel V. Talanov
15370244dc
Minor in JavaAgainstKotlinCheckerTest: improve test data for EnumAutoGeneratedMethods case
2015-11-02 18:39:03 +03:00
Pavel V. Talanov
ce4a950697
AbstractSearcherTest: check member kind in test data not the psi implementation class
...
It is not what should be tested in this test
2015-11-02 18:39:01 +03:00
Pavel V. Talanov
78bb44850d
Minor: KotlinAnnotationLightMethod -> KotlinLightAnnotationMethod
2015-11-02 18:39:00 +03:00
Pavel V. Talanov
9f5c0741bd
KotlinLightField: create KotlinLightEnumConstant based on delegate psi, not whether could find original declaration
...
This was not true for decompiled classes and led to enum entries from kotlin compiled files being unresolved in java
2015-11-02 18:38:58 +03:00
Pavel V. Talanov
226c2e3b5c
Implement getParent for KotlinLightClassForDecompiledDeclaration
...
Fixes a bug where java resolve would be unable to resolve return types of CompiledKotlinEnum.values()/valueOf() methods
Tested by EnumAutoGeneratedMethods java against kotlin checker test
2015-11-02 18:38:56 +03:00
Pavel V. Talanov
8c4db9bd35
Fix test data so that it can be compiled
2015-11-02 18:38:55 +03:00
Pavel V. Talanov
f6e6ead907
Add java checker test to test loading inner/nested classes
2015-11-02 18:38:53 +03:00
Pavel V. Talanov
e5f075c7f6
Refactor light fields: move all implementation into one file and prettify code
2015-11-02 18:38:52 +03:00
Pavel V. Talanov
e6b498f943
J2K KotlinLightField: convert and fix compilation
2015-11-02 18:38:50 +03:00
Pavel V. Talanov
d7519225a0
J2K KotlinLightField: rename file
2015-11-02 18:38:49 +03:00
Pavel V. Talanov
f8efdacefd
Refactor light methods: drop KotlinLightMethodForTraitFake and KotlinNoOriginLightMethod
...
Move two remaining meaningful implementation into one place
Move code that choose which implementation to use out of KotlinWrappingLightClass
2015-11-02 18:38:47 +03:00
Pavel V. Talanov
bca516bac3
KtClassBody: get parent by stub is possible
2015-11-02 18:38:43 +03:00
Pavel V. Talanov
be668fc4f5
Introduce JavaAgainstKotlinBinariesTest
2015-11-02 18:38:42 +03:00
Pavel V. Talanov
506b5509f3
KotlinAndJavaCheckerTest -> JavaAgainstKotlinSourceTest and make it generated
2015-11-02 18:38:38 +03:00
Pavel V. Talanov
6b391d6ed2
Make sure constant values for primary constructor parameters default values are written to trace when building light classes for annotation classes
2015-11-02 18:38:37 +03:00
Pavel V. Talanov
03d57e91ec
J2K ValueParameterDescriptorImpl: convert and prettify
2015-11-02 18:38:33 +03:00
Pavel V. Talanov
bbd047f932
J2K ValueParameterDescriptorImpl: rename file
2015-11-02 18:38:32 +03:00
Pavel V. Talanov
dc1fbe89ec
J2K ValueParameterDescriptor inteface in one go
2015-11-02 18:38:30 +03:00
Pavel V. Talanov
4a3632f70e
Backend: generate default values for annotation parameters in light classes mode
2015-11-02 18:38:26 +03:00
Pavel V. Talanov
0b11dc1d7f
KotlinAndJavaCheckerTest: Add test for annotating java code with kotlin annotations
2015-11-02 18:38:25 +03:00
Pavel V. Talanov
6a7ecbfd02
Add completion test for annotation parameter
2015-11-02 18:38:23 +03:00
Pavel V. Talanov
5f4bb4e941
Add test for annotation parameter reference
2015-11-02 18:38:22 +03:00
Pavel V. Talanov
69b3e5e21e
Add light class test for annotation class
2015-11-02 18:38:20 +03:00
Pavel V. Talanov
37c17ba71e
Light classes: correct wrappers for annotation methods
2015-11-02 18:38:19 +03:00
Nikolay Krasko
cde6388e26
getValue and setValue are now operators
2015-11-02 18:23:42 +03:00
Zalim Bashorov
5d72629b0b
Add test for lookups in generic constraints; Add cases with lookup to companion and nested object;
2015-11-02 18:18:37 +03:00
Zalim Bashorov
1cf0ca9287
Minor: add new entries to NoLookupLocation and remove UNSORTED
2015-11-02 18:18:36 +03:00
Zalim Bashorov
d5bccd8cdc
Minor: remove the no longer needed function KtScope::getClassifier(Name)
2015-11-02 18:18:36 +03:00
Zalim Bashorov
16d585e204
Don't track lookups:
...
* when find local variables
we don't need them for incremental compilation;
* when check overrides
we going to track inheritance separatly;
* when get companion object descriptor;
* when find Descriptor by fqname
isn't interesting now because used from light-classes and and java-loder;
* when create qualifier
we already looked up names in this context before.
2015-11-02 18:18:35 +03:00
Zalim Bashorov
2741215ed2
Don't track lookups from deserializer & java loader
2015-11-02 18:18:35 +03:00
Zalim Bashorov
d78d96a856
Don't track lookups to EnumEntryScope and when check names in constraints
2015-11-02 18:18:34 +03:00
Zalim Bashorov
5a6bcea826
Introduce location in SamConversionResolver::resolveSamConstructor and provide right location in usages
2015-11-02 18:18:33 +03:00
Zalim Bashorov
4cb5398c04
Add tests for lookups to declarations form Java
2015-11-02 18:18:32 +03:00
Zalim Bashorov
519172f182
Add tests for lookups to deserialized and java scopes
2015-11-02 18:18:32 +03:00
Zalim Bashorov
3484c43c8c
Minor: fix testdata
2015-11-02 18:18:31 +03:00
Zalim Bashorov
24037c8bf4
Added "touch" command to incremental tests and implemented; Implemented more accurate checking lookups after modifications
2015-11-02 18:18:31 +03:00
Zalim Bashorov
c6aa94d30a
Track lookups in LazyJavaScope ans LazyJavaPackageScope
2015-11-02 18:18:30 +03:00
Zalim Bashorov
47f1975879
Track lookups in DeserializedMemberScope
2015-11-02 18:18:29 +03:00
Zalim Bashorov
a5d8b47083
Refactoring: introduced val location: LocationInfo? in LookupLocation and use it in LookupTracker::record
2015-11-02 18:18:29 +03:00