Toshiaki Kameyama
8ce9b2d061
KT-34572 Convert to block body action improperly works with suppress annotations ( #2969 )
...
* Convert to block body: place @Suppress annotation before return expression
#KT-34572 Fixed
* Convert to block body: place annotations before return expression
2020-08-20 11:15:00 +03:00
Toshiaki Kameyama
0392fe75fc
Convert to block body: specify non-nullable type when body expression is platform type and overriden method is non-nullable type
...
#KT-12222 Fixed
2020-06-30 22:47:13 +07:00
Roman Golyshev
7d662bf5d1
Change testData for IntentionsTestGenerated to avoid using javax and sql packages
...
- Those packages are missing in the mockJdk 1.8 in intellij repository,
and it leads to those tests failing in kotlin-ide repository
2020-06-05 16:03:51 +03:00
Toshiaki Kameyama
30366148bf
Convert to block body: adjust line indent
...
#KT-22368 Fixed
2020-04-02 12:48:05 +03:00
Dmitry Petrov
acf0bb349c
Update testData for restricted expression annotations retention
2018-07-20 10:39:51 +03:00
Kirill Rakhman
1db365bb59
Insert explicit property type while converting accessor to block body
...
So #KT-20417 Fixed
2017-09-26 12:16:14 +03:00
Nikolay Krasko
2841931ffa
Do not force new line in body for empty functions and function expressions (KT-10828)
...
#KT-10828 Fixed
2016-12-14 13:35:31 +03:00
Mikhail Glukhikh
24c7efd323
Minor: WITH_RUNTIME removed from a set of intention tests
2016-09-19 10:57:16 +03:00
shiraji
4f49444f3b
Allow to convert empty Unit returning functions to expression form #KT-13588 Fixed
2016-09-16 15:31:13 +03:00
Mikhail Glukhikh
fa5e284bf8
Convert to block body: when expression with Unit result is now handled as "return needed" #KT-12193 Fixed
2016-05-24 14:29:01 +03:00
Dmitry Petrov
818931ec06
Check for exposed local classes (or objects) in type signatures: fix IDE test
2015-10-12 15:35:39 +03:00
Dmitry Petrov
7e51fb8521
Check for exposed local classes (or objects) in type signatures
2015-10-12 15:24:54 +03:00
Dmitry Jemerov
7e2c2ef678
restore compilation after rebase of dropping external annotations; fix affected tests
2015-10-09 11:52:02 +02:00
Mikhail Glukhikh
8f7b29f80a
Annotation rename: target --> @Target
2015-09-07 13:42:26 +03:00
Valentin Kipyatkov
977bf593e0
KT-8574 'Convert to block body' inserts spurious < token
...
#KT-8574 Fixed
2015-07-28 22:39:29 +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
Alexey Sedunov
f6965b5004
PSI: Add parentheses around annotated expressions in returns
...
#KT-8260 Fixed
2015-06-27 13:58:03 +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
Valentin Kipyatkov
17f0ac9ba7
Don't use plain text generation
2015-05-27 16:15:51 +03:00
Valentin Kipyatkov
b980d98af6
ConvertToBlockBodyAction - refactoring
2015-04-16 22:00:53 +03:00
Alexander Udalov
fe544eaf71
Rename jet -> kotlin in idea: intentions
...
org.jetbrains.jet.plugin.intentions -> org.jetbrains.kotlin.idea.intentions
2015-01-13 01:14:37 +03:00
Alexey Sedunov
05a0481efa
Formatter: Fix spacing between '=' and '{' in property accessors
2014-12-23 20:43:19 +03:00
Evgeny Gerashchenko
fda7aeecfb
Simplified CodeTransformationTest. Only one doTest method remains, intention class is moved to test data. Merged other intention tests (SpecifyTypeExplicitlyTest, ConvertToBlock/ExpressionBodyTest) into this one.
2014-07-10 15:05:17 +04:00
Valentin Kipyatkov
a2f6b99862
Convert to block body intention action
2014-03-04 19:13:54 +04:00