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
Zalim Bashorov
81a288b42c
Add LookupTracker to DeserializationComponents
2015-11-02 18:18:28 +03:00
Zalim Bashorov
f1638bf6fd
Minor: simplify code
2015-11-02 18:18:27 +03:00
Alexey Sedunov
520e90acf1
Minor: Use kotlin.lazy instead of kotlin.Delegates.lazy in KtPsiFactory.CallableBuilder
2015-11-02 15:15:44 +03:00
Alexey Sedunov
5e223927ea
Change Signature: Match calls of different overloads generated due to @JvmOverloads annotation
...
#KT-9020 Fixed
2015-11-02 15:15:43 +03:00
Alexey Sedunov
6b346d9e77
Change Signature: Drop light method filtering as old-style package facades are not supported anymore
2015-11-02 15:15:41 +03:00
Alexey Sedunov
7ce6f58c27
Change Signature: Constraint indices of parameters generated for overloaded versions of function with @JvmOverloads annotation
...
#KT-9762 Fixed
2015-11-02 15:15:40 +03:00
Alexey Sedunov
6a72b51677
Change Signature: Run tests with Kotlin stdlib
2015-11-02 15:15:39 +03:00
Alexey Sedunov
4f09bdfe70
Change Signature: Placed kotlin processor after the java one. Fix processUsage() to pass non-Kotlin usages to further processors (if any)
...
#KT-9219 Fixed
2015-11-02 15:15:38 +03:00
Alexey Sedunov
307778ba79
J2K: JetChangeSignatureUsageProcessor
2015-11-02 15:15:36 +03:00
Alexey Sedunov
dc3a799acb
J2K: Rename JetChangeSignatureUsageProcessor.java to .kt
2015-11-02 15:15:35 +03:00
Alexey Sedunov
1de3faf3f5
Codegen: Fix origin of overloaded methods generated for constructors with @JvmOverloads
...
Find Usages: Add tests for declarations annotated with @JvmOverloads
#KT-8534 Fixed
2015-11-02 15:15:34 +03:00
Alexey Sedunov
b9ed3b91be
Change Signature: Fix descriptor comparison when receiver type is changed
...
#KT-9201 Fixed
2015-11-02 15:15:33 +03:00
Alexey Sedunov
937b8725c6
Change Signature/Rename: Fix processing of named arguments when renaming parameter of extension function
...
#KT-8605 Fixed
2015-11-02 15:15:32 +03:00
Alexey Sedunov
18ed3055ee
Introduce Variable: Allow introduction of variables with 'dynamic' type
...
#KT-8483 Fixed
2015-11-02 15:15:31 +03:00
Alexey Sedunov
6dd58ad197
Inline: Fix inlining of if-expressions into qualified expressions
...
#KT-8008 Fixed
2015-11-02 15:15:29 +03:00
Alexey Sedunov
89132b3f66
Generate Secondary Constructor: Forbid inside of class with explicit primary constructor
2015-11-02 15:15:28 +03:00
Alexey Sedunov
22393d4cd2
Formatter: Use formatter to automatically insert semicolons after the last enum entry when needed
2015-11-02 15:15:26 +03:00
Dmitry Petrov
d060687775
Package vs class conflict in qualifier resolution:
...
- add test for unresolved 'a.a' after 'import a.a';
- added TODO in copy-paste test for 'a.a'
2015-11-02 10:22:50 +03:00
Dmitry Petrov
e1cb13bd90
Qualifier no longer defers "(nested) class vs package" resolution.
...
Consider FQN 'a.b.c'.
If 'a' is a classifier in the current scope,
resolve rest in the corresponding class scope.
Otherwise (if 'a' is a package),
find the maximum possible prefix 'a.b' resolving to a package,
resolve rest in the corresponding package scope.
2015-11-02 10:22:50 +03:00
Alexander Udalov
a950f36fd7
Minor, fix test data
2015-10-31 13:52:04 +03:00
Stanislav Erokhin
25a168d2a4
Minor. Fix potential deadlock
2015-10-31 10:01:08 +03:00
Stanislav Erokhin
77411b2181
Allowed call value with extension function type as simple function type.
2015-10-31 10:01:07 +03:00