Ilya Gorbunov
f4822cd757
Fix testData in compiler: add collections and ranges package to fq-names.
2016-01-22 05:54:38 +03:00
Alexander Udalov
7449ad2763
Rename Extension annotation to ExtensionFunctionType
...
The old one is kept temporarily and will be removed later
2015-12-21 20:33:32 +03:00
Alexander Udalov
65c5c99c68
Render decompiled annotations on enum entries
2015-12-13 17:49:44 +03:00
Alexander Udalov
5fbb9bfe3b
Report error on repeated upper bounds for type parameters
2015-12-07 15:47:47 +03:00
Alexander Udalov
877129340f
Revert "Rename Extension annotation to ExtensionFunctionType"
...
This reverts commit 460dad135c .
The old compiler will not see the new runtime correctly. Postponing this until
1.0
2015-11-30 19:24:58 +03:00
Alexander Udalov
460dad135c
Rename Extension annotation to ExtensionFunctionType
2015-11-30 02:51:04 +03:00
Denis Zharkov
6ae653e5a1
Implement stub building for inner types
2015-11-13 14:59:04 +03:00
Alexey Tsvetkov
5e90bafe18
Build stubs for modifiers
2015-10-19 20:45:02 +03:00
Alexey Tsvetkov
28ca2e8b84
Build stubs for data modifier
2015-10-19 20:45:00 +03:00
Pavel V. Talanov
aeb4abe39d
Fix decompiled text for named companion object
...
Fix stub/ast mismatch for compiled named companion objects
Add tests
2015-10-19 15:27:49 +03:00
Mikhail Glukhikh
a4af6a3076
data deprecations (empty constructors, non val/var arguments, vararg, superclasses) are now errors, relevant tests fixed
2015-10-19 15:24:28 +03:00
Svetlana Isakova
9b1030de2e
Annotations on type projection belong to type reference
2015-10-09 11:05:52 +03:00
Denis Zharkov
e1e3a6c9ad
Introduce const into decompiler and stub builder
2015-09-23 08:20:57 +03:00
Valentin Kipyatkov
452cd49c5e
Disallowed @Deprecated for local variables and parameters
2015-09-18 15:44:16 +03:00
Denis Zharkov
7ea7e3cc7c
Render '@' before each annotation
2015-09-18 10:14:38 +03:00
Denis Zharkov
bae3320d52
Get rid of deprecated annotations in testData
2015-09-18 10:14:32 +03:00
Mikhail Glukhikh
3770e7f49f
Introduction of AnnotationTarget.CLASS as a replacement for CLASSIFIER (first step)
2015-09-11 17:59:40 +03:00
Denis Zharkov
fc447e2d2f
Parse some builtin annotations as modifiers
...
But still resolve them as annotations.
Mostly it's needed as begin of migration path, one day they become modifiers anyway
Some tests are dropped because they supposed that `annotation` should have parameter
2015-09-08 08:53:35 +03:00
Michael Nedzelsky
c861b036a0
fix tests in org.jetbrains.kotlin.idea.decompiler.textBuilder
2015-09-08 02:05:30 +03:00
Dmitry Petrov
f9901f6075
Fix decompiler tests.
...
For now, JVM and JS backends produce different metadata for package facades (and package parts),
and thus different output is expected for JVM and JS decompiler.
Split decompiler tests into common (decompiledText), JVM-specific (decompiledTextJvm),
and JS-specific (decompiledTextJs)
Join them back together if JS backend migrates to JVM-like package model.
2015-09-07 16:29:01 +03:00
Mikhail Glukhikh
8f7b29f80a
Annotation rename: target --> @Target
2015-09-07 13:42:26 +03:00
Denis Zharkov
31244edec9
Deprecate deprecated in favor of Deprecated
2015-09-04 18:19:31 +03:00
Denis Zharkov
11fed1674e
Deprecate extension annotation in favor of Extension
2015-09-04 17:23:25 +03:00
Michael Nedzelsky
be2324031d
decompiled text: add test for inherited interface
2015-09-01 15:06:45 +03:00
Mikhail Glukhikh
3793d99b00
Decompiler fix: enum entries are now separated by , and have ; at the end, relevant tests fixed
2015-08-11 10:37:48 +03:00
Mikhail Glukhikh
022e7d1169
Deprecated enum syntax removed: most idea tests
2015-08-10 16:24:16 +03:00
Mikhail Glukhikh
0d2a81f098
Annotation target checking in front-end, a set of tests for different annotation targets, existing test fixes
...
No checks for erroneous annotations. Additional checks for identifiers.
2015-07-14 16:25:04 +03:00
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
Pavel V. Talanov
d2592e4a2c
Companion objects have public visibility by default
...
#KT-7114 Fixed
2015-06-02 16:23:03 +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
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
Dmitry Jemerov
625096466e
IDE testdata: s/trait/interface
2015-05-13 16:13:13 +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
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
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
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
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
Pavel V. Talanov
be5f00ad1c
Update test data for various stub tests
2015-02-16 15:38:33 +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
Pavel V. Talanov
5fb4f41030
Rename test data folder: libraries -> decompiler
2014-10-31 18:12:20 +03:00