Commit Graph

28242 Commits

Author SHA1 Message Date
Dmitry Jemerov 70049171cd use Kotlin call hierarchy provider only for Kotlin elements, to ensure that it does not interfere with standard Java features of IntelliJ IDEA 2015-11-24 16:53:42 +01:00
Michael Bogdanov 3da463be27 Fix for KT-10137: Internal error: couldn't inline method call on lambda taking extension function parameter
#KT-10137 Fixed
2015-11-24 16:32:06 +03:00
Michael Bogdanov a19bdaeb23 Fix duplicate field error on inlining several lambdas 2015-11-24 16:32:06 +03:00
Michael Bogdanov d3f7e9f74b Rename this$0 on decl site 2015-11-24 16:32:06 +03:00
Michael Bogdanov d4369c1df9 Keep inline transformation invariant: all captured parameters stored in topmost lambda/object
Fix for KT-8668: java.lang.ClassFormatError: Duplicate field name&signature (based on property access)

  #KT-8668 Fixed
2015-11-24 16:32:05 +03:00
Zalim Bashorov 93eb09a654 Return platform independent path in IncrementalCacheImpl::getClassFilePath
Fix ExperimentalIncrementalJpsTestGenerated.PureKotlin.testFunctionBecameInline on Windows.
2015-11-24 16:05:46 +03:00
Alexey Sedunov b6a5d30469 Inspections: Forbid equals/hashCode inspection on object with explicit supertypes
#KT-9778 Fixed
2015-11-24 14:03:48 +03:00
Alexey Sedunov d652623f90 J2K: KotlinIntroduceVariableHandler 2015-11-24 14:03:46 +03:00
Alexey Sedunov a591c27dbf J2K: KotlinIntroduceVariableHandler (rename .java -> .kt) 2015-11-24 14:03:43 +03:00
Alexey Sedunov b75665a96a Misc: Do not use resolved call of outer expression if current call expression has no callee
#KT-10105 Fixed
2015-11-24 14:03:42 +03:00
Michael Nedzelsky a01a18cb1a fix test data for K2JsCliTest 2015-11-24 13:30:16 +03:00
Valentin Kipyatkov f98b354bc1 KT-10005 Java to Kotlin: do not convert type cast to cast to nullable if it should not be null
#KT-10005 Fixed
2015-11-24 12:17:51 +03:00
Valentin Kipyatkov d78390e489 KT-10004 Java to Kotlin: array.length is converted to array.size() instead of array.size
#KT-10004 Fixed
2015-11-24 12:17:51 +03:00
Valentin Kipyatkov 4905275a30 Renames 2015-11-24 12:16:58 +03:00
Valentin Kipyatkov fc34557a7a Refactored to be more type safe 2015-11-24 12:16:57 +03:00
Dmitry Petrov 931463af0d - Fix code generation for inlined String::plus
#KT-10131 Fixed.
- Make extra factory methods in IntrinsicMethod protected.
This ensures that any of them can be properly overridden.
2015-11-24 12:09:34 +03:00
Michael Nedzelsky 2b4868c3ce js: do not generate files for empty string tables 2015-11-23 22:32:47 +03:00
Michael Nedzelsky 8ac3b1441a remove idea-js module 2015-11-23 22:32:44 +03:00
Michael Nedzelsky a7636126a1 fix tests for js 2015-11-23 22:32:40 +03:00
Michael Nedzelsky ac8dd1262c generate kjsm-files for js-stdlib and during compilation via maven or gradle 2015-11-23 22:32:37 +03:00
Michael Nedzelsky c80c33efb6 add kjsm option for kotlin js command line compiler 2015-11-23 22:32:32 +03:00
Nikolay Krasko 24e473f47b Minor: put type parameters before function name 2015-11-23 22:03:32 +03:00
Nikolay Krasko d635f6f399 Run builtins resolve under non-cancelable progress indicator 2015-11-23 22:03:32 +03:00
Nikolay Krasko a62e6f7737 Refactoring: extract ObservableStorageManager from LoggingStorageManager 2015-11-23 22:03:32 +03:00
Nikolay Krasko 58dbb1ad53 Rethrow stored process canceled exception as a new one with both stacks 2015-11-23 22:03:32 +03:00
Nikolay Krasko 4aa7314600 Update to Idea 143.869.1 2015-11-23 22:03:32 +03:00
Nikolay Krasko c9e1671572 LazyThreadSafetyMode.NONE is not safe to use in multithreading environment (EA-76205) 2015-11-23 22:03:32 +03:00
Valentin Kipyatkov 606a34283d Use lookup elements from completion for variables in live templates 2015-11-23 20:31:34 +03:00
Valentin Kipyatkov f44bbfe4cd Moved test data to idea-live-templates too 2015-11-23 20:31:33 +03:00
Valentin Kipyatkov b8dadeb4cc Moved live templates support into separate module 2015-11-23 20:31:33 +03:00
Valentin Kipyatkov c6df1b6dce KT-9747 Live template macro "kotlinSuggestVariableName()" is wrong
#KT-9747 Fixed
2015-11-23 20:31:33 +03:00
Valentin Kipyatkov 6bd723da11 Templates "ifn" and "inn" to use kotlinVariable() instead of suggestVariableName() 2015-11-23 20:31:33 +03:00
Valentin Kipyatkov d4ba15fd90 "kotlinVariable()" macro to filter by expected type, dropped IterableVariableMacro 2015-11-23 20:31:33 +03:00
Valentin Kipyatkov 7dc6aff2e6 Moved ExpectedInfos and related classes into idea.core 2015-11-23 20:31:32 +03:00
Valentin Kipyatkov 0e740dc0a6 IterableVariableMacro to honor smart casts 2015-11-23 20:31:32 +03:00
Valentin Kipyatkov 51647853f3 Refactored BaseKotlinVariableMacro to not create IterableTypesDetector in all cases 2015-11-23 20:31:32 +03:00
Valentin Kipyatkov 566805fe93 Rewritten BaseKotlinVariableMacro 2015-11-23 20:31:32 +03:00
Valentin Kipyatkov 2fdd1ade26 Refactored utlity for checking isVisible 2015-11-23 20:31:31 +03:00
Valentin Kipyatkov 3d2f878885 Minor code simplifications + no i18n 2015-11-23 20:31:31 +03:00
Valentin Kipyatkov bfddba7789 Converted to Kotlin 2015-11-23 20:31:31 +03:00
Mikhail Glukhikh dc60c62781 Enum.values is now deprecated but Enum.values() is no more deprecated 2015-11-23 17:29:36 +03:00
Mikhail Glukhikh 6e733f708e DeclarationsChecker: converted to Kt + EffectiveVisibility related refactoring 2015-11-23 17:29:29 +03:00
Mikhail Glukhikh fe2fb7e5a5 DeclarationsChecker: rename to Kt 2015-11-23 17:29:26 +03:00
Mikhail Glukhikh 1c609663a4 Private setters are now deprecated for open properties 2015-11-23 17:29:23 +03:00
Mikhail Glukhikh 74976911a2 Diagnostic for "private setter in abstract property" renamed 2015-11-23 17:29:20 +03:00
Mikhail Glukhikh 284c1b2ec5 Local sealed classes are deprecated 2015-11-23 17:29:16 +03:00
Alexander Udalov f98703dcdb Minor, fix URL in JvmName kdoc 2015-11-23 14:56:50 +03:00
Dmitry Petrov 048e96ef6a Fix safe call code generation for ranges. 2015-11-23 10:34:08 +03:00
Ilya Gorbunov 5aa415c609 MutableMap.iterator() returns MutableIterator. 2015-11-21 07:09:07 +03:00
Ilya Gorbunov 21f509511c Fix CharSequence parameter names in testData 2015-11-21 07:09:05 +03:00