Commit Graph

35133 Commits

Author SHA1 Message Date
Valentin Kipyatkov 6168e50e7d Other way of handling post-insertion actions 2016-11-08 12:46:43 +03:00
Valentin Kipyatkov 08c6a21ac1 Handling safe calls of multi-statement function 2016-11-08 12:46:43 +03:00
Valentin Kipyatkov 330d3a255a introduceValue() always adds statement before except for safe call case 2016-11-08 12:46:42 +03:00
Valentin Kipyatkov 8f9f2027f2 Adding block to control structure when needed 2016-11-08 12:46:42 +03:00
Valentin Kipyatkov a4aa9bab8d Very basic version of inline function for block body 2016-11-08 12:46:42 +03:00
Valentin Kipyatkov 66c815968b Refactoring 2016-11-08 12:46:42 +03:00
Valentin Kipyatkov 3b97a3feb1 Supported case when explicit function type is used 2016-11-08 12:46:41 +03:00
Valentin Kipyatkov 9490d1bb1c Reused code of analyzeInContext 2016-11-08 12:46:41 +03:00
Valentin Kipyatkov 129b4b507f Made not data class 2016-11-08 12:46:41 +03:00
Valentin Kipyatkov 7df3c577f5 Refactored ConstructedExpressionWrapper into ConstructedExpressionHolder merging it with CallKindHandler 2016-11-08 12:46:40 +03:00
Valentin Kipyatkov ca28d02300 Minor 2016-11-08 12:46:40 +03:00
Valentin Kipyatkov 1e9ce5b10f Moved nested classes out 2016-11-08 12:46:40 +03:00
Valentin Kipyatkov dc04263aeb Minor 2016-11-08 12:46:40 +03:00
Valentin Kipyatkov 0932e178e2 Made private 2016-11-08 12:46:39 +03:00
Valentin Kipyatkov 57411b4d5e Supported inline function for expression body case 2016-11-08 12:46:39 +03:00
Valentin Kipyatkov 67e5ed802f More correct 2016-11-08 12:46:39 +03:00
Valentin Kipyatkov 7324ae145e Refactoring 2016-11-08 12:46:39 +03:00
Valentin Kipyatkov f2b32f6d90 Minor refactoring 2016-11-08 12:45:29 +03:00
Valentin Kipyatkov 02f4b883f9 One more code refactoring 2016-11-08 12:45:28 +03:00
Valentin Kipyatkov 29175e96e9 Code refactoring 2016-11-08 12:45:28 +03:00
Alexander Udalov 8c65379711 Support injecting custom module into KotlinBuiltIns
Provide a command-line option to load built-ins from the module and its
dependencies instead of looking for them in kotlin-compiler.jar; built-ins must
be found this way, or an error will be reported (or, most likely at this
moment, an exception will be thrown).

Note that this does not affect whether built-ins (loaded from one place or the
other) are added to the _dependencies_ of the module, this is controlled by
another option. The option added in this commit only makes the KotlinBuiltIns
instance which is used via ModuleDescriptor throughout the compiler front-end
(and also injected in a bunch of places) a sort of "helper" which always goes
to that same module to find descriptors for built-in classes
2016-11-08 12:14:24 +03:00
Alexander Udalov 7898e2447d Minor, rename JVMConfigurationKeys.ADD_BUILT_INS_TO_DEPENDENCIES 2016-11-08 12:14:24 +03:00
Alexander Udalov 5cd9e11f44 Refactor initialization of JvmBuiltIns instance
Use lazy val instead of lateinit var + implicit dependency on the code in
KotlinBuiltIns constructor
2016-11-08 12:14:23 +03:00
Alexander Udalov 5adb22ed65 Do not evaluate anything eagerly in KotlinBuiltIns constructor 2016-11-08 12:14:23 +03:00
Simon Ogorodnik 2be4800307 Fix for KT-14604 J2K Yet another floating point with exponent format 2016-11-08 12:04:05 +03:00
Simon Ogorodnik 7e82dd9adc Fix for KT-14585 J2K, ConvertJavaCopyPasteProcessor shows a dialog under write action 2016-11-08 12:04:04 +03:00
Ilya Gorbunov 61ef26614d Fixup after merge (temporary until collection typealiases are introduced in stdlib) 2016-11-08 03:56:39 +03:00
Ilya Gorbunov a067888fed Provide no-op members in JS ArrayList to work with capacity.
#KT-14637
2016-11-07 21:58:43 +03:00
Ilya Gorbunov fbcf7c146b Remove JavaPackage from common completion tests, move to java-specific tests 2016-11-07 21:39:42 +03:00
Ilya Gorbunov 6656d10c67 Fix tests: do not refer to removed things. 2016-11-07 21:39:41 +03:00
Ilya Gorbunov 660dc94f7c Move Closeable to its usage, move internal Serializable to kotlin package in JS, introduce internal typealias in kotlin.io in JVM. 2016-11-07 21:39:36 +03:00
Ilya Gorbunov a895702730 Remove js classes that should not be there 2016-11-07 21:35:27 +03:00
Alexey Sedunov 2ff8e922f0 Create from Usage: Add test for KT-14500 2016-11-07 20:03:37 +03:00
Alexey Sedunov a414843f54 Control-Flow Analysis: Use PSI to generate pseudocode if nested resolved call is confused with outer one (e.g. a {} when invoke() is missing)
#KT-14500 Fixed
2016-11-07 20:03:36 +03:00
Alexey Sedunov e8b5387384 Create from Usage: Support array access expressions/binary expressions with type mismatch errors
#KT-14501 Fixed
2016-11-07 20:03:35 +03:00
Alexey Sedunov 0159ddbc49 Control-Flow Analysis: Do not skip pseudocode for value arguments if they are matched with errors 2016-11-07 20:03:34 +03:00
Alexey Sedunov df38c70278 Quick Fixes: Replace strong references to PSI elements with smart pointers
#KT-14552 Fixed
2016-11-07 20:03:33 +03:00
Alexey Sedunov 8ceeff0211 Change Signature: Use new signature when looking for redeclaration conflicts
#KT-14583 Fixed
2016-11-07 20:03:32 +03:00
Alexey Sedunov f4e8242a22 Convert Property to Function Intention: Search occurrences using progress dialog
#KT-14569 Fixed
2016-11-07 20:03:31 +03:00
Alexey Sedunov 30d08c989d Kotlin Facet: Use facet configuration to provide language version for IDE analyzer 2016-11-07 20:03:30 +03:00
Alexey Sedunov 6dd950cd5a Kotlin Facet: Use facet configuration in JPS build 2016-11-07 20:03:29 +03:00
Alexey Sedunov d0de9dd43c Kotlin Facet: Get rid of copy constructors for compiler arguments/settings and use reflection-based copying instead 2016-11-07 20:03:29 +03:00
Alexey Sedunov a2948a624f Kotlin Facet: Reuse JvmTarget and LanguageVersion in facet configuration 2016-11-07 20:03:28 +03:00
Alexey Sedunov b6de7d3503 Convert to Kotlin: Compiler arguments/settings JPS serializers 2016-11-07 20:03:27 +03:00
Alexey Sedunov 9e4fcf9731 Convert to Kotlin: Compiler arguments/settings JPS serializers (rename to .kt) 2016-11-07 20:03:26 +03:00
Alexey Sedunov b88573e6a8 Convert to Kotlin: JpsKotlinCompilerSettings.java 2016-11-07 20:03:25 +03:00
Alexey Sedunov 7cb2f04d24 Convert to Kotlin: JpsKotlinCompilerSettings.java (rename to .kt) 2016-11-07 20:03:24 +03:00
Alexey Sedunov a6dbdbd3e5 Refactoring: Move facet configuration classes to idea-jps-common module 2016-11-07 20:03:23 +03:00
Alexey Sedunov 68e293baac Kotlin Facet: Validate dialog on language/API version change 2016-11-07 20:03:23 +03:00
Valentin Kipyatkov 3d5d2d8258 KT-14376 ClassCastException from object with vals
#KT-14376 Fixed
2016-11-07 18:31:04 +03:00