Alexey Tsvetkov
ef4b3c99f4
Minor: remove default values for markChunk parameters
2015-12-10 18:03:20 +03:00
Alexey Tsvetkov
6a74b1c8bf
Rebuild only kotlin when cache version is changed
2015-12-10 18:03:17 +03:00
Alexey Tsvetkov
49778d2fb6
Minor: move buildFinished closer to buildStarted
2015-12-10 18:03:13 +03:00
Natalia Ukhorskaya
d10c3ffbe4
Fix exception in EE for inline function invocation
...
#KT-10217 Fixed
2015-12-10 14:42:00 +03:00
Natalia Ukhorskaya
58d62fde4d
Add test for smart step into in method with default args
...
#KT-4803 In Progress
2015-12-10 14:41:58 +03:00
Natalia Ukhorskaya
1dbe560734
Run Code Clean up for org.jetbrains.kotlin.idea.debugger
2015-12-10 14:41:56 +03:00
Natalia Ukhorskaya
1ca6c695e6
Remove println() from debugger testData
2015-12-10 14:41:53 +03:00
Natalia Ukhorskaya
9b8e5c5684
Refactor KotlinDebuggerTestCase to avoid StubIndexReindex between test invocation
2015-12-10 14:41:51 +03:00
Natalia Ukhorskaya
42119b311d
Skip whitespaces as context elements of codeFragmnets
...
#KT-10171 Fixed
2015-12-10 14:41:49 +03:00
Natalia Ukhorskaya
49e484d796
Do not throw exception analyzing imports in KtCodeFragments
2015-12-10 14:41:47 +03:00
Natalia Ukhorskaya
08c29b7325
Fix step out from inline function literal placed at one line
...
#KT-10187 Fixed
2015-12-10 13:11:40 +03:00
Natalia Ukhorskaya
3b3dbbab04
Evaluate expression for variable of function type
...
#KT-10199 Fixed
2015-12-10 13:11:39 +03:00
Natalia Ukhorskaya
2bc2d81486
Debugger: correctly box parameter types in case of generics
...
#KT-10180 Fixed
2015-12-10 13:11:39 +03:00
Pavel V. Talanov
280e00981f
Load java: load annotations on enum entries
2015-12-10 11:12:23 +03:00
Pavel V. Talanov
fb19552920
Mark enum entries that are deprecated in Kotlin as deprecated in bytecode
2015-12-10 11:12:22 +03:00
Zalim Bashorov
5bf8b4d946
Allow to use "static" part of class in own constructors by short name, including in primary constructor
2015-12-09 21:42:32 +03:00
Mikhail Glukhikh
f319b1b93a
Sealed classes are not taken into account in live templates
2015-12-09 19:27:50 +03:00
Mikhail Glukhikh
9a4eb2a368
Refactoring: ClassDescriptor.isFinal, no more Modality.isOverridable
2015-12-09 19:27:47 +03:00
Mikhail Glukhikh
fb406bfc24
Refactoring: CallableMemberDescriptor.isOverridable
2015-12-09 19:27:04 +03:00
Mikhail Glukhikh
c73f01927a
'sealed' is now not 'final' by default + related code changes #KT-10266 Fixed
2015-12-09 19:19:04 +03:00
Mikhail Glukhikh
5b72afe8a0
J2K: Modality.kt
2015-12-09 19:19:00 +03:00
Mikhail Glukhikh
d80206376a
Modality.java --> Modality.kt
2015-12-09 19:18:56 +03:00
Nikolay Krasko
8e71006e86
Add test JDK 8 module to be able reparse IDEA step
2015-12-09 19:16:37 +03:00
Pavel V. Talanov
da02ed9057
GroupingMessageCollector: ensure that messages without location are reported first
...
Should fix CompileKotlinAgainstCustomBinariesTest.testIncompleteHierarchyInJava(Kotlin) tests
2015-12-09 18:54:15 +03:00
Pavel V. Talanov
2e971b13aa
KotlinGoToTest: test go to for builtIn classes and functions
2015-12-09 18:51:32 +03:00
Pavel V. Talanov
7e6bed7ad8
Decompiled text: should always render all modifiers even if we don't feel like it
2015-12-09 18:51:31 +03:00
Pavel V. Talanov
fee19ad9de
CallableClsStubBuilder: correctly decide whether callable is extension
2015-12-09 18:51:30 +03:00
Pavel V. Talanov
deb6410a5c
Add test for builtIn stub builder and decompiler
...
These test are by no means exhaustive, the correctness of the subsystem relies on it sharing code with well-tested js-decompilation
2015-12-09 18:51:30 +03:00
Pavel V. Talanov
5cc04e41fe
Enable keyword highlighting in .kotlin_class, .kotlin_package files
2015-12-09 18:51:29 +03:00
Pavel V. Talanov
c40d6af1e5
Decompile builtins (kotlin_class and kotlin_package files)
...
The main purpose of this is to be able to index builtin declarations and enable go to symbol/class functionality in ide
Also it makes sense to show builtin classes (Any, Int ...) as classes when browsing kotlin-runtime.jar
Refactor decompiler code to eliminate existing and potential duplication
Share the code between js (kjsm) decompilation and builtin decompilation heavily
2015-12-09 18:51:28 +03:00
Pavel V. Talanov
6164566cad
Extract duplicate logic between javascript and builtins serialization/deserialization
2015-12-09 18:51:27 +03:00
Pavel V. Talanov
34c3c04ead
Implement NameResolverImpl#getPackageFqName(index)
2015-12-09 18:51:26 +03:00
Pavel V. Talanov
5846769b43
J2K NameResolverImpl: convert
2015-12-09 18:51:26 +03:00
Pavel V. Talanov
9ff6be6f0f
J2K NameResolverImpl: rename file
2015-12-09 18:51:25 +03:00
Pavel V. Talanov
e458534c93
Write package_fq_name to for Package message when serializing builtins
2015-12-09 18:51:24 +03:00
Pavel V. Talanov
f05de6d6eb
Add package_fq_name field extension to builtins.proto
2015-12-09 18:51:24 +03:00
Pavel V. Talanov
9a2442bba6
Decompiler, refactor: reduce the number of classes needed to define a decompiler
2015-12-09 18:51:23 +03:00
Pavel V. Talanov
dc34d4fc31
Decompiler, minor: fix some strange code
2015-12-09 18:51:22 +03:00
Pavel V. Talanov
136e8d9d02
Refactor: repackage decompiler code and explicitly extract class file and js metafile parts
2015-12-09 18:51:21 +03:00
Dmitry Petrov
70c200d265
Fix diagnostic messages for properties.
...
Fix IDE tests.
Update quick fixes in IDE
(TODO: review new inheritance-related diagnostics with regards to quick fixes)
2015-12-09 17:43:48 +03:00
Dmitry Petrov
94bea54db3
Change "most specific return type" definition for fake overrides.
...
Given overridden descriptors D = d[i].
1. Find D*, subset of D:
returnType(d* from D*) <: returnType(d) for each d from D.
Always prefer var to val.
2. Prefer non-flexible return type to flexible.
Check for var/val overrides properly
(NB: this will report PROPERTY_TYPE_MISMATCH_ON_OVERRIDE
for all properties, not just overrides involving vars as it was before).
2015-12-09 17:43:48 +03:00
Dmitry Petrov
594039ac42
Delegation and overrides:
...
- Tests.
- No need for a separate diagnostic message regarding
return/property type conflict on override by delegation:
it is always a conflict of inherited signatures.
2015-12-09 17:43:48 +03:00
Dmitry Petrov
84824b1024
Fix KT-10194: skip incorrect delegates.
2015-12-09 17:43:48 +03:00
Dmitry Petrov
ef72c594c4
KT-1934 & KT-10197:
...
Naive approximation for fake overriding signature:
use upper bound for flexible types.
Check delegation errors.
2015-12-09 17:43:47 +03:00
Dmitry Petrov
6e2d42daf9
J2K: DelegationResolver.kt: convert to Kotlin
2015-12-09 17:43:47 +03:00
Dmitry Petrov
8f5df45edc
J2K: DelegationResolver.kt
2015-12-09 17:43:47 +03:00
Dmitry Petrov
2fcb7e532b
KT-1934: Fixing synthetic accessors hierarchy
2015-12-09 17:43:47 +03:00
Dmitry Petrov
135c30323b
KT-1934 Check inherited signatures for compatibility
...
Overridden signatures should have compatible return types
(equal types for 'var').
Only relevant overrides should be taken into account.
Refactor inherited signatures check,
introduce a strategy interface for problem reporting.
2015-12-09 17:43:47 +03:00
Dmitry Jemerov
18e343d405
Merge pull request #795 from mcgee/KT-10124
...
#KT-10124 Fixed
2015-12-09 15:28:31 +01:00
Dmitry Jemerov
863e32c5cd
Merge pull request #791 from mcgee/KT-9938
...
#KT-9938 Fixed
2015-12-09 15:17:31 +01:00