Anton Bannykh
419f12f1b7
JS: fix char to string convertion in string templates (#KT-17966 fixed)
2017-05-22 13:57:36 +03:00
Simon Ogorodnik
6a8bb8b33d
Fix CCE in constructNestedClassReferenceIdentifier J2K
...
#KT-17712 fixed
2017-05-22 13:55:26 +03:00
fitermay
d0991fffd2
Fix keyword completion in 'if' blocks
...
#KT-17914 fixed
2017-05-22 13:54:25 +03:00
Alexey Sedunov
75b73ecbcb
Copy: Disable CopyKotlinDeclarationsHandler on non-source files
2017-05-22 13:51:08 +03:00
Alexey Sedunov
151b512a6c
Kotlin Facet: Do not rewrite v2 configuration to latest version
...
This causes unwanted changes in configuration files
after plugin update
2017-05-22 13:51:07 +03:00
Alexey Sedunov
6049bb8238
Configuration: Use project-level JVM target when facet is absent
...
#KT-17722 Fixed
2017-05-22 13:51:06 +03:00
Dmitry Petrov
45820f0220
Minor: more cleanup after converting to Kotlin
2017-05-22 11:57:20 +03:00
Dmitry Petrov
39aa97eebf
Use Intrinsics#compare when specializing compareTo for ints
2017-05-22 11:57:20 +03:00
Dmitry Petrov
a1ae40a617
RedundantBoxingMethodTransformer: convert to Kotlin & cleanup
2017-05-22 11:57:20 +03:00
Dmitry Petrov
f1bb9a9839
RedundantBoxingMethodTransformer: .java -> .kt
2017-05-22 11:57:20 +03:00
Dmitry Petrov
89bfa64e90
Minor: simplify code in RedundantGotoMethodTransformer
2017-05-22 11:57:20 +03:00
Dmitry Petrov
e1b41eee15
Specialize Comparable#compareTo for boxed primitives
...
Support Comparable#compareTo for boxed primitive in redundant
boxing/unboxing analysis, along with CHECKCAST to java.lang.Comparable.
Note that we can do that for Float and Double, too, because
Float#compareTo(Float) and Double#compareTo(Double) are delegated to
Float#compare(float, float) and Double#compare(double, double),
respectively.
Fuse specialized comparison for integers with conditional jumps
if possible (both for Comparable#compareTo and Intrinsics#areEqual).
#KT-11959 Fixed
2017-05-22 11:57:20 +03:00
Dmitry Petrov
bd5b984da9
Return type of local delegated property setter should be Unit
...
#KT-17950 Fixed
2017-05-22 11:47:09 +03:00
Mikhael Bogdanov
ba06ad3e53
Minor. Fix test directive
2017-05-22 08:31:03 +02:00
Valentin Kipyatkov
1fe6886a33
Fixed error message to quote parameter name
2017-05-20 23:44:20 +03:00
Kirill Rakhman
4cbdbaa057
refactor ConvertFunctionToPropertyIntention and fix 'Convert function to property shouldn't insert explicit type if it was inferred previously' ( #1011 )
...
Fixes #KT-14820
2017-05-19 21:32:11 +03:00
Dmitry Jemerov
927cd04405
Add module documentation for kotlin.test
2017-05-19 19:46:51 +02:00
Mikhail Glukhikh
17869abfaf
Don't suggest making interface member final
...
(which was possible in leaking this inspection)
So #KT-14443 Fixed
2017-05-19 20:36:31 +03:00
Mikhail Glukhikh
a73cf0e1fe
Don't suggest make object container open #KT-11003 Fixed
2017-05-19 20:36:24 +03:00
Dmitry Neverov
3b4dafe691
Detect recursive property accessors #KT-17221 Fixed
2017-05-19 20:36:09 +03:00
ReadmeCritic
20f5023c48
Update README URLs based on HTTP redirects ( #1086 )
2017-05-19 20:25:05 +03:00
Dmitry Jemerov
ded5bfb841
Show calls of TODO() function in TODO view
...
#KT-8617 Fixed
2017-05-19 18:23:45 +02:00
Dmitry Jemerov
c8b0bd44eb
Mark document as out-of-date
2017-05-19 14:32:58 +02:00
Dmitry Petrov
2cda5aaeb5
Additional customization for DeepCopyIrTreeWithSymbols
...
1. Allow overriding 'getNonTransformedLoop'
2. Allow descriptor remapping on deep copy
2017-05-19 14:49:34 +03:00
Dmitry Petrov
b9dee7fcf3
Extract SymbolRemapper interface for DeepCopy customization
2017-05-19 14:49:34 +03:00
Dmitry Petrov
5f57368b4f
Minor: IR verifier should always check receiver descriptors
2017-05-19 14:49:34 +03:00
Dmitry Petrov
1dbd6453e0
Add more stub generator tests for external dependencies
2017-05-19 14:49:34 +03:00
Simon Ogorodnik
dba9011563
Check for batch PSI children update when invalidating package cache
...
#KT-17868 fixed
2017-05-19 13:07:30 +03:00
Valentin Kipyatkov
92a763552c
KT-17970 Intention actions to format parameter/argument list placing each on separate line
...
#KT-17970 Fixed
2017-05-19 12:20:51 +03:00
Mikhael Bogdanov
47fec6c9d5
Wrap captured local delegated property into Delegate
...
#KT-16864 Fixed
2017-05-19 09:53:19 +02:00
Ilya Gorbunov
fec8f4a48b
preparePublication task requires project version to be set
2017-05-19 05:37:58 +03:00
Dmitry Jemerov
f6574a475b
Show location for local classes in Goto Class
...
#KT-7954 Fixed
2017-05-18 21:02:24 +02:00
Dmitry Jemerov
232af8a4fc
Cleanup code style option names
...
#KT-14639 Fixed
2017-05-18 21:02:24 +02:00
Dmitry Jemerov
4dd3f30f2d
Build stubs for local functions; show them in Goto Symbol
...
#KT-14161 Fixed
2017-05-18 21:02:24 +02:00
Dmitry Jemerov
f72dd75127
Use provided file content in KotlinJsMetadataVersionIndex
...
#KT-17821 Fixed
2017-05-18 21:02:24 +02:00
Dmitry Jemerov
af043843b7
Don't show disambiguation for "Show expression type" on "this"
...
#KT-17840 Fixed
2017-05-18 21:02:24 +02:00
Dmitry Jemerov
2cbb8d03c0
Find Usages on "override val" in constructor asks about base usages
...
Also fix long-standing bug with "title" parameter being ignored when
displaying messages
#KT-17845 Fixed
2017-05-18 21:02:24 +02:00
Dmitry Jemerov
8f38d03b48
Indicate vararg parameters in Goto Symbol presentation
...
#KT-17899 Fixed
2017-05-18 21:02:24 +02:00
Nikolay Krasko
14c343de35
Enable auto-indent in multiline strings when caret is before interpolation
...
#KT-17849 Fixed
2017-05-18 20:00:18 +03:00
Nikolay Krasko
251a0270a4
Make auto-indent work for multiline string with injection (KT-17942)
...
#KT-17942 Fixed
2017-05-18 20:00:18 +03:00
Nikolay Krasko
e5822c76fb
Allow injection in strings with interpolation (KT-6610)
...
#KT-6610 Fixed
2017-05-18 20:00:18 +03:00
Nikolay Krasko
12002aed57
Do injection with comments through our injector (KT-6610)
...
Hide Kotlin from CommentLanguageInjector as it only can insert simple
injection. Process injection by commented strings on our own.
#KT-6610 In Progress
2017-05-18 20:00:18 +03:00
Nikolay Krasko
0191c8c6c1
Force kotlin injector before temporary injector (KT-6610)
...
Place KotlinLanguageInject before TemporaryPlacesInjector
TemporaryPlacesInjector injects languages as a single place while we
need to distinguish interpolated and non-interpolated strings. Bad
ordering leads to inconsistent behaviour in temporary injection and
injection with annotations and comments.
See InjectedLanguageManagerImpl.getInjectorMap()
#KT-6610 In Progress
2017-05-18 20:00:18 +03:00
Nikolay Krasko
2f1a40a40d
Use multi host injector for Kotlin injection (KT-6610)
...
#KT-6610 In Progress
2017-05-18 20:00:18 +03:00
Nikolay Krasko
0551659281
Don't indent to unrelated closing quote (KT-17894)
...
#KT-17894 Fixed
2017-05-18 20:00:18 +03:00
Nikolay Krasko
e211980df4
Minor: Remove commented tests
2017-05-18 20:00:17 +03:00
Nikolay Krasko
0cd3e4f3a4
Minor: JetFile -> KtFile
2017-05-18 20:00:17 +03:00
Alexander Udalov
d1c9d0328a
Report error if <withKotlin> is run in fork mode
...
Otherwise the error message is confusing, see #KT-9292
2017-05-18 19:25:21 +03:00
Alexander Udalov
671aed252d
Support single Java source files in kotlinc arguments
...
E.g. "kotlinc foo.kt test/Bar.java" will compile foo.kt, and
declarations from Bar.java will be accessible to Kotlin code in foo.kt.
The change in AbstractTopLevelMembersInvocationTest is needed because an
incorrect configuration was created in that test where a library jar was
also a Java source root (the compiler is never configured this way in
production), which led to an exception in
JavaCoreProjectEnvironment#addSourcesToClasspath
#KT-17697 Fixed
2017-05-18 19:22:17 +03:00
Mikhael Bogdanov
511c9f86b1
Add new test on receiver clash during default lambda inlining
2017-05-18 18:18:15 +02:00