Pavel V. Talanov
9a9d70fd98
Decompiler: do not try to render function types with star projections prettily
2015-07-01 20:45:32 +03:00
Denis Zharkov
c9f79c2d05
Adjust testData: get rid of obsolete annotations
2015-06-12 09:23:31 +03:00
Alexey Sedunov
ba0000dde1
Navigation: Fix navigation to library sources for Kotlin constructors
2015-06-11 13:52:50 +03:00
Pavel V. Talanov
07d35d305e
Create import list psi element even if no directives are present
...
Fix a problem where deleting last import directive via "optimize imports" could lead to incorrect psi structure resulting in CCE, see EA-64291
New imports are inserted at the head (after package directive if present) of the file (before any comments) if no imports were present
Add test for inserting import to file where a first statement is a comment
Drop code dealing with non-existing import list in ImportInsertHelperImpl
AbstractQuickFixTest: check for unexpected actions before changes to the file are made as it relies on the first line having specific format
2015-06-08 20:51:04 +03:00
Pavel V. Talanov
d2592e4a2c
Companion objects have public visibility by default
...
#KT-7114 Fixed
2015-06-02 16:23:03 +03:00
Valentin Kipyatkov
8fd6a64be9
Refactored methods for val/var in PSI
2015-06-01 18:23:34 +03:00
Michael Nedzelsky
c362db7330
tests for decompiled texts: AssertionError -> RuntimeException
2015-05-26 05:04:49 +03:00
Michael Nedzelsky
a0dc22b464
add TARGET_BACKEND: JVM to some decompiled tests
2015-05-26 05:04:44 +03:00
Denis Zharkov
5297b4974f
Adjust descriptor renderer to latest parsing changes
...
- `constructor` keyword expected in primary constructor with non-empty modifier list
- annotation list should be preceeded by '@'
2015-05-20 09:24:56 +03:00
Pavel V. Talanov
5b14d5be28
ClsStubBuilder: fix stub builder in case of java types annotated with special annotations
2015-05-19 16:01:40 +03:00
Mikhail Glukhikh
67cce57aeb
Decompiler & stub builder fixed accordingly with new enum syntax.
...
Companion object now directly follows enum entries to avoid having them at the middle.
Some decompiler & stub builder tests fixed accordingly.
2015-05-15 16:13:29 +03:00
Nikolay Krasko
6b64ae77f3
Test light classes from sources have priority over decompiled light classes
2015-05-15 15:29:31 +03:00
Dmitry Jemerov
625096466e
IDE testdata: s/trait/interface
2015-05-13 16:13:13 +02:00
Dmitry Jemerov
9975bb8935
replace 'trait' keyword with 'interface' in user-visible messages and code generation tools
2015-05-12 11:49:37 +02:00
Dmitry Jemerov
f61a4a15cc
rename "isTrait" to "isInterface": update test data
2015-04-29 16:50:20 +02:00
Alexander Udalov
fe602d34ce
Support type annotations in cls stub builder
...
Also add test on decompiler
2015-04-29 01:03:56 +03:00
Stanislav Erokhin
3de0dff575
Migrate testdata to new lambda syntax
2015-04-07 13:08:53 +03:00
Valentin Kipyatkov
6a2cc66eb1
Got rid of isProbablyNothing in stubs + fixed exception on some files on indexing stubs
2015-04-02 10:10:31 +03:00
Valentin Kipyatkov
bff2b2f378
Fixed tests for stubs
2015-04-02 10:09:25 +03:00
Pavel V. Talanov
a986d913c3
Remove traces of class object constraints feature from parser, frontend, tests and psi
2015-04-01 20:09:34 +03:00
Denis Zharkov
8e69c06e5a
Adjust stub-builder, decompiler and renderer to new PSI structure
...
of primary ctor
2015-03-31 20:20:22 +03:00
Pavel V. Talanov
a50b218c6a
default -> companion: Replace some missed usages of "isDefault"
2015-03-17 17:10:53 +03:00
Pavel V. Talanov
06916d98c6
default -> companion: replace all mentions of default and default object
2015-03-17 15:47:39 +03:00
Pavel V. Talanov
c0a031eafe
Support secondary constructors in decompiled text
...
Build cls stubs for secondary constructors
2015-03-13 20:17:32 +03:00
Alexander Udalov
e136025ac5
Show "kotlin.Any" in decompiled text for local/anonymous types
2015-03-07 02:30:28 +03:00
Pavel V. Talanov
b51368a5e5
Fix cls builder for new decompiler
2015-03-06 19:36:58 +03:00
Pavel V. Talanov
59f192ef90
Replace 'class object' with 'default object' in renderers and test data
...
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00
Pavel V. Talanov
48fbce9582
Refactor: process mentions of class object
...
Rename usages that refer to "default object" concept now
Test data file names are left as is
2015-03-03 20:57:08 +03:00
Pavel V. Talanov
cceb5738c8
Can't omit default object name in imports and types
...
There should be only one way to denote a type (A.Default.B can't be denoted as A.B)
2015-03-03 13:04:28 +03:00
Alexander Udalov
e812c4e67f
Introduce KotlinSyntheticClass.Kind.LOCAL_TRAIT_IMPL
2015-02-16 20:19:50 +03:00
Pavel V. Talanov
be5f00ad1c
Update test data for various stub tests
2015-02-16 15:38:33 +03:00
Valentin Kipyatkov
77a560775f
KT-6628 Allow imports of classes from root package
...
#KT-6628 Fixed
2015-01-21 20:10:18 +03:00
Pavel V. Talanov
e9ebf4e3c1
Cls stub builder test: test extension on function type
2014-12-24 16:49:58 +03:00
Pavel V. Talanov
69ec789013
Support PRIVATE_TO_THIS in cls stub builder
2014-12-22 16:05:15 +03:00
Pavel V. Talanov
6362336208
Test stubs for compiled Kotlin files
2014-12-21 14:23:26 +03:00
Pavel V. Talanov
72aba2b758
Change default parameter rendering in decompiled text
...
So the code does not contain syntax errors
2014-12-21 14:23:23 +03:00
Pavel V. Talanov
d0479aa61b
DecompiledTextFactory: use own implementation of type normalizer
...
Do not rely on IDE utils
This makes implementing cls stub builder easier
2014-12-21 14:23:22 +03:00
Pavel V. Talanov
d2cfcfa659
Fix test data after changes to renderer and descriptors
2014-11-14 17:09:05 +03:00
Valentin Kipyatkov
41685f0ba3
Fixing declaration ranges in decompiled code - comment "/* compiled code */" now is inside property
2014-10-31 21:07:49 +03:00
Pavel V. Talanov
5fb4f41030
Rename test data folder: libraries -> decompiler
2014-10-31 18:12:20 +03:00