Kirill Rakhman
d68a681db5
Highlight use of toString() inside string interpolation as redundant #KT-10731 Fixed
2016-08-15 13:28:47 +03:00
Mikhail Glukhikh
52dacd1d49
KT-13430 related: add non-null assertion works also for UNSAFE_INFIX_CALL
2016-08-12 17:43:31 +03:00
Mikhail Glukhikh
cf2d575eec
Add non-null assertion: correct handling of unary expression unsafe calls #KT-13430 Fixed
2016-08-12 17:43:26 +03:00
Mikhail Glukhikh
13975778c5
Unused symbol: handling of import as alias not only for objects / enums #KT-11933 Fixed
2016-08-12 17:42:33 +03:00
Mikhail Glukhikh
e01e08402c
Minor: convert to expression body is forbidden also for nested non-exhaustive whens
2016-08-12 17:41:33 +03:00
Mikhail Glukhikh
6a6c67dd5f
Convert to expression body is forbidden for if without else #KT-12951 Fixed
2016-08-12 17:41:28 +03:00
Mikhail Glukhikh
1c5c6506ce
Report of UNINITIALIZED_ENUM_COMPANION also for implicit receivers #KT-11769 Fixed
2016-08-12 15:06:43 +03:00
Mikhail Glukhikh
04f71bccf2
KT-11769 case with companion function call: error is now detected if companion receiver is stated explicitly
2016-08-12 15:06:38 +03:00
Sergey Mashkov
3c002625c6
KT-13211 KotlinCompileMojoBase could provide better compilation failure info
2016-08-12 13:59:58 +03:00
shiraji
3e58283d7e
Add quickfix for adding 'inline' to a function with reified generic #KT-6975 Fixed
2016-08-12 12:15:40 +03:00
Mikhail Glukhikh
6cf90cfc4e
Fix for SOE in VarianceChecker #KT-13401 Fixed
2016-08-11 13:04:58 +03:00
Ilya Chernikov
82a53912a9
Add two more options copying from gradle-visible option to compiler-visible ones
2016-08-11 09:11:11 +02:00
Ilya Chernikov
46a7c706e1
Fixes and refactorings after review
2016-08-11 09:11:11 +02:00
Ilya Chernikov
295f2fd40a
Fix GeneratedClassloader creation in scripts compilation, fixes test
2016-08-11 09:11:11 +02:00
Ilya Chernikov
9f18ad606a
Fix exception on incompatible resolver class - #EA-86599
2016-08-11 09:11:11 +02:00
Ilya Chernikov
e99697e3a2
Fix testdata for cli help tests
2016-08-11 09:11:11 +02:00
Ilya Chernikov
4d5b96ab8a
Change error loading script template to warning - not to show an exception...
...
because it is not an exception e.g. in case of using old gradle
2016-08-11 09:11:11 +02:00
Ilya Chernikov
324b4544c6
Generate kotlin metadata for scripts - see TODO
2016-08-11 09:11:11 +02:00
Ilya Chernikov
e79d8014fa
Add support for script templates settings in gradle plugin, add kts files to source sets
2016-08-11 09:11:11 +02:00
Ilya Chernikov
ce6966b486
Add settings to compiler to specify templates to load, add templates provider using the settings
2016-08-11 09:08:40 +02:00
Ilya Chernikov
c9441bd7b3
Update template(s) provider interface to support multiple templates, rename it appropriately
2016-08-11 09:08:40 +02:00
Ilya Chernikov
6c0b78fb01
Add script-templates option to compiler options, fix templates and definitions loading in compiler
2016-08-11 09:08:40 +02:00
Alexey Tsvetkov
4702842afd
Revert replacing convention with extension
...
It seems that was wrong
2016-08-10 22:28:21 +03:00
Alexey Tsvetkov
791c7fe6e6
Invalidate jar cache at the end of a Gradle build
...
#KT-12912 fixed
2016-08-10 22:28:20 +03:00
Alexey Tsvetkov
fa0344a1b2
Add simple file modification util for gradle incremental tests
2016-08-10 22:22:54 +03:00
Alexey Tsvetkov
aff5dd1691
Refactoring: cleanup gradle plugin
2016-08-10 22:22:50 +03:00
Alexey Tsvetkov
81bc2701fa
Refactoring: move util functions to gradleUtils.kt
2016-08-10 22:22:47 +03:00
Alexey Tsvetkov
f649ebfdba
Refactoring: remove unused ScriptHandler
2016-08-10 22:22:43 +03:00
Alexey Tsvetkov
5f4e56c251
Refactoring: simplify KotlinSourceSet creation
2016-08-10 22:22:40 +03:00
Alexey Tsvetkov
cc585cf6f3
Refactoring: extract constants
2016-08-10 22:22:36 +03:00
Alexey Tsvetkov
eeed0a6eee
Refactoring: stop using internal classes to create DSL extensions
2016-08-10 22:22:32 +03:00
Alexey Tsvetkov
d9c9fb11ea
Refactoring: taskUtils.kt->gradleUtils.kt
2016-08-10 22:22:28 +03:00
Alexey Tsvetkov
6c80b33664
Refactoring: remove usages of ProjectInternal
2016-08-10 22:22:25 +03:00
Alexey Tsvetkov
f0ff0d0a18
Refactoring: inject FileResolver
...
This is part of refactoring to minimize using of internal API in gradle plugin
2016-08-10 22:22:21 +03:00
Ilya Gorbunov
2c1d90c79d
Improve test coverage of map operations
2016-08-10 21:52:24 +03:00
Ilya Gorbunov
dcd6e86cd3
Minor: rename type parameter from C to M as it stands for Map
2016-08-10 21:52:24 +03:00
Ilya Gorbunov
bb774cea76
Minor: remove anonymous class for Map.asSequence
2016-08-10 21:52:24 +03:00
Ilya Gorbunov
fb99919c59
Accept maps out-projected by key where possible.
2016-08-10 21:52:24 +03:00
Ilya Gorbunov
738219d53e
Make Map.toSortedMap accept Map out-projected by key type as the receiver.
...
Update related completion testData.
2016-08-10 21:52:24 +03:00
Ilya Gorbunov
9ff6a6260e
Minor: explicit visibility and improved code formatting
2016-08-10 21:32:33 +03:00
Ilya Gorbunov
200f1c98ed
Minor: fix formatting and improve docs
2016-08-10 18:23:32 +03:00
Laszlo Hornyak
6fda0816f3
buildString with initial capacity for the StringBuilder instance
...
this method helps save computation time when the developer knows or have a good
educated guess about the size of the generated string and have to use control
structures while filling the string builder
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com >
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com >
2016-08-10 18:23:32 +03:00
Ilya Chernikov
4e18e91463
Attempt to fix EA-82064:
...
"java.lang.NoClassDefFoundError: Could not initialize class kotlin.Unit"
2016-08-10 14:18:03 +02:00
Zalim Bashorov
9ece62fa0f
JS backend: fix runtime type checking for interfaces
2016-08-10 15:04:27 +03:00
Zalim Bashorov
060255e8f7
Fix printing file size of generated js files for TeamCity statistics
2016-08-10 15:03:56 +03:00
Dmitry Jemerov
f08a7f14e0
workaround for IDEA's issue that throws an exception when using union() on a LocalSearchScope with no elements (EA-82063 - AIOOBE: GlobalSearchScope.union)
2016-08-10 13:26:13 +02:00
Dmitry Jemerov
180f70b573
don't use document for checking whether a folding region is one-line, use only PSI, as it may not correspond to the state of the document (EA-81838 - IOOBE: LineSet.findLineIndex)
2016-08-10 13:26:13 +02:00
Dmitry Jemerov
a4aa3cdf57
don't crash if we don't have a descriptor for the declaration under caret (EA-86248 - KNPE: KDocNameCompletionSession.doComplete)
2016-08-10 13:26:13 +02:00
Dmitry Jemerov
ddb91cc0d9
correct fix for showing dialog from popup callback (EA-86138)
2016-08-10 13:26:13 +02:00
Dmitry Jemerov
5c113a4237
correct fix for invoking 'safe delete' refactoring outside of write action (EA-80766 - E: BaseRefactoringProcessor.run)
2016-08-10 13:26:13 +02:00