Commit Graph

27879 Commits

Author SHA1 Message Date
Valentin Kipyatkov d3f04c6310 Fixed for companion object members 2015-11-10 17:23:11 +03:00
Valentin Kipyatkov d599b77ece Works also for top level fun - why not? 2015-11-10 17:23:11 +03:00
Valentin Kipyatkov 870fc9284b KT-4945 Intention "Introduce static import" (for single symbol)
#KT-4945 Fixed
2015-11-10 17:23:10 +03:00
Valentin Kipyatkov 394b4f7cd4 Removed todo 2015-11-10 17:20:01 +03:00
Valentin Kipyatkov 8946e5f353 Code completion for string templates after simple name + dot 2015-11-10 17:20:01 +03:00
Alexey Sedunov 8389b8e8da Introduce Property: Fix rename of primary occurrence
#KT-9404 Fixed
2015-11-10 16:47:52 +03:00
Alexey Sedunov 29b1c169d5 Refactoring: Get rid of "Jet" in the names of refactoring/quick fixes-related classes 2015-11-10 16:47:50 +03:00
Alexey Sedunov 6ff955b66c Change Signature: Implement improved call processing algorithm
#KT-8953 Fixed
 #KT-9525 Fixed
2015-11-10 16:47:48 +03:00
Alexey Sedunov b334f92748 J2K: JetFunctionCallUsage 2015-11-10 16:47:46 +03:00
Alexey Sedunov ff86042f58 J2K: Rename JetFunctionCallUsage (.java to .kt) 2015-11-10 16:47:45 +03:00
Alexey Sedunov a7e4f73c82 J2K: JetCallableDefinitionUsage 2015-11-10 16:47:44 +03:00
Alexey Sedunov b1ec5c0672 J2K: Rename JetCallableDefinitionUsage (.java to .kt) 2015-11-10 16:47:43 +03:00
Alexey Sedunov 2476393754 Change Signature: Do not move lambda out of parentheses if it neither wasn't out
before nor corresponds to the last parameter after the refactoring
 #KT-9763 Fixed
2015-11-10 16:47:42 +03:00
Alexey Sedunov f5e9d3e58f Refactoring: Simplify JetChangeSignature test 2015-11-10 16:47:41 +03:00
Alexey Sedunov e28a70235a Refactoring: Simplify JetChangeSignature test 2015-11-10 16:47:39 +03:00
Alexey Sedunov f8b8f9e9f9 J2K: JetChangeSignatureTest 2015-11-10 16:47:38 +03:00
Alexey Sedunov 26f81002d0 J2K: Rename JetChangeSignatureTest (.kt to .java) 2015-11-10 16:47:37 +03:00
Alexey Sedunov cae7fc7cf4 Change Signature: Fix file comparison in tests 2015-11-10 16:47:35 +03:00
Dmitry Jemerov de24e70389 update KotlinCoverageExtension according to removal of package facades 2015-11-10 14:45:30 +01:00
Dmitry Jemerov bb5f47fe95 fixed coverage: correctly apply extensions to run command line
#KT-9464 Fixed
2015-11-10 14:45:30 +01:00
Dmitry Jemerov ffccef753d one more place where we missed the search scope when highlighting usages
#KT-8904 Fixed
2015-11-10 14:45:29 +01:00
Dmitry Jemerov 1c05750a48 rename JetBundle references in UI Designer forms to KotlinBundle 2015-11-10 14:45:28 +01:00
Dmitry Jemerov 6ced597a73 scope all notifications to a specific project
#KT-9680 Fixed
2015-11-10 14:45:28 +01:00
Dmitry Jemerov e3f5045343 AddModifierFix is not available when the element is in library code
#KT-9647 Fixed
2015-11-10 14:45:27 +01:00
Dmitry Jemerov 3e3c457326 remove checking for class that no longer exists 2015-11-10 14:45:27 +01:00
Dmitry Jemerov 1d01565262 fix duplicate plugin update notifications: don't queue the next plugin update while the network request from the previous update is still running 2015-11-10 14:45:26 +01:00
Michael Bogdanov a5771c6c1c Fix for KT-9939: java.lang.VerifyError: Bad type on operand stack for Boolean convenience accessor
#KT-9939 Fixed
2015-11-10 16:17:52 +03:00
Pavel V. Talanov de4ea45f20 Do not compute stubs when building DefaultImpls light classes
Do not build stubs when computing inner classes of a light class
This should implicitly fix a deadlock reported in KT-9907 and KT-9811
2015-11-10 14:31:14 +03:00
Pavel V. Talanov bff7ff0c5d Improve heuristic to decide whether we will generate DefaultImpls for interface
This is not accurate, there are some cases when we will generate DefaultImpls class that are not covered:
- Inherited default implementations
- Annotated members

In these cases IDE will report an error when in fact code compiles
What is critical though is to be able to decide whether to build DefaultImpls light classes solely based on psi without triggering stubs calculation
2015-11-10 14:31:11 +03:00
Pavel V. Talanov ad87ec12cd Fast implementation for KtLightClassForExplicitDeclaration#getContainingClass()
Prevent computing stubs for light classes for nested/inner classes when calling completion from java
2015-11-10 14:31:08 +03:00
Pavel V. Talanov 73cb94a3b2 FakeFileForLightClass: implement API correctly 2015-11-10 14:30:59 +03:00
Pavel V. Talanov 39dacbf3c8 Minor: better toString() 2015-11-10 14:30:58 +03:00
Pavel V. Talanov 1dd7e0edba Minor: do not pass psiManager redundantly 2015-11-10 14:30:57 +03:00
Pavel V. Talanov 6dbe8e8a1b Minor: KtLightClassForFacade remove old todos and fix toString 2015-11-10 14:30:55 +03:00
Pavel V. Talanov 2596197fd9 Test data: add package statements to some of the files in KotlinSourceInJavaCompletionTest test data
Since having package statement trigger additional checks that could potentially lead to stub computation
Tests FakeFileForLightClass
2015-11-10 14:30:54 +03:00
Pavel V. Talanov 085d95a5b8 Tests: Introduce LightClassComputationControl to track when stubs for light classes are built
Use it to track when light classes are built in KotlinSourceInJavaCompletionTest
2015-11-10 14:30:53 +03:00
Pavel V. Talanov ec48b54032 Rename KotlinJavaFileStubProvider and remove StubGenerationStrategy class 2015-11-10 14:30:51 +03:00
Pavel V. Talanov f5c4f82971 Fix exception from backend in light classes mode for null passed as annotation argument 2015-11-10 14:30:50 +03:00
Pavel V. Talanov 7e091d0df4 J2K KotlinJavaFileStubProvider: refactor code 2015-11-10 14:30:48 +03:00
Pavel V. Talanov 75b8985468 J2K KotlinJavaFileStubProvider: autoconvert and minor changes 2015-11-10 14:26:29 +03:00
Pavel V. Talanov 6f02c0593b J2K KotlinJavaFileStubProvider: rename file 2015-11-10 14:25:19 +03:00
Nikolay Krasko 23e35ab112 Teach index working with source roots with package prefix
#KT-9167 Fixed
2015-11-10 01:50:09 +03:00
Nikolay Krasko c0739ef53c Add prefix information for Java source root (KT-9167 in progress)
#KT-9167 In Progress
2015-11-10 01:50:08 +03:00
Alexander Udalov 77138ecdb7 Add intrinsic functions to check availability of classes at runtime
Will be used whenever we add a new class to the runtime and use it in the
generated code: we'll now generate a call to one of these functions in <clinit>
of each class file which references the newly added class
2015-11-09 22:24:42 +03:00
Alexander Udalov 596a74d288 Code cleanup in reflection.jvm, generator scripts 2015-11-09 22:24:41 +03:00
Alexander Udalov 75bb15a9fc Do not wrap callable references when a special option is enabled 2015-11-09 22:24:41 +03:00
Alexander Udalov 1576160390 Improve implementation of callable reference superclasses
Previously to use reflection on them, you had to wrap an already created object
with a "Reflection.function" or "Reflection.propertyN" call, which the JVM
back-end was doing. This was not optimal in several senses and current solution
fixes that
2015-11-09 22:24:40 +03:00
Alexander Udalov 7d32524754 Do not fail with type cast when not needed in reflection.jvm 2015-11-09 22:24:40 +03:00
Alexander Udalov 1c889c4e67 Support equals, hashCode, toString for ::-references without reflection 2015-11-09 22:24:39 +03:00
Alexander Udalov baa28de865 Add factory methods to create class references with internal names
Will be used in future versions to support references to mapped mutable
collections
2015-11-09 22:24:39 +03:00