Commit Graph

36426 Commits

Author SHA1 Message Date
Alexander Udalov 69bfc5b4bb Write multifile part->facade mapping to .kotlin_module 2017-01-11 13:15:57 +03:00
Alexander Udalov 6c1cadf273 Refactor PackageParts: add explicit mutating methods 2017-01-11 13:15:57 +03:00
Alexander Udalov db3fa8eaca Refactor JvmPackagePartProvider
Make code more imperative than functional, preserve the information about the
original root where the module mapping was discovered
2017-01-11 13:15:56 +03:00
Alexander Udalov 0dbb02ec6a Fix generic signature for KFunctionN types on JVM
#KT-15473 Fixed
2017-01-11 13:15:24 +03:00
Svyatoslav Scherbina bf3b5281a9 ir.tree: add trivial building utils 2017-01-11 14:54:13 +07:00
Svyatoslav Scherbina d0a166ffec psi2ir: move IR building utils to ir.tree 2017-01-11 14:54:12 +07:00
Svyatoslav Scherbina feb0dee563 psi2ir: untie IR building utils from PSI 2017-01-11 14:54:11 +07:00
Svyatoslav Scherbina 4c3fb9a21f psi2ir: improve backing field usage generation
Also update corresponding tests data.
2017-01-11 14:54:10 +07:00
Svyatoslav Scherbina 0189faec2e ir.tree: fix IrTry.transformChildren:
transform `finallyExpression` too.
2017-01-11 14:54:09 +07:00
Dmitry Petrov 7a8ec86cb9 KT-11398
- turn INACCESSIBLE_TYPE into a warning;
- improve diagnostic message for INACCESSIBLE_TYPE.
2017-01-11 10:23:01 +03:00
Nikolay Krasko 80af30fb4f Always remove extension from script file
Fix for 35631dc2df refactoring.
Extension was actually always removed before refactoring.
2017-01-11 00:39:16 +03:00
Alexey Sedunov e89ffbf916 Convert Property to Function: Wrap usage search in read action (EA-1280778) 2017-01-10 21:16:14 +03:00
Alexey Sedunov 23ec8f0813 Quick Fixes: Implement "Create label" quick fix
#KT-8855 Fixed
2017-01-10 21:16:13 +03:00
Alexey Sedunov 534a773816 Intentions: Implement intention which converts object literal to class
#KT-15056 Fixed
2017-01-10 21:16:12 +03:00
Alexey Sedunov 7def536751 Project View: Fix presentation of Kotlin files and their members when @JvmName having the same name as the file itself 2017-01-10 21:16:11 +03:00
Alexey Sedunov 612dffb893 Highlighting: Add line markers for suspend function calls in coroutines
#KT-14689 Fixed
2017-01-10 21:16:10 +03:00
Alexey Sedunov 9e79293a12 Quick Fixes: Implement quickfix which enables/disables coroutine support in module or project 2017-01-10 21:16:09 +03:00
Alexey Sedunov 6b57a3e338 Intentions: Implement intention which rename file according to the top-level class name
#KT-15068 Fixed
2017-01-10 21:16:08 +03:00
Alexey Sedunov c7aefa2842 Quick Fixes: Implement quick-fix for increasing module language level to enable unsupported language features
#KT-15205 Fixed
2017-01-10 21:16:07 +03:00
Sergey Mashkov e647f56124 Maven: multiplatform integration test 2017-01-10 19:55:05 +03:00
Sergey Mashkov c7ed7cc6e4 Maven: add source roots automatically from dependency multiplatform modules (with metadata goal) 2017-01-10 19:36:45 +03:00
Sergey Mashkov 3ccb7416f4 Maven: kotlin facet platform detection 2017-01-10 19:36:44 +03:00
Sergey Mashkov 9490ed22d5 Maven: metadata mojo initial implementation 2017-01-10 19:36:44 +03:00
Sergey Mashkov 60f95e078f Maven: metadata mojo initial implementation 2017-01-10 19:36:43 +03:00
Mikhail Glukhikh b81268cca1 Control-flow analysis: do-while scope is ended after condition but before jump #KT-15334 Fixed 2017-01-10 17:57:43 +03:00
Simon Ogorodnik b7a5ff456f Reformatted testData 2017-01-10 16:20:58 +03:00
Simon Ogorodnik 347c6e100b Fix for KT-14736 J2K Incorrect conversion of back ticks in javadoc {@code} tag
#KT-14736 fixed
2017-01-10 16:20:58 +03:00
Simon Ogorodnik 41aaaa6a0d Fix for KT-6790 J2K: Static import of Map.Entry is lost during conversion
#KT-6790 fixed
2017-01-10 16:20:58 +03:00
Simon Ogorodnik 73ea0e8460 Fix for KT-15027 J2K: Annotations are set on functions, but not on property accessors
#KT-15027 fixed
2017-01-10 16:20:58 +03:00
Mikhael Bogdanov 5071baf970 Support increment and '*=' operations on inline properties 2017-01-10 14:09:42 +01:00
Mikhael Bogdanov 043f3199c7 Fix for KT-15446: Property reference on an instance of subclass causes java.lang.VerifyError
#KT-15446 Fixed
2017-01-10 14:09:42 +01:00
Mikhael Bogdanov ff734ce9ea 'isInlineOnlyOrReified' renamed to 'isInlineOnlyOrReifiable' 2017-01-10 14:09:41 +01:00
Mikhael Bogdanov dc4cdbf82d Fix for KT-14162: Support @InlineOnly on inline properties
#KT-14162 Fixed
2017-01-10 14:09:41 +01:00
Simon Ogorodnik e920166879 Fix for KT-13067 Syntax colouring doesn't work for KDoc tags
#KT-13067 fixed
2017-01-10 16:04:31 +03:00
Simon Ogorodnik d0cf1b0c5f Fix for KT-14819 Quick documentation for special Enum functions doesn't work
#KT-14819 fixed
2017-01-10 16:04:18 +03:00
Simon Ogorodnik fa01a4efad Fix for KT-12872 Don't show "defined in <very long qualifier here>" in quick doc for local variables
#KT-12872 fixed
2017-01-10 16:03:30 +03:00
Mikhail Zarechenskiy d89afc419d Fix tests because of automatic optimize imports 2017-01-10 14:28:31 +03:00
Mikhail Zarechenskiy 101ad11db5 Regenerate all automatically-generated data 2017-01-10 14:24:01 +03:00
Alexander Udalov 32d2faf3d1 Fix KAnnotatedElement.findAnnotation when no annotation is found
#KT-15540 Fixed
2017-01-10 12:23:26 +03:00
Alexander Udalov f4200e02bc Do not mark class files as pre-release if compiled with -language-version 1.0
#KT-15584 Fixed
2017-01-10 12:23:26 +03:00
Alexander Udalov 74880a7e8e Do not fail on SinceKotlinInfo table in incremental binaries 2017-01-10 12:23:26 +03:00
Alexander Udalov 7107ee2eeb Write/load subclasses of sealed classes in metadata
Note that now DeserializedClassDescriptor.getSealedSubclasses works a lot
faster than before, for all newly compiled sealed classes except empty ones. It
may be optimized further if we look at the metadata version of the file the
class was loaded from, however it's not easy currently because
DeserializedClassDescriptor is declared in common (non-JVM) code and has no
direct access to the binary version information.

This will also allow to add a reflection API to get subclasses of a sealed
class

 #KT-12795 Fixed
2017-01-10 12:23:26 +03:00
Alexander Udalov 75a4958144 Introduce ClassDescriptor.getSealedSubclasses
#KT-12795 In Progress
2017-01-10 12:23:25 +03:00
Alexander Udalov 164c72e877 Prefer package with class files to class with the same name
See comments in JvmDependenciesIndexImpl and in the test

 #KT-15464 Fixed
2017-01-10 12:23:25 +03:00
Mikhail Zarechenskiy 6cccad9647 Update year in license and regenerate tests 2017-01-10 12:01:17 +03:00
Mikhail Zarechenskiy cff0865c87 Fix error type for implicit invoke with function literal argument
#KT-11401 Fixed
2017-01-10 11:44:51 +03:00
Nikolay Krasko 9ff8192aff Name script run configuration after script file name
This makes more evident difference between script and non-script run configurations.
2017-01-09 19:58:03 +03:00
Nikolay Krasko 139ec8c920 Get script dependencies from script manager 2017-01-09 19:58:01 +03:00
Nikolay Krasko 9f94caeb39 Resolve standard library calls in Kotlin scripts (KT-15383)
#KT-15383 Fixed
2017-01-09 19:58:00 +03:00
Nikolay Krasko 9f11564708 Deprecate version field and preserve order of script providers in extension point
It's impossible to guess the order of the final list when there're
providers from different vendors as they might have different versioning systems.

com.intellij.openapi.extensions.LoadingOrder constants can be used by plugins authors to
resolve priority issues.
2017-01-09 19:57:58 +03:00