Commit Graph

2244 Commits

Author SHA1 Message Date
Pavel V. Talanov e8aee5cddf Sorting descriptors in DecompiledTextFactory is redundant 2014-11-14 17:09:10 +03:00
Pavel V. Talanov 8016766b23 Extension/non-Extension members are deserialized in correct order 2014-11-14 16:18:33 +03:00
Pavel V. Talanov 028e9105af Add test for enum class with inner classes 2014-11-14 16:18:32 +03:00
Pavel V. Talanov eba5843468 Test order of enum entries in deserialized classes 2014-11-14 16:18:28 +03:00
Pavel V. Talanov 01cf60b834 Separate tests for ordering of deserialized members 2014-11-14 16:18:27 +03:00
Pavel V. Talanov 2533887253 Refactor: Make ValidationVisitor stateful so it's possible to inherit from it 2014-11-14 16:18:24 +03:00
Alexey Sedunov b09684024b Generate light classes for Kotlin inner classes
#KT-6237 Fixed
2014-11-13 17:27:33 +03:00
Alexey Sedunov da915aee7e Call Hierarchy: Do not interrupt caller hierarchy on non-local caller of local root declaration
#KT-6183 Fixed
2014-11-13 17:27:31 +03:00
Alexey Sedunov 558e038ba5 Extract Function: Replace non-denotable parameter types with their super types when possible
#KT-6187 Fixed
2014-11-13 17:27:29 +03:00
Alexey Sedunov 94efdeb3d5 Quick-fix Test: Fix file path which is passed to the FileComparisonException (so that we can update test data using text comparison UI) 2014-11-13 17:27:26 +03:00
Alexey Sedunov c487cc7838 Create From Usage: Do not generate unnecessary/skip necessary empty lines 2014-11-13 17:27:24 +03:00
Natalia Ukhorskaya a9f9049223 Evaluate expression: fix exception for breakpoints on object header (for accessor methods) 2014-11-13 09:47:11 +03:00
Natalia Ukhorskaya 0a97481184 Mark lineNumbers for synthetic accessors 2014-11-13 09:47:10 +03:00
Valentin Kipyatkov eb25e47a51 Temporarily disabled optimization for faster non-imported extensions completion because it causes duplicated items, added test for this problem 2014-11-12 22:23:20 +03:00
Valentin Kipyatkov fe5dbbf9b3 More efficient code completion + fixed a few bugs 2014-11-12 21:25:00 +03:00
Valentin Kipyatkov 5f4220427f Smart completion does not need SAM-constructor in declarations from scope + it's present even when not imported 2014-11-12 21:24:59 +03:00
Nikolay Krasko e8a2039396 Use JetTestUtils.assertEqualsToFile in usages tests to simplify fixing test data 2014-11-12 20:37:45 +03:00
Natalia Ukhorskaya c9e5099307 Add test for KT-6240: create custom renderer for generic class
#KT-6240 Open
2014-11-12 15:17:21 +03:00
Natalia Ukhorskaya 12b4fc7ad9 Resolve codeFragments with context of JetClass 2014-11-12 15:13:37 +03:00
Nikolay Krasko d6ffd22533 More tests for decompiling classes with wrong abi version 2014-11-11 17:40:26 +03:00
Nikolay Krasko 43eb94726c Make single decompiler be responsible for compiled Kotlin files
IDEA caches link between a virtual file and correspondent FileViewProvider.
This breaks navigation to decompiled sources for the library that has been
just updated because of outdated ABI version.

Also IDEA don't allow to change language for decompiled files.

 #KT-6016 Fixed
2014-11-11 17:34:56 +03:00
Nikolay Krasko 5555e28bfb Refactoring: Modify test for incompatible ABI version 2014-11-11 17:33:13 +03:00
Nikolay Krasko 95a2dce627 Remove warning and add tests when this warning had been reproducible 2014-11-11 17:33:12 +03:00
Alexey Sedunov afeb03f383 Create From Usage: Create class by annotation entry/super-call delegation specifier 2014-11-11 14:42:48 +03:00
Alexey Sedunov 1b1eb10979 Create From Usage: Create class by constructor call 2014-11-11 14:42:45 +03:00
Alexey Sedunov b8f68acdbb Create From Usage: Create class by reference expression 2014-11-11 14:42:42 +03:00
Alexey Sedunov 1f14d93412 Create From Usage: Create class by type reference 2014-11-11 14:42:39 +03:00
Andrey Breslav 35766dfa20 Additional/forced resolve for lazy types 2014-11-10 17:23:58 +02:00
Svetlana Isakova fad4261448 KT-6132 No smart completion for argument of java static method
#KT-6132 Fixed
2014-11-08 10:36:25 +03:00
Valentin Kipyatkov d4275e1110 Added test for KT-6132 2014-11-08 10:36:25 +03:00
Natalia Ukhorskaya d4b0977381 Debugger: stop at closing bracket for functions without return statement 2014-11-07 15:10:41 +03:00
Natalia Ukhorskaya 55590e00a5 Evaluate expression: add ability to evaluate expression suspending on class header 2014-11-06 16:21:54 +03:00
Natalia Ukhorskaya 4eb93c06b1 Write line numbers for bridge methods (line for class header) 2014-11-06 16:21:52 +03:00
Natalia Ukhorskaya 0047655ed3 Debugger: fix stepping in when 2014-11-06 14:27:06 +03:00
Valentin Kipyatkov bfdb756e22 Fixed formatting of doc-comments for parameters 2014-10-31 21:08:52 +03:00
Valentin Kipyatkov 2200908367 Doc comments for parameters and property accessors 2014-10-31 21:07:52 +03:00
Valentin Kipyatkov d394625771 Fixed override/implement 2014-10-31 21:07:51 +03:00
Valentin Kipyatkov 84ba96900a Fixed formatter to work correctly with comments inside declaration nodes 2014-10-31 21:07:51 +03:00
Valentin Kipyatkov f4b0f0e661 Fixed tests for variable/function extraction 2014-10-31 21:07:50 +03:00
Pavel V. Talanov c617b73424 Rename stub classes: PsiJet*Stub(Impl) -> Kotlin*Stub(Impl) 2014-10-31 18:26:09 +03:00
Pavel V. Talanov 5fb4f41030 Rename test data folder: libraries -> decompiler 2014-10-31 18:12:20 +03:00
Pavel V. Talanov d2d9813e12 Rename and restructure plugin.libraries package
Rename: libraries -> decompiler
New subpackages: textBuilder, navigation
2014-10-31 16:49:11 +03:00
Pavel V. Talanov 97cbadef61 Decompiler tests: check decompiled text was parsed correctly 2014-10-31 15:04:47 +03:00
Pavel V. Talanov 3b59a513b0 Approximating flexible types in decompiled text 2014-10-31 15:04:46 +03:00
Pavel V. Talanov b728ba2b1e Test function types in decompiler 2014-10-31 15:04:45 +03:00
Alexey Sedunov abbbd198fd Create From Usage: Use supplied type arguments to infer function type parameters 2014-10-28 19:15:05 +03:00
Valentin Kipyatkov 11fd8fe392 Convert to expression body: fixed type selection for public override 2014-10-28 15:40:11 +03:00
Nikolay Krasko d1fe9b71ef Make line break before '}' optional
#KT-6142 Fixed
2014-10-28 01:50:51 +04:00
Nikolay Krasko 0cd95b5514 Formatter: empty lines between declarations 2014-10-28 01:50:50 +04:00
Nikolay Krasko 8d86951a3b Refactoring: junit.framework.Assert -> org.junit.Assert 2014-10-27 12:47:43 +04:00