Dmitry Jemerov
d5e90b4123
Remove unnecessary uses of getContainingKtFile() (EA-83360 - CCE: KtElementImplStub.getContainingKtFile)
2016-12-12 17:50:11 +01:00
Dmitry Jemerov
b5ad1e1be5
Check for file validity before calling findFileByRelativePath() (EA-92325 - IVFAE: VirtualDirectoryImpl.doFindChild)
2016-12-12 17:50:10 +01:00
Roman Elizarov
8affb2726f
Pluggable Synthetic Objects
2016-12-12 18:43:26 +03:00
Simon Ogorodnik
7a4b6a1462
Fix for EA-89556 - (from J2K) ROME: DocumentImpl.replaceString
2016-12-12 18:35:16 +03:00
Dmitry Jemerov
a7bd910dbb
Don't try to calculate icon for invalid PSI elements
...
#KT-13443 Fixed
2016-12-12 16:24:51 +01:00
Simon Ogorodnik
fb5398cdcd
Fix for KT-14885 J2K on paste adds duplicated imports
2016-12-12 18:16:17 +03:00
Vyacheslav Gerasimov
9c78301008
Invoke rename handler with editor if possible in IllegalIdentifierInspection.RenameIdentifierFix
...
#KT-14760 Fixed
#KT-11646 Fixed
2016-12-12 13:47:58 +03:00
Mikhail Zarechenskiy
40ff7c6e33
Fix test data
2016-12-09 21:08:29 +03:00
Yan Zhulanow
cbef0250aa
Allow to turn the first parameter of a SAM-converted lambda into the receiver (KT-12848)
2016-12-09 20:01:21 +03:00
Yan Zhulanow
3b65cb1ef2
Check if modality is refined in "Redundant modifier" inspection
2016-12-09 20:01:18 +03:00
Yan Zhulanow
0a2b52c1ed
Minor: Add allopen-ide and allopen-noarg to "idea" module test classpath
2016-12-09 20:01:16 +03:00
Yan Zhulanow
c705f0c437
NoArg: Add IDE integration
2016-12-09 20:01:14 +03:00
Yan Zhulanow
6abde4223b
AllOpen: Add IDE integration
2016-12-09 20:01:07 +03:00
Mikhail Zarechenskiy
373c1be7e4
Add quick fixes for mod/rem migration
...
- Remove 'operator' modifier
- Rename operator 'mod/modAssign' to 'rem/remAssign'
2016-12-09 17:01:42 +03:00
Mikhail Zarechenskiy
f37b7224da
Fix test: do not propose to change 'mod' to '%'
2016-12-09 17:01:32 +03:00
shiraji
44ca45123d
KT-15142 Remove redundant calls of the conversion method wrongly shown for Any?.toString
...
#KT-15142 Fixed
2016-12-09 14:33:55 +03:00
Mikhael Bogdanov
5ffc0b36b0
Quickfix for published api
2016-12-09 11:55:16 +01:00
Alexander Udalov
789483e1eb
Remove old mechanism of metadata version error reporting
2016-12-09 01:59:36 +03:00
Ilya Gorbunov
e4ab3f3b93
Fix rendered descriptors in test data after enhancing signatures.
2016-12-08 20:34:59 +03:00
Alexey Sedunov
215d8b1e1a
Intentions: Convert function type receiver to parameter
...
#KT-14246 Fixed
2016-12-08 17:56:57 +03:00
Alexey Sedunov
d4ed2d2022
Intentions: Convert function type parameter to receiver
...
#KT-14246 In Progress
2016-12-08 17:56:55 +03:00
Alexey Sedunov
9cadfd01ae
Introduce Variable: Allow extraction to class body/file
2016-12-08 17:56:54 +03:00
Alexey Andreev
85733b47f3
Add support of external modifier in classes and properties to IDEA stub builder
2016-12-08 15:41:44 +03:00
Alexey Andreev
68412ae94f
JS: replace all usages of @native annotation with external modifier, in tests, stdlib, etc
2016-12-08 15:41:39 +03:00
Nikolay Krasko
43948a0170
Wrap options for constructor parameters
...
#KT-12176 In Progress
2016-12-08 15:15:12 +03:00
Nikolay Krasko
300601da54
Indent () in if, when, while and do-while with continuation indent (KT-5897)
...
#KT-5897 Fixed
2016-12-08 15:15:11 +03:00
Nikolay Krasko
211cae2ad2
Refactoring: use when instead of if
2016-12-08 15:15:09 +03:00
Denis Zharkov
dd392963ac
Minor. Rename SyntheticExtensionFunctions -> SyntheticMemberFunctions
2016-12-07 21:04:57 +03:00
Denis Zharkov
035383285c
Fix processing synthetic members in completion
...
Not all synthetic scope's descriptors are extensions (SAM adapters are not)
#KT-11128 Fixed
2016-12-07 21:04:53 +03:00
shiraji
2815b5e62b
KT-15030 Remove redundant calls of conversion methods: false positive for 'toList()'
...
#KT-15030 Fixed
2016-12-07 19:00:12 +03:00
Mikhail Glukhikh
268702e0cc
"Change return type for enclosing fix" now handles TYPE_INFERENCE_EXPECTED_TYPE_MISMATCH correctly #KT-14063 Fixed
2016-12-07 18:52:04 +03:00
Mikhail Glukhikh
2ac8e5b4a7
"Change return type fix" now handles data class properties correctly #KT-15028 Fixed
2016-12-07 18:51:58 +03:00
Mikhail Glukhikh
0994d46038
Convert reference to lambda: handle special case of extension functional type #KT-14985 Fixed
2016-12-07 18:51:53 +03:00
Mikhail Glukhikh
e904e56de3
Convert reference to lambda: correct handling of static method references #KT-14982 Fixed
2016-12-07 18:51:48 +03:00
Mikhail Glukhikh
ea8548c55b
Simplify boolean == true / false is no longer applicable on flexible boolean #KT-15087 Fixed
2016-12-07 18:51:42 +03:00
Mikhail Glukhikh
4b86c4aa27
Infrastructure test for intention descriptions availability added
2016-12-07 18:51:37 +03:00
Nikolay Krasko
06172e7110
Refactoring: move runSynchronouslyWithProgress to ProgressUtil
2016-12-07 17:32:38 +03:00
Nikolay Krasko
fd8d616d35
Use lazy resolve for counting list of inlined function during step out (KT-14892)
...
#KT-14892 Fixed
2016-12-07 17:32:38 +03:00
Nikolay Krasko
fc5b493fd3
Run full resolve in debugger with write action priority (KT-14602)
...
#KT-14602 Fixed
2016-12-07 17:32:38 +03:00
Nikolay Krasko
76916b0877
Avoid requesting line number for bad offset (EA-87678)
...
Example of stack trace:
java.lang.IndexOutOfBoundsException: Wrong offset: 14847. Should be in range: [0, 14846]
at com.intellij.openapi.editor.impl.LineSet.findLineIndex(LineSet.java:141)
at com.intellij.openapi.editor.impl.DocumentImpl.getLineNumber(DocumentImpl.java:919)
at org.jetbrains.kotlin.idea.refactoring.KotlinRefactoringUtilKt.getLineCount(kotlinRefactoringUtil.kt:344)
at org.jetbrains.kotlin.idea.debugger.KotlinPositionManager.getSourcePosition(KotlinPositionManager.kt:125)
2016-12-07 17:32:38 +03:00
Nikolay Krasko
ee1ce184f9
Don't resolve reference if result is useless
2016-12-07 17:32:38 +03:00
Mikhail Zarechenskiy
0134b8819b
Optimize const vals by inlining them at use sites
...
#KT-11734 Fixed
#KT-13570 Fixed
2016-12-05 22:11:33 +03:00
Mikhail Zarechenskiy
8c1e165f18
Skip property accessors for constants
...
- Inline protected constants from Java at use sites
- Do not create accessors for private constants in Kotlin
#KT-11734 In Progress
2016-12-05 22:10:14 +03:00
Nikolay Krasko
726471d98e
Avoid loading psi for compiled kotlin file if it's possible to get declaration by name from stubs
2016-12-05 17:22:42 +03:00
Mikhail Glukhikh
299f477a1b
Call method references search in UnusedSymbolInspection.hasReferences to fix secondary constructor search
...
Makes #KT-12500 Fixed
Makes #KT-12501 Fixed
2016-12-05 10:58:21 +03:00
Mikhail Zarechenskiy
160d43fe2e
Introduce new feature: division by zero in constant expressions
2016-12-02 17:42:56 +03:00
Alexey Sedunov
475ae0d638
Rename: Suggest respective parameter name for the local variable passed to function
...
#KT-14792 Fixed
2016-12-02 14:14:10 +03:00
Alexey Sedunov
b6d4bb4921
Create from Usage: Support adding type parameters to the referenced type
...
#KT-11760 Fixed
2016-12-02 14:14:09 +03:00
Alexey Sedunov
c773afdbfa
Intentions: Implement "Add names to call arguments" intention
...
#KT-14729 Fixed
2016-12-02 14:14:08 +03:00
Alexey Sedunov
890578a6a0
Introduce Type Alias: Forbid unchecking of required type arguments
2016-12-02 14:14:06 +03:00