Alexey Sedunov
5dcf531048
Formatter: Leave single space between val/var and value parameter
2015-12-25 18:50:52 +03:00
Nikolay Krasko
8a95f23a23
Adjust formatting for FILE_ANNOTATION_LIST
2015-12-09 16:01:56 +03:00
Alexey Sedunov
40f2a983cc
Formatter: Spacing before after semicolon in enum classes
2015-10-24 19:50:51 +03:00
Valentin Kipyatkov
090ea37a32
Fixed test data to use only annotation syntax with @
2015-10-15 19:20:08 +03:00
Dmitry Jemerov
1523d5bcbf
removing static type assertions work in progress
2015-10-12 11:11:23 +02:00
Dmitry Jemerov
4b92bd100c
add space between property type parameter list and property name
2015-10-06 16:20:48 +02:00
Denis Zharkov
73799e2c3c
Replace deprecated lambda syntax in testData
...
It's done with similar constructions where possible trying to preserve
intended behavior.
Some usages are removed because they test exactly the feature that
we are going to drop soon.
2015-09-25 08:29:25 +03:00
Natalia Ukhorskaya
ba48a5b7fc
Formatter: space between type argument list and function literal argument
2015-08-24 12:37:33 +03:00
Mikhail Glukhikh
3f14e74b08
Drop old enum syntax. Comma / semicolon are now a syntactic part of enum entry.
...
Comma must present now between enum entries, semicolon between last entry & first member, constructor calls must be without colons / specifiers.
A swarm of tests fixed accordingly.
2015-08-11 10:38:10 +03:00
Mikhail Glukhikh
022e7d1169
Deprecated enum syntax removed: most idea tests
2015-08-10 16:24:16 +03:00
Alexey Sedunov
d23da408a8
Formatter: Add blank line before class/object declaration inside of declaration body
2015-07-28 18:48:23 +03:00
Denis Zharkov
c9f79c2d05
Adjust testData: get rid of obsolete annotations
2015-06-12 09:23:31 +03:00
Valentin Kipyatkov
8fd6a64be9
Refactored methods for val/var in PSI
2015-06-01 18:23:34 +03:00
Denis Zharkov
b650753643
Change formatting of function expressions without names
...
No spaces between 'fun' and value parameter list
2015-05-20 09:24:56 +03:00
Denis Zharkov
46a6cab671
Formatter: no spaces after 'constructor' inside primary ctor
2015-05-20 09:24:55 +03:00
Mikhail Glukhikh
1a312140e9
New enum syntax: Short constructor syntax introduced for entries, optional commas between entries, semicolon after entries. #KT-7605 Fixed.
...
Grammar changed accordingly.
Semicolons prohibited after an entry except the last one.
Only one initializer is allowed per entry.
EnumReferenceExpression AST node introduced.
Some tests fixed, a pair of new tests written. Kotlin code inside project fixed.
Formatter and intendation tests fixed accordingly.
Stub version is incremented.
2015-05-15 16:13:32 +03:00
Mikhail Glukhikh
cf741cb868
Enum parsing changed: first entries, then members. Grammar fixed accordingly.
...
A set of compiler tests and some plugin tests changed accordingly.
Compiler Kotlin code changed accordingly.
2015-05-15 16:13:27 +03:00
Dmitry Jemerov
625096466e
IDE testdata: s/trait/interface
2015-05-13 16:13:13 +02:00
Denis Zharkov
b13e932c3c
Parse label reference with spaces before '@'
...
But still report error
2015-05-07 22:36:15 +03:00
Dmitry Jemerov
f93eeeb563
fix tests by adding missing 'init' keywords to testdata
2015-04-29 14:07:05 +02:00
Denis Zharkov
44a55e5bf6
Adjust testData to new labels syntax
2015-04-29 14:03:11 +03:00
Denis Zharkov
717f850470
Setup spacing rules for primary ctor's parts
2015-03-31 20:20:22 +03:00
Denis Zharkov
01e5ee718f
Allow secondary constructors without body
...
#KT-6967 Fixed
2015-03-27 16:09:40 +03:00
Stanislav Erokhin
cbcd2c3cce
Fixed formatter for function expression
2015-03-26 22:08:46 +03:00
Denis Zharkov
13f933693f
Setup spacing rules for anonymous initializers
2015-03-18 19:59:25 +03:00
Stanislav Erokhin
c24c3daf54
Allowed shorthand parameter list with type reference in lambda.
2015-03-18 16:06:44 +03:00
Denis Zharkov
22425de5cb
Setup spacing rules for secondary constructors
...
#KT-6968 Fixed
2015-03-17 23:18:34 +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
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
Alexey Sedunov
05a0481efa
Formatter: Fix spacing between '=' and '{' in property accessors
2014-12-23 20:43:19 +03:00
Alexey Sedunov
8f2c543f7e
Formatter: Add wrapping support for parameter/argument lists
...
#KT-6032 Fixed
2014-12-08 16:30:03 +03:00
Valentin Kipyatkov
bfdb756e22
Fixed formatting of doc-comments for parameters
2014-10-31 21:08:52 +03:00
Valentin Kipyatkov
cf04ba4943
Corrected test data
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
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
b06b3ab4c4
Insert empty lines after functions and properties (KT-4002)
...
#KT-4002 Fixed
2014-10-14 00:39:23 +04:00
Nikolay Krasko
513ec93060
Formatting: Move '}' to next line in when
2014-06-25 14:22:55 +04:00
Nikolay Krasko
391d40e792
Fix error alignment for binary expression parts
2014-05-16 17:10:04 +04:00
Nikolay Krasko
d4ddf06ebd
Fix problem with alignment in assignments and other binary expressions
2014-05-16 17:10:04 +04:00
Nikolay Krasko
356cb80e7f
Indent for multideclarations
2014-05-16 17:10:03 +04:00
Nikolay Krasko
b958e0d6b8
Allow empty blocks for classes and function literals
2014-05-16 17:10:02 +04:00
Nikolay Krasko
3d588acd2d
Add space between 'when' and '('
2014-05-16 17:10:02 +04:00
Nikolay Krasko
9eb2615ac3
Don't remove linebreak after smb. else's statement }
2014-05-16 17:10:00 +04:00
Nikolay Krasko
8eb8e5a928
Fix spacing after return (KT-4947)
...
#KT-4947 Fixed
2014-05-16 17:10:00 +04:00
Nikolay Krasko
109f7992b4
Format functions with function literal arguments (KT-2934)
...
#KT-2934 Fixed
2014-05-16 17:09:58 +04:00
Nikolay Krasko
2b847cd885
Formatting enum delegations lists
2014-05-16 17:09:57 +04:00
Nikolay Krasko
2a693bcada
Formatting index calls
2014-05-16 17:09:54 +04:00
Nikolay Krasko
cd3aa06a83
Fix 'In multiline class declaration the indent before parent's name is destroyed' (KT-3848)
...
#KT-3848 Fixed
2014-05-16 17:09:53 +04:00
Nikolay Krasko
5e50b98103
Fix comment to KT-3370 about no formatting of spaces around colon in objects
...
#KT-3370 Fixed
2014-05-16 17:09:52 +04:00