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
Dmitry Jemerov
e64a270d1a
more renames to get rid of "Jet" in class and method names
2015-11-09 19:07:11 +01:00
Michael Nedzelsky
a3241637ce
#fix KT-9881 Incorrect error re: internal visibility
...
#KT-9881 Fixed
2015-11-09 17:41:00 +03:00
Mikhail Glukhikh
b468d5b0c6
No smart casts to Nothing?
2015-11-09 16:36:37 +03:00
Mikhail Glukhikh
2d9fbf5696
Always null detection
2015-11-09 16:36:34 +03:00
Dmitry Jemerov
ed1c94d0f9
remove incorrect and unnecessary TextConsoleBuilder initialization
2015-11-09 14:16:31 +01:00
Michael Bogdanov
7147c84396
Fix for KT-9897: Cannot pop operand off an empty stack" with -= on ArrayList element
...
#KT-9897 Fixed
2015-11-09 16:17:24 +03:00
Valentin Kipyatkov
4943a9fb35
Minor changes on code review
2015-11-09 15:45:38 +03:00
Valentin Kipyatkov
9968345845
Renames
2015-11-09 15:37:48 +03:00
Valentin Kipyatkov
d44b1eeb7e
KT-9884 Completion in Evaluate Expression crashes
...
#KT-9884 Fixed
2015-11-09 15:37:48 +03:00
Valentin Kipyatkov
ac4cf540a4
Removed wrong TODO
2015-11-09 15:37:48 +03:00
Valentin Kipyatkov
80a1d94515
Non-imported top-level functions completion does not require second press
2015-11-09 15:37:48 +03:00
Valentin Kipyatkov
4c5d5ed18f
Do not show "assertFailsWith" in any smart completion
2015-11-09 15:37:47 +03:00
Valentin Kipyatkov
63b5966212
Top-level callables are added one by one
2015-11-09 15:37:47 +03:00
Valentin Kipyatkov
5d56339aba
More efficient getting of top-level callables
2015-11-09 15:37:47 +03:00
Valentin Kipyatkov
ae9482a36c
Add static members into the list one by one
2015-11-09 15:37:47 +03:00
Valentin Kipyatkov
c38039144f
Added checkCanceled
2015-11-09 15:37:47 +03:00
Valentin Kipyatkov
10e8455279
More safe
2015-11-09 15:37:46 +03:00
Valentin Kipyatkov
4da6a3cd50
No members from anonymous objects etc
2015-11-09 15:37:46 +03:00
Valentin Kipyatkov
97ca5f0389
Refactored
2015-11-09 15:37:46 +03:00
Valentin Kipyatkov
0ac60701fc
Reused code
2015-11-09 15:37:46 +03:00
Valentin Kipyatkov
0c93ff5f1d
Moved method
2015-11-09 15:37:46 +03:00
Valentin Kipyatkov
55612757cf
More correct API
2015-11-09 15:37:46 +03:00
Valentin Kipyatkov
3cda866af0
Static members completion works in smart completion + fixed incorrect finding of java method descriptor that caused duplicated items
2015-11-09 15:37:45 +03:00
Valentin Kipyatkov
1283f5f4e1
Refactoring in smart completion
2015-11-09 15:37:45 +03:00
Valentin Kipyatkov
576b79de0a
Removed unused parameter
2015-11-09 15:37:45 +03:00
Valentin Kipyatkov
4a182ac6e2
Fixing class names after rebase
2015-11-09 15:37:45 +03:00
Valentin Kipyatkov
7198b897ab
Ordering of static members in completion
2015-11-09 15:37:45 +03:00
Valentin Kipyatkov
3bd508ca84
Static members completion includes SAM-adapters
2015-11-09 15:37:44 +03:00
Valentin Kipyatkov
ea804ed76e
Makes no sense to return method names from PsiShortNamesCache if methods by name are not returned
2015-11-09 15:37:44 +03:00
Valentin Kipyatkov
06812aed11
Better completion for static members: special behavior in case of imports from same class exist
2015-11-09 15:37:44 +03:00
Valentin Kipyatkov
ca437e51c4
Initial implementation of KT-8209 Support static member completion without writing the class name
2015-11-09 15:37:44 +03:00
Nikolay Krasko
7be9699263
Make it possible to generate getTestsRoot() method with the test directory
...
Method can be used in setUp()
2015-11-07 01:27:35 +03:00
Nikolay Krasko
178aba54dd
Test it's safe to call PsiElement methods on Kotlin light elements
2015-11-07 01:27:34 +03:00