Valentin Kipyatkov
d60145d3e8
Optimize imports: references via aliases are treated correctly
2015-02-19 11:07:03 +03:00
Valentin Kipyatkov
8c034d4ac7
New optimize imports algorithm supports *-imports code style
2015-02-19 11:07:02 +03:00
Valentin Kipyatkov
2e3ed6b66f
Refactored AbstractOptimizeImportsTest to inherit from AbstractImportsTest
2015-02-19 11:07:02 +03:00
Valentin Kipyatkov
03f7c265d7
Initial implementation of new optimize imports algorithm
2015-02-19 11:07:02 +03:00
Valentin Kipyatkov
63182a53c6
Fixed getFileTopLevelScope implementation
2015-02-19 11:07:02 +03:00
Valentin Kipyatkov
0a363fc371
Import is placed in some specific order on adding
2015-02-19 11:07:02 +03:00
Valentin Kipyatkov
371e0baed1
Dropped methods not used anymore
2015-02-19 11:07:02 +03:00
Valentin Kipyatkov
7ad1933695
Dropped obsolete tests
2015-02-19 11:07:01 +03:00
Valentin Kipyatkov
20cf100714
Shorten references inserts imports for global functions and properties too
2015-02-19 11:07:01 +03:00
Michael Bogdanov
664e2781e8
Enable inline in bytecode toolwindow by default
2015-02-19 10:32:04 +03:00
Michael Bogdanov
758c147835
Analyze inlined declarations in bytecode toolwindow
2015-02-19 10:32:00 +03:00
Pavel V. Talanov
5c9554e703
Minor: remove redundant class object
2015-02-18 19:34:02 +03:00
Pavel V. Talanov
d6a942a574
Remove all deprecated OBJECT$ usages from project code
2015-02-18 19:33:56 +03:00
Evgeny Gerashchenko
48a6fb37f9
Worked around private method. There should be API available, anyway.
2015-02-18 18:53:37 +03:00
Alexey Sedunov
f1b3bb6ae7
Join Lines: Fix test data since IDEA now converts single-line comments to block ones when joining lines
2015-02-18 18:53:36 +03:00
Zalim Bashorov
2a593fc437
IDEA: fixed breakpoints in JavaScript debugger.
2015-02-18 18:53:34 +03:00
Nikolay Krasko
fd616a3c8d
Update to IDEA 140.2493.5
2015-02-18 18:53:21 +03:00
Evgeny Gerashchenko
460a77275a
Added tests with conversion between Java and Kotlin and moving class.
2015-02-18 18:51:59 +03:00
Nikolay Krasko
07d58b55eb
Synchronize KotlinJavaPsiFacade with JavaPsiFacadeImpl
2015-02-18 18:51:58 +03:00
Evgeny Gerashchenko
f870388962
Fixed compilation error for IDEA 14.1+ (140 branch)
2015-02-18 18:51:58 +03:00
Alexander Udalov
042230fefc
Using factory method instead of deprecated constructor.
2015-02-18 18:51:57 +03:00
Nikolay Krasko
45a3b47664
Fix compilation once again
2015-02-18 18:51:56 +03:00
Nikolay Krasko
440cc20ed9
Add expected action
2015-02-18 18:51:56 +03:00
Nikolay Krasko
20b7a55bf2
Add overrides in order to fix compilation errors
2015-02-18 18:51:55 +03:00
Nikolay Krasko
a49a206de3
Get containing file from original method
2015-02-18 18:51:54 +03:00
Nikolay Krasko
3ec591a6d6
Manually register extension points
2015-02-18 18:51:54 +03:00
Nikolay Krasko
5d3d446ea4
Now PsiElementFinderImpl is registered via extension but it hadn't been added to JavaCoreProjectEnvironment
2015-02-18 18:51:53 +03:00
Alexey Kudravtsev
28b7d71ab7
Registering extension points manually in JetCoreEnvironment. They are not registered by IDEA's core environment code anymore.
2015-02-18 18:51:52 +03:00
Natalia Ukhorskaya
43249e928c
Fix tests with annotations: enum constants are now resolved as constants in JavaConstantExpressionEvaluator
2015-02-18 18:51:52 +03:00
Natalia Ukhorskaya
601a33f772
Fix stepping test's testData
2015-02-18 18:51:51 +03:00
Evgeny Gerashchenko
f9f75f1155
Fixed compilation error (IDEA API changed).
2015-02-18 18:51:50 +03:00
Evgeny Gerashchenko
f09fd923f3
Fixed test data according to fixed bug in IDEA JPS.
2015-02-18 18:51:50 +03:00
Evgeny Gerashchenko
501cb08154
Fixed compilation (IDEA API changed).
2015-02-18 18:51:49 +03:00
Evgeny Gerashchenko
1c1ead0471
Minor. Fixed case of test data file.
2015-02-18 14:26:20 +03:00
Evgeny Gerashchenko
a8179a497e
KT-5146 "Remove explicit type arguments" should highlight type arguments as unused (not as warning)
...
#KT-5146 fixed
2015-02-18 13:37:36 +03:00
Evgeny Gerashchenko
b1840ebd99
Suppressing unused parameter annotation when function is entry point.
2015-02-18 13:37:36 +03:00
Evgeny Gerashchenko
943131b7b0
Added button to configure annotations for methods which shouldn't be marked as unused.
2015-02-18 13:37:35 +03:00
Evgeny Gerashchenko
4ddaa5cdda
Filtering out non-existent directories from generated classpath. The check is so simple, because there may be, e.g. non-existent production output directory for just created module.
...
#KT-6703 fixed
2015-02-18 13:37:35 +03:00
Evgeny Gerashchenko
7e9ea23ce0
Minor. Clarified property name.
2015-02-18 13:37:34 +03:00
Evgeny Gerashchenko
d1a2fd9c66
KT-6586 accessing Kotlin class static class object variable's value from Java does not properly update between compiles
...
#KT-6586 fixed
2015-02-18 13:37:34 +03:00
Alexander Udalov
15a3496dbd
Gradle plugin tests: change kotlin-stdlib dependency scope to compile
...
This way is advertised in the docs anyway. Otherwise J+K projects do not
compile, see 640adec for the explanation
2015-02-18 11:43:50 +03:00
Andrey Breslav
2dcae465f7
Work around the redirect problem on SourceForge
2015-02-17 19:28:11 +03:00
Andrey Breslav
ab93b530f1
Don't use annotations after nullability was forced upon a platform type
...
#KT-6762 Fixed
#KT-6763 Fixed
2015-02-17 18:44:46 +03:00
Alexander Udalov
0217121814
Revert "Fixed compilation. Some class files generated by kotlinc may have no annotation (that should be fixed later)."
...
This reverts commit 4b6112d380 .
This workaround is not needed anymore after the fix in e705ff2
2015-02-17 15:32:46 +03:00
Alexander Udalov
a960d2d785
Fix "No descriptor for enum entry" exception
...
EA-52557, EA-64887
2015-02-17 15:31:45 +03:00
Alexander Udalov
640adecde6
Fix KotlinJpsBuildTest, run J+K tests with runtime
...
Otherwise javac is not able to find class KotlinClass$Kind, which is used in
annotation argument and for some reason this leads to an exception (in javac)
which gets swallowed and unresolved reference is reported in Java code.
java:INFO:com.sun.tools.javac.code.Symbol$CompletionFailure: class file for
kotlin.jvm.internal.KotlinClass$Kind not found
java:INFO:Errors occurred while compiling module 'm1'
2015-02-16 21:46:23 +03:00
Alexander Udalov
e705ff2517
Write KotlinSyntheticClass annotation on when-by-enum mapping classes
2015-02-16 21:46:22 +03:00
Alexander Udalov
6ce8d6bd2e
Serialize descriptors for local/anonymous classes on JVM
...
Reflection needs this information to work for local classes and anonymous
objects
2015-02-16 21:46:21 +03:00
Alexander Udalov
98b554d995
Fix path to runtime when building kotlin-ant.jar
...
${kotlin-home}/lib/kotlin-runtime.jar is the newly built runtime, which is not
compiled yet when invoking a clean "ant dist"
2015-02-16 20:19:54 +03:00
Alexander Udalov
0d05fca838
Support serialization/deserialization of local classes
...
Most of these changes are aimed to support and correctly transform ClassId for
local classes, no actual bytes are written or read at the moment (see next
commits). See the comment on ClassId for clarification.
A hack in DescriptorSerializer which erased anonymous types to Any (which had
been breaking the consistency between descriptors resolved from sources and
from serialized information) is now gone
2015-02-16 20:19:54 +03:00