Commit Graph

25285 Commits

Author SHA1 Message Date
Dmitry Jemerov 7cf4d265bb remove converter from run confguration format which was used in some ancient Kotlin plugin versions 2015-09-04 20:36:52 +02:00
Alexander Udalov d0a4f82203 Fix NO_KOTLIN_REFLECT directive handling in codegen tests
It was disabling reflection on classpath at compile time, but not at runtime
2015-09-04 20:18:59 +03:00
Alexander Udalov 308d24eeb4 Don't throw exceptions on unexpected annotation arguments in class file reader 2015-09-04 19:51:26 +03:00
Dmitry Jemerov 55640ac885 assorted Find Usages fixes: add missing read actions, better cancellation, fix search of componentN() usages for data class primary constructor parameter, remove workaround for usage of IDEA API which is now public 2015-09-04 18:25:36 +02:00
Mikhail Glukhikh ccf78b6fa4 Drop support of annotation(retention, repeatable, mustBeDocumented) format 2015-09-04 19:21:41 +03:00
Mikhail Glukhikh eab288bdd7 annotation() now has no arguments. Syntax migration to Retention / Repeatable / MustBeDocumented combination
Deprecated test for annotation(params) completion deleted. A lot of tests changed.
2015-09-04 19:21:12 +03:00
Denis Zharkov 86f35acf9e Fix testBuiltins result 2015-09-04 18:19:32 +03:00
Denis Zharkov bf38f56261 Temporary workaround to compile bootstrap version
May be reverted soon
2015-09-04 18:19:32 +03:00
Denis Zharkov 4159c83282 Support decapitilized obsolete annotations in resolve
Annotations like `deprecated`, `jvmStatic`, etc. has been renamed to capitilized themselves.
But we're going to support both versions.
It's hard just to leave both versions of classes as their class-files can clash
when compiled on register-independent file system.

So here is solution (temporary hack):
we just wrap JetScopes for package fragments of `kotlin.*`
to make them search both versions of annotations if their names are contained
in our hardcoded set.
2015-09-04 18:19:32 +03:00
Denis Zharkov 31244edec9 Deprecate deprecated in favor of Deprecated 2015-09-04 18:19:31 +03:00
Denis Zharkov 952d45dc8b Deprecate JVM platform annotations in favor of capitilized themselves 2015-09-04 18:19:31 +03:00
Denis Zharkov 5471a1d18a Add kotlin.external annotation and deprecate kotlin.jvm.native 2015-09-04 18:19:31 +03:00
Denis Zharkov 26f9bd7b63 Deprecate some of JVM flag annotations in favor of capitilized themselves 2015-09-04 18:19:31 +03:00
Denis Zharkov 2b76941733 Deprecate throws annotation in favor of Throws 2015-09-04 17:23:26 +03:00
Denis Zharkov 9254b1b461 Deprecate tailRecursive in favor of tailrec 2015-09-04 17:23:26 +03:00
Denis Zharkov bbc192fda5 Deprecate suppress annotation in favor of Suppress 2015-09-04 17:23:25 +03:00
Denis Zharkov 11fed1674e Deprecate extension annotation in favor of Extension 2015-09-04 17:23:25 +03:00
Dmitry Jemerov 3597234165 code review 2015-09-04 15:05:15 +02:00
Dmitry Jemerov 1e37927115 remove old usages search implementation 2015-09-04 15:05:14 +02:00
Dmitry Jemerov 9bd68f458f add missing read action (EA-72578) 2015-09-04 15:05:12 +02:00
Dmitry Jemerov ebce992f20 search for members of companion object in KotlinReferencesSearch is optional 2015-09-04 15:05:11 +02:00
Dmitry Jemerov fcb8b796c4 change expected testdata 2015-09-04 15:05:11 +02:00
Dmitry Jemerov 6462bda61c correct equals() for MyRequestResultProcessor 2015-09-04 15:05:10 +02:00
Dmitry Jemerov c2f2e316af usage search for companion object searches for Java usages of its members 2015-09-04 15:05:09 +02:00
Dmitry Jemerov 256791cf02 fix search for usages of Java overrides 2015-09-04 15:05:08 +02:00
Dmitry Jemerov 0bc9ef5c0b replace UsagesSearch with ReferencesSearch in Find Usages 2015-09-04 15:05:08 +02:00
Dmitry Jemerov f76520c771 use standard references search for searching usages of type parameter 2015-09-04 15:05:07 +02:00
Michael Nedzelsky a59f14eede warning for access to private top-level declarations from another file 2015-09-04 15:35:28 +03:00
Mikhail Glukhikh 778ac7f25c annotation --> Retention / Repeatable / MustBeDocumented: converting from Java to Kotlin and back.
At this very short moment Kotlin supports both annotation(retention, repeatable, mustBeDocumented) and Retention / Repeatable / MustBeDocumented separately.
2015-09-04 12:49:36 +03:00
Mikhail Glukhikh 7dff4ad916 New built-in annotations: Retention, Repeatable, MustBeDocumented 2015-09-04 12:49:28 +03:00
Mikhail Glukhikh 4e3bd10cd3 Java annotation with target "TYPE" is now applicable to Kotlin targets "CLASSIFIER" and "FILE" 2015-09-04 12:49:24 +03:00
Mikhail Glukhikh 699f1e0a70 AnnotationTarget.PACKAGE was dropped 2015-09-04 12:49:14 +03:00
Natalia Ukhorskaya c836060f3a Minor: do less work in debug thread during stepping commands for inline functions 2015-09-04 11:40:23 +03:00
Natalia Ukhorskaya 060b6e6b15 Debugger: support stepping out inline function 2015-09-04 11:40:22 +03:00
Natalia Ukhorskaya ba686c701e Debugger for inline functions: check for available strata (faster than compute source position) 2015-09-04 11:40:21 +03:00
Natalia Ukhorskaya 4980780268 Minor: extract method 2015-09-04 11:40:20 +03:00
Natalia Ukhorskaya 73946050c1 Debugger: support stepping over inline function 2015-09-04 11:40:20 +03:00
Natalia Ukhorskaya ff4d557eac Minor: extract method 2015-09-04 11:40:19 +03:00
nik 0772bbeb4f kotlin builder: print 'label in local history' message to log with 'debug' level and once per build
(https://github.com/JetBrains/kotlin/pull/745)
2015-09-04 11:31:00 +03:00
Alexey Sedunov e4dd30599e Extraction Engine: Forbid extraction of non-singleton qualifiers
#KT-8297 Fixed
2015-09-03 22:06:20 +03:00
Alexey Sedunov 1db7195e94 Extract Function: Fix callee replacement in operation expressions
#KT-8294 Fixed
2015-09-03 22:06:18 +03:00
Alexey Sedunov 1ca3c5e3b8 PSI Unifier: Use convention-based call for array access expressions when comparing elements by resolved calls
#KT-8312 Fixed
2015-09-03 22:06:17 +03:00
Alexey Sedunov d7e79e7f28 Introduce Variable: Forbid inside of type references and 'super' references
#KT-8324 Fixed
2015-09-03 22:06:15 +03:00
Alexey Sedunov fa8fcb53c5 Introduce Variable: Forbid extraction from class initializer (aside of its
body)
 #KT-8329 Fixed
2015-09-03 22:06:13 +03:00
Alexey Sedunov c005fe613f Introduce Variable: Fix extraction of expression from when-entry condition
#KT-8444 Fixed
2015-09-03 22:06:12 +03:00
Alexey Sedunov 3038e2382b Introduce Variable: Forbid in the class body and at the top level
#KT-8735 Fixed
2015-09-03 22:06:11 +03:00
Alexey Sedunov 0f5dff483a Introduce Variable: Proper occurrence search in generated block expression
#KT-7836 Fixed
 #KT-8443 Fixed
 #EA-71411 Fixed
2015-09-03 22:06:09 +03:00
Alexey Sedunov ed090c2b2e Create from Usage: Prefer member declarations over extensions
#KT-9012 Fixed
2015-09-03 22:06:08 +03:00
Alexey Sedunov b2eb53e4b2 Move/Change Package: Package name validation
#EA-70631 Fixed
2015-09-03 22:06:06 +03:00
Alexander Udalov df935f5bb7 Support reflection on lambdas and function expressions
Write a special annotation containing the bytes for the Callable protobuf
message and deserialize it at runtime properly

 #KT-9005 Fixed
2015-09-03 21:43:58 +03:00