Commit Graph

18212 Commits

Author SHA1 Message Date
Alexey Sedunov c0901ec8a6 Improve assertion message 2014-10-22 21:07:07 +04:00
Alexey Sedunov d5e80cae1b Remove unused property 2014-10-22 21:07:06 +04:00
Alexey Sedunov 5b3a4ed7e0 Make JetOperationExpression an inheritor of JetExpression 2014-10-22 21:07:05 +04:00
Alexander Udalov 8c87b242b3 Regenerate tests 2014-10-22 20:49:35 +04:00
Pavel V. Talanov a65f0d3b2a Use PsiElement#getResolveScope() instead of custom helper
Fix extensions and types completion completion in code fragments in context of library source files
Also affects completion in files not in our project (not tested)
2014-10-22 18:56:33 +04:00
Pavel V. Talanov db8d1b58b8 Debugger: log error on evaluating fragment with non-kotlin context 2014-10-22 18:56:32 +04:00
Pavel V. Talanov c3efe1b9b7 Extract attachment helper to a separate file
Improve logic for a nonphysical file
2014-10-22 18:56:32 +04:00
Pavel V. Talanov 5806a66cf9 JetPositionManager: restrict scope of type mapper 2014-10-22 18:56:31 +04:00
Pavel V. Talanov f2018a8764 Minor: extract function 2014-10-22 18:56:31 +04:00
Pavel V. Talanov 11b18c2817 Minor: rename 2014-10-22 18:56:30 +04:00
Pavel V. Talanov 0070377f2a KotlinCacheService: Correctly deal with code fragments in getLazyResolveSession()
Fix completion in code fragments in context of library source
2014-10-22 18:56:30 +04:00
Pavel V. Talanov e88db57214 Test completion for code fragments in context of library source 2014-10-22 18:56:29 +04:00
Pavel V. Talanov a0ad05983a KotlinCacheService: Correctly deal with code fragments in getAnalysisResults()
Fix evaluate expression for breakpoints in library source
2014-10-22 18:56:29 +04:00
Pavel V. Talanov 8d9f17d09d Reconfigure KotlinDebuggerTestCase
It is hiding a problem: evaluate expression fails in libraries
2014-10-22 18:56:28 +04:00
Pavel V. Talanov e9fe66b8e4 Assert that extra files passed to analysis are in the same module 2014-10-22 18:56:28 +04:00
Andrey Breslav d4d909de5f Flexible types supported in Extract Function when used from debugger/evaluate expression 2014-10-22 18:56:27 +04:00
Alexey Sedunov 925177f3d8 Move: Fix rebinding of references to singleton members and Java statics
#KT-6082 Fixed
2014-10-22 18:43:14 +04:00
Alexey Sedunov bc7ae4186b Move: Do not rebind references to the declaration under move 2014-10-22 18:42:59 +04:00
Alexey Sedunov b2588f610a Create From Usage ("set" operation): Support expressions of the form a[i]++ 2014-10-22 18:42:58 +04:00
Alexey Sedunov b5e1fe613c Extract Function: Take duplicates into account when choosing placement of extracted function
#KT-5916 Fixed
2014-10-22 18:42:57 +04:00
Alexey Sedunov c492ffee08 PSI Pattern Matching: Prefer strongly matched children over weakly matched parents 2014-10-22 18:42:55 +04:00
Alexey Sedunov 40da4bd423 Extract Function: Do not allow property extraction if return type is Unit
#KT-6017 Fixed
2014-10-22 18:42:55 +04:00
Alexey Sedunov f5f1aec47b Create From Usage: Add support of get/set functions in property delegates
#KT-5977 Fixed
2014-10-22 18:42:54 +04:00
Alexey Sedunov d4a9b922e5 Create From Usage: Fix template insertion when target container is not empty 2014-10-22 18:42:52 +04:00
Alexey Sedunov 07a2a16232 Type-related quick fixes: Render types using fully qualified names 2014-10-22 18:42:51 +04:00
Michael Bogdanov b212fbd0b5 Remove empty try catch nodes from inlined code 2014-10-22 18:31:11 +04:00
Nikolay Krasko f50d8c0731 Add explicit type to prevent compile error 2014-10-22 18:18:10 +04:00
Nikolay Krasko 1a7fd756e5 Check that removing open brace is out-of-block change 2014-10-22 18:18:10 +04:00
Nikolay Krasko 798a6bf689 Temp workaround: force out-of-block modification for properties with nullable types
Initializers for properties with nullable types are analyzed with binding context common for all declarations.
This can cause invalid elements are left in the cache guarded with out-of-block  modification tracker. This workaround forces increment for such cases.
2014-10-22 18:18:09 +04:00
Nikolay Krasko 5cdd5f580d Rewrite out-of-block modifier increment algorithm
1. Search the top-level function or property (only they can produce blocks that won't affect other declarations)
    2. Check if current position is hidden by this declaration

    O^2 behaviour is removed
2014-10-22 18:18:09 +04:00
Nikolay Krasko 40bd9fbdf3 Refactoring: move functions 2014-10-22 18:18:08 +04:00
Nikolay Krasko 0862eead00 Rename file: JetCodeBlockModificationListener -> KotlinCodeBlockModificationListener 2014-10-22 18:18:07 +04:00
Nikolay Krasko 474bc536d6 Rewrite to Kotlin: JetCodeBlockModificationListener 2014-10-22 18:18:07 +04:00
Nikolay Krasko 7b3d96e9e9 Rewrite to Kotlin: rename file 2014-10-22 18:18:06 +04:00
Nikolay Krasko 6b605ec4f9 Rewrite to kotlin: JetModifiableBlockHelper 2014-10-22 18:18:05 +04:00
Nikolay Krasko 565612bc19 Take all responsibility for updating trackers, stop delegating it to Java-plugin code 2014-10-22 18:18:05 +04:00
Nikolay Krasko a988415e22 Add file text to assert message 2014-10-22 18:18:04 +04:00
Nikolay Krasko 0844a11549 Make out-of-block test functional 2014-10-22 18:18:03 +04:00
Nikolay Krasko b58c5f7df4 Don't spam warning when file is empty
IDEA produces such files when class file had been removed from jar but indexes haven't been not fully reconstructed yet.
2014-10-22 18:18:03 +04:00
Natalia Ukhorskaya 40bb8968cc Run J2KConverter tests in webDemo mode 2014-10-22 17:30:48 +04:00
Natalia Ukhorskaya 9e19546ba8 J2K: add default implementation for NullableNotNullManager 2014-10-22 17:30:47 +04:00
Valentin Kipyatkov 82d5e044c7 Corrected test 2014-10-22 17:08:43 +04:00
Valentin Kipyatkov 34d4477a12 Dropped test that cannot work anymore 2014-10-22 17:05:49 +04:00
Valentin Kipyatkov 23c5ad78b5 Regenerated tests 2014-10-22 15:51:28 +04:00
Valentin Kipyatkov dcfeb5829a Minor 2014-10-22 15:49:13 +04:00
Valentin Kipyatkov 0384e3d323 No filtering by visibility filter twice 2014-10-22 15:49:13 +04:00
Valentin Kipyatkov 1f548875c6 Hopefully fixed KT-4339 Auto-import suggestion doesn't go away for a long time
#KT-4339 Fixed
2014-10-22 15:49:13 +04:00
Valentin Kipyatkov 762dc31e98 More consistent API in psi 2014-10-22 15:49:13 +04:00
Valentin Kipyatkov 4fd417d419 Fixing code completion in function literal parameters
#KT-4047 Fixed
 #KT-5877 Fixed
2014-10-22 15:49:12 +04:00
Valentin Kipyatkov 59b66e7579 Fixed KT-6074 Package facade classes are shown in completion in kotlin files
#KT-6074 Fixed
2014-10-22 15:48:53 +04:00