Mikhail Glukhikh
4abcc278fd
Can be constructor property: comment saver introduced to retain comments; unbound comments now added before, not after
...
(cherry picked from commit 886cf21)
2016-06-21 22:23:23 +03:00
Mikhail Glukhikh
4145e3438f
Minor fixes: can be constructor property
...
(cherry picked from commit 4d44e15)
2016-06-21 22:23:12 +03:00
Mikhail Glukhikh
8d2389d15c
Code cleanup: "can be constructor property" applied
...
(cherry picked from commit 6967711)
2016-06-21 22:23:01 +03:00
Nikolay Krasko
49aaeb5a38
Refactoring: wrap Spacing.createSpacing to Kotlin function with default parameters
2016-06-21 21:54:50 +03:00
Nikolay Krasko
f8196d8331
Add space after a semicolon only if there's another child at the same line
2016-06-21 21:54:50 +03:00
Kirill Rakhman
b560aab06d
Format spaces before enum arguments
...
Fixes #KT-12714
2016-06-21 21:54:50 +03:00
Kirill Rakhman
a520be5509
Format spaces around semicolon
...
Fixes #KT-12689
2016-06-21 21:54:50 +03:00
Kirill Rakhman
db387bd573
Format spaces after annotation in annotated expression
...
Fixes #KT-12781
2016-06-21 21:54:50 +03:00
Kirill Rakhman
ae83330679
Format spaces inside curly braces in string template
...
Fixes #KT-12791
2016-06-21 21:54:50 +03:00
Kirill Rakhman
655fc45a87
Format spaces around in keyword
...
Fixes: KT-10680
2016-06-21 21:54:50 +03:00
Alexey Tsvetkov
8fe63cdfaf
Prevent usage of deprecated constructor
...
This removes warning with gradle 2.14.
Before 2.14 constructor was removed, then it was returned and deprecated.
#KT-12786 fixed
2016-06-21 20:22:53 +03:00
Alexey Tsvetkov
34181402fb
Fix CCE when creating kotlin-js task in gradle plugin
2016-06-21 20:22:53 +03:00
Denis Zharkov
453ee55615
Fix coroutine generation in case of empty lambda
...
'handleResult' should be called in such case too
2016-06-21 15:52:44 +03:00
Denis Zharkov
b6ccd03ef4
Make loops generation lazy
...
As well as all other kinds of expressions
While it's not necessary in a sense that 'for' loop can not be plain expression,
i.e. it can't be an argument for safe-call etc., but laziness is still very convenient property.
E.g. within attached test they were generated twice in case of last expression
of coroutine block, because coroutine related codegen part is built upon
assumption that all expressions should be generated lazy.
2016-06-21 15:52:44 +03:00
Denis Zharkov
ad71934c55
Minor. Add 'operator' modifier in test for handleResult
2016-06-21 15:52:44 +03:00
Alexey Andreev
2e6a48576d
KT-12417: add support of RTTI against K(Mutable)Property* types
2016-06-21 15:42:50 +03:00
Mikhail Glukhikh
048b6b60e9
dangerousFlexibleTypeOrNull : minor refactoring
...
(cherry picked from commit 31e8fe5)
2016-06-21 15:22:26 +03:00
Mikhail Glukhikh
70becfbd86
Has platform type inspection is now intention-based
...
(cherry picked from commit 7cc6b9b)
2016-06-21 15:22:15 +03:00
Mikhail Glukhikh
a68e8e0db5
Introduce additional fixes & configurable problem range for intention-based inspection
...
(cherry picked from commit ed23aa9)
2016-06-21 15:21:48 +03:00
Mikhail Glukhikh
2b2b937263
Specify type explicitly intention: now derived from self targeting range intention
...
(cherry picked from commit b09b5a9)
2016-06-21 15:20:24 +03:00
Mikhail Glukhikh
5c4b6ba8b0
Has platform type : public API only option
...
(cherry picked from commit a084c1d)
2016-06-21 15:20:11 +03:00
Kirill
86b70ba995
Add quickfix tests for HasPlatformTypeInspection
...
(cherry picked from commit af1b26b)
2016-06-21 15:20:00 +03:00
Kirill Rakhman
d7bf03be46
Implement inspection for declarations with implicit platform types #KT-12310 Fixed
...
(cherry picked from commit 00d8c26)
2016-06-21 15:19:13 +03:00
Sergey Mashkov
1cb72169f9
KT-12512 "Different IDE and Maven plugin version" inspection is being invoked for non-tracked pom.xml files
2016-06-21 13:56:22 +03:00
Sergey Mashkov
7999dc8d01
Fix EA-83601 - ISE: PomFile.<init>
2016-06-21 13:56:17 +03:00
Sergey Mashkov
49ccfa0ec4
KT-12558 Configure Kotlin in Project: Maven: Undo could revert changes in all poms
2016-06-21 13:56:13 +03:00
Sergey Mashkov
f47fd46b7a
Maven: script tag injects kotlin
2016-06-21 13:56:08 +03:00
Sergey Mashkov
0250ab4ac2
KT-12568 Maven pom.xml: execution configuration: file path completion works only in some sub-elements
2016-06-21 13:56:03 +03:00
Dmitry Jemerov
75b860ab95
handle IOException from File.getCanonicalFile() (EA-83981 - NA: KotlinToJVMBytecodeCompiler.reportRuntimeConflicts)
...
(cherry picked from commit 765bd44)
2016-06-21 12:07:50 +02:00
Dmitry Jemerov
450caf4033
VirtualFile.getParent() is nullable (EA-84222 - NPE: DecompiledFileWritingAccessProvider.isPotentiallyWritable)
...
(cherry picked from commit a77f4df)
2016-06-21 12:07:39 +02:00
Dmitry Jemerov
4bc64b8014
PsiElement.getNode() is nullable (EA-84534 - NPE: DocCommentConverterKt.content)
...
(cherry picked from commit c3e38dd)
2016-06-21 12:07:24 +02:00
Denis Zharkov
132190a71e
Minor. Optimize imports
2016-06-21 11:07:36 +03:00
Denis Zharkov
fe5fe63f0a
Fix visibility check for dynamic members within protected method
...
#KT-11857 Fixed
2016-06-21 11:07:36 +03:00
Valentin Kipyatkov
4a7a04e366
Temporarily reverted commit "Smart cast to not null should affect flexible types too" because it causes exception in compiler
2016-06-20 23:18:53 +03:00
Alexander Udalov
311301f430
Check return type when locating method in reflection
...
#KT-11824 Fixed
2016-06-20 21:03:51 +03:00
Pavel V. Talanov
bafe8e55ce
Create SyntheticMemberDescriptor interface
...
Implement this interface by sam adapters/constructors and use it in navigation
#KT-11708 Fixed
2016-06-20 20:15:34 +03:00
Nikolay Krasko
4087e650aa
Wrong delegation to delegation property in debugger when property defined in another module (KT-12678)
...
Different bytecode can be generated for delegated property and for non-delegated one. Backend inspects DELEGATED_PROPERTY_CALL to understand the property type, and expects that
this information had been already recorded into context. Frontend writes DELEGATED_PROPERTY_CALL into context during body resolve or type inference if type is not present.
Either way in debugger context it may happen that the DELEGATED_PROPERTY_CALL won't be written into context.
#KT-12678
2016-06-20 16:22:04 +03:00
Valentin Kipyatkov
0bc5007147
KT-12369 Completion: pressing dot after class name should not cause insertion of constructor call
...
#KT-12369 Fixed
2016-06-20 16:19:02 +03:00
Valentin Kipyatkov
b9719bfe82
Fixed test so that it really tests what's intended
2016-06-20 16:19:02 +03:00
Valentin Kipyatkov
eb1dbfc652
KT-12669 Completion should show variant with () when there is default lambda
...
#KT-12669
2016-06-20 16:19:02 +03:00
Valentin Kipyatkov
962a8f9bf4
KT-12447 Don't use CompletionProgressIndicator in Kotlin plugin
...
#KT-12447 Fixed
2016-06-20 16:19:02 +03:00
Valentin Kipyatkov
4e16d67321
KT-12427 Completion doesn't work for "@receiver:" annotation target
...
#KT-12427 Fixed
2016-06-20 16:19:01 +03:00
Valentin Kipyatkov
1413a3fe63
KT-12328 Qualified function name inserted when typing before "if"
...
#KT-12328 Fixed
2016-06-20 16:19:01 +03:00
Valentin Kipyatkov
2ec81f44bf
Fixed extension properties not completed after "get"
2016-06-20 16:19:01 +03:00
Valentin Kipyatkov
88bf7f883e
No need to specially handle extensions from current file anymore (since searchScope for KotlinIndicesHelper includes current file)
2016-06-20 16:19:01 +03:00
Valentin Kipyatkov
568195bb34
Smart cast to not null should affect flexible types too
2016-06-20 16:19:00 +03:00
Denis Zharkov
5ee33e6ad5
Generate last expression in coroutine block even for Unit expected type
2016-06-19 12:50:54 +03:00
Denis Zharkov
96eb3f411d
Minor. Simplify 'async' tests
2016-06-19 12:50:54 +03:00
Denis Zharkov
72eb87f5d0
Support inline suspend functions
...
A lot of additional work was required to support them:
- Suspension points are being identified by two markers
instead of one pointing to suspend function call
- Approach with replacing return type of suspend function does not work anymore.
So we decode suspension return type as an argument for begin marker
- It became necessary to perform variables liveness analysis
(see comment in org.jetbrains.kotlin.codegen.coroutines.CoroutineTransformerMethodVisitor.spillVariables)
2016-06-19 12:50:54 +03:00
Denis Zharkov
5c3e554240
Minor. Remove redundant import
2016-06-19 12:50:53 +03:00